calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
pez 2020-11-27T07:26:54.235100Z

The behaviour with auto-creation of an ns form for new files does not happen for me. Anyone else having the same or better luck?

2020-11-27T10:54:37.236900Z

Hm, it works fine for me, whenever the editor is connected to nREPL or not, an ns form is created for any kind of clojure files.

2020-11-27T11:01:58.239700Z

@pez as I understand you don’t see an ns form at all, right?

pez 2020-11-27T11:10:15.240100Z

Exactly. It behaves just like old boring Calva. 😃

2020-11-27T11:30:02.241Z

Just re-installed the extension and it still works. How do you create a new file?

Jakub Holý 2020-11-27T11:48:52.242500Z

Hello! I have a problem running Calva with the Remote Extensions pack, when it is installed into the remote server. Namely connecting to a running repl does not work, even the dialog asking for host/port does not come up. When I click the nREPL at the status bar, it reads > Cannot read property '0' of undefined Any tips? Update: It has nothing to do with Remote, it seems. When I open a new VS Code window and run Calva: Connect to Running..., I get the same issue. Having v2.0.133 Trying the second similar command I get > Command 'Calva: Connect to a Running REPL Server, not in Project' resulted in an error (Cannot read property 'toString' of undefined)

pez 2020-11-27T12:01:30.244900Z

That does not sound good at all. Can you try with an earlier version of Calva and see if this is a regression we've introduced? Can't really see when we would have introduced that though, but we introduced support for LiveShare in v2.0.127, so try 126, maybe?

Jakub Holý 2020-11-27T12:01:56.245300Z

how do I downgrade? And can I see detailed logs of the error somewhere?

Jakub Holý 2020-11-27T12:03:01.245600Z

126 seems ok

pez 2020-11-27T12:03:43.246100Z

The developer console might show something.

Jakub Holý 2020-11-27T12:04:14.246900Z

with 126 I get the connection type selection window and can click eg. "Generic" but then nothing more happens. I expect to be asked for a port.

pez 2020-11-27T12:05:54.248500Z

We've changed the behaviour of that generic project type. I can't right now remember how it used to behave. But, sure, it should prompt for a host and a port.

pez 2020-11-27T12:06:05.248800Z

What about version 130?

Jakub Holý 2020-11-27T12:06:39.249400Z

Will try. 126 has this in dev console, among other related logs: > stack trace: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at validateString (internal/validators.js:112:11) at Object.join (path.js:1039:7) at m (/Users/holyjak/.vscode/extensions/betterthantomorrow.calva-2.0.126/out/extension.js:1:44790)

pez 2020-11-27T12:07:43.250300Z

That's mostly old hat, we've quite completely changed the implementation since 126.

Jakub Holý 2020-11-27T12:08:57.251600Z

Ok. But 126 does not work either, presumably due to ☝️, since it does not really connect, though it gets further than 130. I have tried 130 but it also fails with "Cannot read property 'toString' of undefined"

pez 2020-11-27T12:09:52.252200Z

What does your project look like? lein/deps/something else?

Jakub Holý 2020-11-27T12:11:03.253100Z

fixed - after restarting VS Code, v130 is working

pez 2020-11-27T12:11:29.253400Z

Interesting. What about 133?

Jakub Holý 2020-11-27T12:12:36.253900Z

Will try when 130 is done. Currently it is still at ; Hooking up nREPL sessions... while trying to connect to localhost:1234 while lein repl :connect 1234 worked fine

pez 2020-11-27T12:13:18.254400Z

It should not be hanging there for very long...

pez 2020-11-27T12:15:04.255500Z

Please file an issue using VS Code's issue reporter. It will send along info about your system and such that might help in tracking the problem down.

👍 1
Jakub Holý 2020-11-27T12:16:01.256200Z

FYI 133 is still failing with "Cannot read property 'toString' of undefined" even though I restarted VS Code after the upgrade https://github.com/BetterThanTomorrow/calva/issues/853

pez 2020-11-27T12:23:35.256600Z

I can reproduce it.

pez 2020-11-27T12:27:39.257Z

Or, I could a short while. Now it works again... Very strange.

pez 2020-11-27T12:28:02.257300Z

Can you try with v132?

2020-11-27T12:31:20.258600Z

Just tried to reproduce it, and failed. Works fine for me, v133.

2020-11-27T12:32:02.258700Z

Jakub Holý 2020-11-27T12:35:04.259400Z

I had this strange thing where I got 130 working once but cannot anymore so it seems to be somehwat random

pez 2020-11-27T12:36:26.260300Z

Indeed. But a bit random in how the bad is distributed too. I had one failure, and now I can't reproduce it for the life of me...

Jakub Holý 2020-11-27T12:37:12.261500Z

Ok, on 130 I got the error, then run jack in (just to test), closed, then I succeeded connecting to the server partially (stuck at ; Hooking up nREPL sessions... again)

pez 2020-11-27T12:37:29.261800Z

If you have the time, you are welcome to try track this down in the debugger, @holyjak.

pez 2020-11-27T12:38:01.262200Z

What kind of server is it you are connecting to?

Jakub Holý 2020-11-27T12:38:34.262800Z

My bad, I stopped the ssh tunnel so the repl indeed could not be reached anymore 😅

pez 2020-11-27T12:40:05.263100Z

Haha

pez 2020-11-27T12:41:12.264400Z

Now the ns form is created as it should too, btw, @zelark. Seems something needed to be cleaned out, that got cleaned out when I reloaded VS Code to try some old versions.

pez 2020-11-27T12:41:59.264700Z

But 133 is still not working for you, @holyjak?

Jakub Holý 2020-11-27T12:43:24.265700Z

I will try it tomorrow. Sadly, I have SciCloj workshop starting in 17 min and I need my repl and connection working for it.

Jakub Holý 2020-11-27T12:43:52.266600Z

I would be happy to try troubleshoot this when I have time. How do I debug the code to track the error down?

2020-11-27T12:45:21.266900Z

Usually there is a badge next to the extension icon, it indicates that reload is required.

pez 2020-11-27T12:47:45.267900Z

(It is a lot less involved than it looks to be from that page.)

2020-11-27T13:26:48.269200Z

I wonder who is the author of Calva logo?

pez 2020-11-27T18:03:43.269500Z

It's @jayzawrotny

👍 2
4
2020-11-27T21:51:12.000200Z

I like it.

pez 2020-11-27T21:51:50.000400Z

Yeah, it is awesome.