Open jackdbd opened 1 month ago
Hi! Thanks for the report. I see you have issued a PR fixing the default excludes, which is awesome. I'll merge that!
For anyone finding this issue, it's good to keep in mind that you don't need to be content with the defaults. The setting in question is calva.projectRootsSearchExclude
, and it can be updated from the Settings UI:
I use a combination of devenv,
deps.edn
andbb.edn
to create and manage a reproducible developer environment. I declare my system dependencies (e.g. OpenJDK, VS Code) in adevenv.nix
file, my Clojure dependencies in adeps.edn
file and my Babashka dependencies (e.g. pods) in abb.edn
file. Calva works great with this setup.The only (very) minor inconvenience is that when I start the project REPL and connect (jack-in), Calva suggests a few projects that are not mine. The
.devenv/
directory contains state and variables created and managed by devenv, and should not be tracked by version control (in fact it's usually added to.gitignore
).In a Clojure project,
.devenv/state/
or.devenv/profile
might containdeps.edn
orproject.clj
files that are not related to my project, but to my dependencies. It's best shown with a screenshot.Here my project (i.e the only project I would like Calva REPL to connect to) is
pod-jackdbd-jsoup
. The other two entries shown in the dropdown menu aredeps.edn
-based projects that should not be suggested up by Calva.