-
Hi, I'm completely new to $ opam switch
# switch compiler description
→ default ocaml.4.12.0 default $ which ocamllsp
/Users/shp7724/.opam/default/bin/ocamllsp I assume this has to do with Obviously the following setting does not work.
What is the proper way to select the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The correct JSON would be "ocaml.sandbox": {
"kind": "opam",
"switch": "default"
} However, the intended way to change the sandbox is through the command or status bar item: https://github.com/ocamllabs/vscode-ocaml-platform#setting-up-the-extension-for-your-project |
Beta Was this translation helpful? Give feedback.
-
The problem was that I was using code-server, which is basically a fork of vscode, and for some reason the environment variables are ignored when the server is started. So I added following lines to the startup script of # OCaml Platform Extension Configuration
[[ ! -r /Users/shp7724/.opam/opam-init/init.zsh ]] || source /Users/shp7724/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
export PATH="/Users/shp7724/.opam/default/bin:/usr/local/bin:$PATH" @mnxn Thanks for helping me find the solution. |
Beta Was this translation helpful? Give feedback.
The problem was that I was using code-server, which is basically a fork of vscode, and for some reason the environment variables are ignored when the server is started.
So I added following lines to the startup script of
code-server
and everything worked as expected.@mnxn Thanks for helping me find the solution.