Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return [result] from [Workspace_root.create] #10894

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

gridbugs
Copy link
Collaborator

@gridbugs gridbugs commented Sep 9, 2024

This makes it possible to check whether the user is currently inside a dune project. This is needed for dev-tools to have fallback behaviour when run outside of a dune project which is necessary to allow users to configure their editors to invoke dev-tools via dune. For example, if a user configures their editor to start ocamllsp with the command dune ocamllsp, dune needs to be able to handle the case where the user edits an ocaml file outside of a dune project, for example by attempting to invoke ocamllsp from PATH.

bin/workspace_root.mli Outdated Show resolved Hide resolved
@gridbugs gridbugs force-pushed the workspace-root-create-result branch from e60c7d7 to cc34dbe Compare September 10, 2024 03:22
This makes it possible to check whether the user is currently inside a
dune project. This is needed for dev-tools to have fallback behaviour
when run outside of a dune project which is necessary to allow users
to configure their editors to invoke dev-tools via dune. For example,
if a user configures their editor to start ocamllsp with the command
`dune ocamllsp`, dune needs to be able to handle the case where the
user edits an ocaml file outside of a dune project, for example by
attempting to invoke ocamllsp from PATH.

Signed-off-by: Stephen Sherratt <[email protected]>
@gridbugs gridbugs force-pushed the workspace-root-create-result branch from cc34dbe to b14a680 Compare September 10, 2024 10:10
@gridbugs gridbugs merged commit 1eb8aae into ocaml:main Sep 10, 2024
24 of 27 checks passed
anmonteiro pushed a commit to anmonteiro/dune that referenced this pull request Nov 17, 2024
This makes it possible to check whether the user is currently inside a
dune project. This is needed for dev-tools to have fallback behaviour
when run outside of a dune project which is necessary to allow users
to configure their editors to invoke dev-tools via dune. For example,
if a user configures their editor to start ocamllsp with the command
`dune ocamllsp`, dune needs to be able to handle the case where the
user edits an ocaml file outside of a dune project, for example by
attempting to invoke ocamllsp from PATH.

Signed-off-by: Stephen Sherratt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants