Fork me on GitHub
#babashka
<
2021-06-14
>
mike_ananev15:06:35

Is there any recommended way to change working directory inside a script? I need to go to /some/folder/, run there vagrant up, then return back.

borkdude15:06:09

@mike1452 (shell {:dir ...} ....)

borkdude15:06:37

or outside tasks, (process [...] {:dir ...}), although you can use shell from anywhere as babashka.tasks/shell as well

DrNick18:06:15

Hey, I know cursive support is in the pipes, but is there a way to use a deps project base nrepl and babashka? I'm actually able to work just fine, however if I use babashka.classpath or babashka.deps cursive can't seem to create stubs for them, the way it can for datomic or java_time. I prefer cursive's nREPL rather than bb's tubular socket repl which is less practical for me.

borkdude18:06:13

@nicolas.estrada938 babashka also has nREPL btw

😉 2
borkdude18:06:05

There is an open issue for clojure-lsp and bb. It has a script to pull babashka's own deps.edn, do some transformations on that and then give that classpath to clojure-lsp. https://github.com/babashka/babashka/issues/733 Something similar might work for Cursive meanwhile.

borkdude18:06:30

@U0567Q30W might be able to give you more pointers

DrNick18:06:15

ok cool thanks!