vscode

Quiet in here? Check #calva-dev out :smiley:
pez 2018-04-11T16:42:16.000288Z

@mynomoto, I’m the maintainer/developer of Calva and think it has some edge over Lisin’s Clojure, (obviously, otherwise I wouldn’t have created a new one). I don’t remember exactly why it fell short for me, but anyway. But Calva is very new (even if it’s based on a more mature extension). I’d be happy if you gave it a try and let me know how it works for you. Calva is trying to make it a bit more Emacsy to work with Clojure and Clojurescript. I have tried to make it easy to work with cljc files and toggle wether they are backed by a clj or a cljsREPL. It integrates the REPL as tight as I have been able to do it so far and lets you evaluate code “in” the editor as well as use the REPL to edit the code (eval replace). You can run and rerun namespace tests (and have failures marked in the Problems tab/editor). It also opens up two connected REPLs (one for Clojure and one for Clojurescript (if ) in the terminal tab and has commands to swith to the current edited namespace and load it and send code to be evaluated from the editor to those REPLs.

2018-04-11T16:45:13.000792Z

@wmichaelshirk @pez Thanks! Do you know if it works with shadow-cljs? I'm a vim user myself but I have a colleague that uses vscode and I'm helping him on setup. Parinfer works fine but we did not try to connect to a shadow-cljs repl yet.

pez 2018-04-11T16:46:33.000770Z

Currently it is quite painful to run all tests of a large project, because Calva does not report back until all are run. I will try to fix that asap, but need to figure out some things about sockets programming to get it done.

pez 2018-04-11T16:47:55.000301Z

@mynomoto I have just recently heard about the term shadow-cljs. What is it? 😃

pez 2018-04-11T16:48:46.000377Z

(I’m afraid that might mean Calva does not support it yet, but I’d be happy to consider working on that.

2018-04-11T16:50:31.000475Z

It's an alternative compiler for clojurescript. I think that the repl is pretty standard as I just connect to it like to a figwheel one from vim. But the .nrepl-port is not on the same path as lein or boot so I need to be able to manually connect to a repl. Is that possible?

pez 2018-04-11T16:51:56.000350Z

You can manually connect. Where is the .nrepl-port file located?

pez 2018-04-11T16:53:41.000092Z

I’ll give it a try now. 😃

2018-04-11T17:21:41.000129Z

.shadow-cljs/nrepl.port

2018-04-11T17:21:57.000596Z

Inside the project.

richiardiandrea 2018-04-11T23:19:11.000285Z

hello folks, running calva for the first time

richiardiandrea 2018-04-11T23:19:19.000135Z

not a VS code user myself

richiardiandrea 2018-04-11T23:19:33.000267Z

how to display the Terminal REPLs window?

pez 2018-04-11T23:44:27.000066Z

@mynomoto Alright, so I have tried Calva with shadow-cljs some now. It doesn’t work . I don’t quite understand why and am looking at it to see if I can figure it out.

pez 2018-04-11T23:46:12.000346Z

@richiardiandrea do you see the OUTPUT tab/window?

pez 2018-04-11T23:51:00.000044Z

@richiardiandrea Calva has some commands for interacting with the Terminal REPLs, I think all of them opens the TERMINAL tab and shows the REPL there. In VS Code you can access all commands using cmd+shift+p (mac, I think it is ctrl+shift+p on windows). From there you can search for commands.

richiardiandrea 2018-04-11T23:51:43.000085Z

I see output but I don't see online evaluation

richiardiandrea 2018-04-11T23:51:57.000200Z

Also if I launch my own command at the repl

richiardiandrea 2018-04-11T23:52:05.000034Z

Then how to connect?

pez 2018-04-11T23:53:16.000222Z

Not sure what you mean. How do you start the REPL? Calva needs it to be started before it can connect.

richiardiandrea 2018-04-11T23:54:50.000028Z

Yep I start it from the terminal inside vscode

richiardiandrea 2018-04-11T23:55:02.000168Z

I see nrepl.port

pez 2018-04-11T23:57:00.000239Z

The connection code is a bit buggy. But ctrl+alt+v c should connect you when you have that file (it will show a small prompt at the top of the window that you need to submit).

pez 2018-04-11T23:58:50.000248Z

I recommend starting the repl in a terminal outside of Code before opening the project, but if you prefer to use the internal terminal you probably should tell Calva not to try to autoconnect (there is a setting for that).