Closed qkzk closed 4 months ago
I tested a new project with :
dune init proj whatever
and the lsp works again.
I'll dig into that.
The error is back again.
I moved my whole project into a new one dune init proj same_old_thing
.
It worked once, it doesn't work anymore.
I'm stuck.
Ocaml-lsp needs to run a dune process to get the project configuration. This means that dune should be present in the path. Maybe the path is not correct in neovim ?
Does this also happen if you start neovim from the terminal in the project's folder ?
Indeed, the problem occurs when I run neovim from home then open the project. It doesn't when I run it from the project itself.
I guess this behavior is normal.
Tell me if I should close the issue.
Yes, I would say that this is expected behavior, we cannot control the path used to run the editor. In the vscode plugin there is a handy way to select the correct opam switch from inside the editor, we would need something similar in other plugins.
Thanks !
Hello,
Sorry but I can't find much information about this problem.
My package manager updated ocaml to 5.1.1 and I had to reinstall everything with opam. Once done, my project compiles and run correctly with
dune exec projectname -w
.I still have the syntax errors displayed but nothing else.
I can't jump to definition nor open a code lens.
The only message I got is
ocamllsp: -32603: dune binary not found
.What should I do ?
From
:Mason
:and