Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter about nrepl support? #6

Open
brdloush opened this issue Jan 24, 2023 · 4 comments
Open

chapter about nrepl support? #6

brdloush opened this issue Jan 24, 2023 · 4 comments

Comments

@brdloush
Copy link

Hello, have you considered adding a chapter about bb --nrepl-server ?

For me, the support of nrepl in babashka is yet another game-changer that babashka brings to the table. It's really awesome to be able to code fully interactively in your favourite editor, being connected to bb process internally running nrepl server.

Sometimes, if I need "full clojure experience" (better editor support - especially docs popups), I also use bb --print-deps > deps.edn, and code the script using regular clojure repl+nrepl. Then, once I'm happy with the result, I turn back to the bb and make sure the script is still bb-friendly.

@brdloush
Copy link
Author

Hmm.. I guess it's probably not necessary to actually switch to clojure repl in order to get docs popups in the editor. It seems that presence of bb-generated deps.edn is just enough for clojure-lsp / clj-kondo to be able to provide docs info to your editor (at least in calva). I'll try to use just bb --nrepl-server + deps.edn the next time I'm creating something from scratch.

@borkdude
Copy link
Collaborator

bb.edn also works for calva and lsp if you don't want to have those deps inside a deps.edn

@borkdude
Copy link
Collaborator

In fact, an empty bb.edn should already work, since bb.edn is used by lsp to detect the project root and then it calls print-deps to get more info about the built-in dependencies.

@geraldodev
Copy link

geraldodev commented Jan 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants