I have my clj(s) project under a /project in my git root, with src in /project/src/cljs and /project/deps.edn ,
if I open the root dir / in calva I get options for lsp in / and in /project and some of the go-to-def are broken in different ways. Is there something I can configure to be as if I had opened /project?
Hello. I almost missed this question.
When the go-to-def is broken, which server are you connected to? If you’re connected to the one at / and there’s not deps.edn there, I think that won’t work. You could stick a deps.edn file at the root with only this content:
{:deps {the/project {:local/root "./project"}}}
However, you can also configure Calva to behave a bit differently about the clojure-lsp start. By default Calva will automatically start a clojure-lsp server in the root of the workspace when Calva starts. You can change this default by making Calva select the project based on the file you have opened.
Does this help?Awesome, the top level deps.edn worked, I kept ending in bad states before but it seems it to longer happen, thank you! 🙏