Closed PEZ closed 10 months ago
Currently tools-deps-native only spits out EDN, so we will need a way to convert that to a classpath string. Ideas:
npx nbb ...
Both these add a dependency on NodeJS, but maybe that's fine for now.
@PEZ also keep in mind that adding that default project spec to clojure-lsp means that we would expect all joyride users that create a joyride.edn to have tools-deps-native installed, which may be ok, but if we could manage to make it work without it would be even nicer
I think we have exhausted the alternatives. Wherever we turn we hit dependencies, and this one we can fulfill by Joyride downloading tools-deps-native
.
clojure-lsp needs a classpath to provide information about dependencies. The current workaround is to provide a
bb.edn
, ordeps.edn
with something like this content:The problems with this are (at least):
deps.edn
probably has other uses in the project (like being config for your Clojure project)bb.edn
On the bright side:
classpath-cmd
that can resolve the classpath from a, sayjoyride.edn
, file.tools-deps-native is experimental, but I think that's fine for our use case.
With this we should be able to support a clojure-lsp project spec looking something like so:
Command line args to be figured out. tools-deps-native crurrently has this interface
Example usage: