You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extension does not seem to work inside multi-root VSCode workspaces. The ocamllsp and ocamlc commands are not found.
Context
I have a VSCode workspace where one of the projects is an OCaml project (using Dune). It looks something like this:
the_workspace
|- ocaml_project
'- another_project
I'm using the global switch and have installed the lsp and formatter. If I open the OCaml project as a folder in VSCode this extension works as expected, but when I open the enclosing workspace it does not work.
Workaround
I have created a custom sandbox and put it into the vscode settings for the workspace, like this:
I have not tried, but instead of adding the settings to the code-workspace, can you put the settings under the .vscode folder in each root?
Just tried it and it didn't work. VSCode told me that this particular setting is read from the workspace settings and that the setting in the project folder is only used if the folder is opened directly. This seems to be true for all ocaml settings.
To be clear: the workaround works pretty well, and is only needed when using a workspace.
Problem
This extension does not seem to work inside multi-root VSCode workspaces. The
ocamllsp
andocamlc
commands are not found.Context
I have a VSCode workspace where one of the projects is an OCaml project (using Dune). It looks something like this:
I'm using the global switch and have installed the lsp and formatter. If I open the OCaml project as a folder in VSCode this extension works as expected, but when I open the enclosing workspace it does not work.
Workaround
I have created a custom sandbox and put it into the vscode settings for the workspace, like this:
The text was updated successfully, but these errors were encountered: