Fork me on GitHub
#nbb
<
2023-01-05
>
sjharms17:01:38

Does anyone have recommendations for setting up an IDE or editor with nbb for autocomplete etc?

borkdude17:01:22

Calva is pretty good with nbb

genRaiy17:01:01

you can also use IntelliJ if you add a deps.edn ... to trick it into thinking your project has the dependencies that are built-in to nbb

genRaiy17:01:37

most obvious example is for promesa

genRaiy17:01:11

here is an example that I used on a project recently

; This file is only here to assist with editor integration, specifically Cursive on IntelliJ IDEA

; nbb DOES NOT USE THIS FILE - deps are built in (like promesa) or added via npm => package.json

{:paths ["src" "test"]
 :deps  {org.clojure/clojurescript           {:mvn/version "1.11.60"}
         camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}
         cljs-bean/cljs-bean                 {:mvn/version "1.8.0"}
         funcool/promesa                     {:mvn/version "9.0.489"}
         reagent/reagent                     {:mvn/version "1.1.1"}}}

sjharms18:01:10

Ah nice I will give that a try thanks!

borkdude18:01:06

emacs also works :)

2
borkdude18:01:32

@U04V5V0V4 does nREPL + nbb work in Cursive now?

genRaiy19:01:58

it works - it's just not usable laughcry It hasn't changed AFAIK.

borkdude19:01:38

Then I recommend going with Calva: nbb has always worked well in there

🙌 1
sjharms19:01:47

I think with Calva I always get caught up in the vim bindings conflicts so I end up back in Intellij

borkdude19:01:42

Let Colin know about nbb requirements in Cursive, it might take a while, but eventually it will be improved. Same happened for bb

2
genRaiy09:01:48

I have opened an issue. Upvote :)

âž• 4
jaide23:01:39

neovim + conjure has been pretty good, seems I gotta use the shadow select command otherwise it thinks it's a clojure repl. Should probably create an issue for better nbb support. What does cider do now to detect an nbb project?