This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-19
Channels
- # announcements (41)
- # babashka (25)
- # beginners (11)
- # calva (15)
- # clj-kondo (34)
- # clojure (25)
- # clojure-france (2)
- # clojurescript (69)
- # conjure (1)
- # cursive (23)
- # datalog (3)
- # datomic (4)
- # deps-new (2)
- # emacs (31)
- # helix (1)
- # hoplon (1)
- # lsp (8)
- # luminus (17)
- # malli (5)
- # meander (1)
- # nrepl (7)
- # off-topic (1)
- # polylith (6)
- # portal (3)
- # reitit (15)
- # shadow-cljs (1)
- # xtdb (16)
#lsp has some special integration for babashka, @ericdallo should know more about this
I tried this but it doesn't seem to work. Also I don't see anything in the LSP docs about this. @ericdallo
🙂 ... I recently watched his video, "Turning your editor into a Clojure IDE with clojure-lsp (by Eric Dallo)" https://www.youtube.com/watch?v=grL3DQyvneI&t=1s&ab_channel=LondonClojurians and was interested in using it on my moderately complicated bb project....
Well, navigation should surely work between your own defined functions, locals, etc. in one script
but the built-in deps, paths, etc should be recognized by #lsp but I don't know what the progress on this is. I'll wait for Eric to chime in here.
@bherrmann it should work with bb > 5.1 which adds the bb print-deps
command
What version of bb are you using?
It didn’t work for me either when I tried to get autocompletions for Cheshire for example
Can you perhaps write a scenario in which it should work, maybe as docs for clojure-lsp?
it seems to work for me, I'll try to create a bb-sample so people with issue like this can test it on this repro as well
I added a new https://clojure-lsp.io/settings/#classpath-scan mention how that works.
Also could you test if it works for you https://github.com/ericdallo/clojure-sample/blob/bb%2Bdeps-project/scripts/print.clj @U04V15CAJ?
so typically I name my bb files with a .bb extension? Do I need to configure the extension somewhere - or use a different extension? I think a sample project would be helpful. although the sample project might just be 2 files, a bb.edn file and a helloworld file in a src sub dir - right?
This is my sample project that works: https://github.com/ericdallo/clojure-sample/blob/bb%2Bdeps-project/scripts/print.clj
But I recommend you use your bb files with the .clj
extension for emacs/lsp-mode and others recognize as a clojure source code
@bherrmann a discussion like this https://github.com/babashka/babashka/discussions/907 could maybe help to gather all different approaches here?