Fork me on GitHub
#babashka
<
2021-05-29
>
Nicolas Estrada11:05:24

Hello šŸ™‚ First time poster.. I was wondering if anyone could point me to a repo or blog post on how to setup a proper workflow for writing babashka with cursive? What I usually do is use deps to manage dependencies for my nREPL, and also require the same dependencies in with babashka.deps/add-deps. However it seems that I can't seem to resolve babashka.deps from within my REPL (curl, fs and process) work fine though

Nicolas Estrada11:05:48

My deps.edn looks like this

{:deps
 {babashka/babashka                 {:mvn/version "0.4.3"}
  borkdude/spartan.spec             {:git/url ""
                                     :sha     "12947185b4f8b8ff8ee3bc0f19c98dbde54d4c90"}
  org.clojars.clj-clapps/clj-clapps {:mvn/version "0.4.11"}}
 :aliases
 {:test {:extra-paths ["dev" "test"]
         :extra-deps  {org.clojure/tools.namespace {:mvn/version "1.1.0"}}}}}

Nicolas Estrada11:05:56

Am I going about this all wrong? I was never able to get cursive intellisense to work if I don't set it up this way? Any cursive/babashka devs could point me to some workflow tips?

borkdude11:05:07

@nicolas.estrada938 There is an issue about babashka in the Cursive issue tracker. Also @cfleming seems to working on improving using babashka from Cursive, scroll back a few days in this channel to see the conversation.

šŸ™ 1
dabrazhe19:05:45

I noticed that after hours of working in the bb repl it becomes slow to print the evaluation result and I have to disconnect/reconnect. After a while it's slowing anyway, I have to kill it and restart nrepl. I am using nrepl-server in VSC with Calva. Is it an issue with my setup ?

borkdude20:05:41

I'm not sure what's going on. Perhaps a memory leak?

dabrazhe20:05:50

I only use repl to evaluate 'foreground' functions. No futures, servers, threads etc

borkdude20:05:47

but perhaps the REPL builds up some kind of memory leak

borkdude20:05:20

Perhaps you can run things like (.freeMemory (Runtime/getRuntime)) to check this

borkdude20:05:38

(not sure if this is the right way of debugging this btw, just brainstorming)

cfleming23:05:33

Yes, Iā€™m hoping better bb support will be in the next Cursive release.

šŸ‘ 6
babashka 2
šŸ™ 1