Fork me on GitHub
#calva
<
2019-04-07
>
saikyun07:04:48

@pez nope 😞

pez08:04:37

Search for paredit among the keyboard shortcuts, cmd+k cmd+s on Mac.

pez09:04:39

To people testing the jack-in, I now notice that the Java processes started by it are left behind even after closing the project window in vscode. We will look into that, but meanwhile, be aware of this.

dennisa11:04:04

@pez Jack-in worked right away this time ! :))

pez11:04:26

😃 It takes a bit of luck though. But good to know!

hoppy11:04:38

a non-so-uncommon workflow is that jack-in needs to be done multiple times as errors are repaired. so that needs to be a thing. A straightforward 'stop' and 'restart' would be more helpful than the emacs "find and kill the buffers" approach to that need

pez12:04:52

Good catch, @hoppy. Please file it as an issue.

dennisa12:04:25

@pez There are some notes. lein command gives this warning

nREPL server started on port 60946 on host 127.0.0.1 - 

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by cider.nrepl.inlined_deps.dynapath.v0v2v5.dynapath.defaults$eval3496$fn__3497 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of cider.nrepl.inlined_deps.dynapath.v0v2v5.dynapath.defaults$eval3496$fn__3497
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

dennisa12:04:40

But it issues the warning in the terminal (outside Jack-in) as well

dominicm12:04:10

That's okay, it's a normal message

pez17:04:19

OK. So my Sunday was a bit more busy with other things than I had expected. (You try to have predictable Sundays with four kids in the house.) But I managed to get some Calva time in and used it to fix a thing with jack-in that I need for using it for my work project. This version of Calva should present a profiles picker for your leiningen projects, so that it can populate the --with-profiles options when starting the repl, in projects that need that. Please give it a spin and return with feedback on how it works out for you.

pez17:04:21

The credit for the profiles picker should go to @mseddon , btw. I merely made it a bit more probable that it would work in the wild. 😀

chvanikoff18:04:39

@pez hi, I’m trying to setup an app with clojurescript on frontend and I have it in frontend dir at the root. I’ve set “project root dir” in calva config to be “frontend” accordingly, but seems it’s not considered when new terminals are created (for shadow-cljs at least, but I did a quick search over the extension code and seems the config value is not used anywhere to change dir, so it might be as well related to anything that creates terminals that should be created in the clj(s) root). Are my guesses correct? Is that something easy to fix? 🙂

chvanikoff19:04:53

Hacky, but fixed things for me: before sending command to terminal (https://github.com/BetterThanTomorrow/calva/blob/master/calva/terminal.ts#L37) just added a cd:

connectCommand = "cd " + util.getProjectDir() + " && " + connectCommand;

saikyun19:04:11

yo @pez, not sure if the question came through properly, but do you have any idea where to start on the errors I got earlier?

saikyun19:04:21

I'd be happy to help if I knew where to start 🙂