This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # aws (17)
- # babashka (13)
- # beginners (84)
- # calva (46)
- # chlorine-clover (40)
- # cider (19)
- # clojure (27)
- # clojure-australia (1)
- # clojure-europe (84)
- # clojure-nl (2)
- # clojure-uk (49)
- # clojurescript (65)
- # core-async (6)
- # cryogen (1)
- # cursive (11)
- # datomic (13)
- # etaoin (3)
- # jackdaw (5)
- # jobs (2)
- # kaocha (34)
- # minimallist (6)
- # off-topic (17)
- # pathom (2)
- # pedestal (11)
- # re-frame (8)
- # reagent (5)
- # rewrite-clj (19)
- # shadow-cljs (30)
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?
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.
Just re-installed the extension and it still works. How do you create a new file?
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
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)
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?
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.
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.
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)
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"
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
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.
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
I had this strange thing where I got 130 working once but cannot anymore so it seems to be somehwat random
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...
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)
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.
I will try it tomorrow. Sadly, I have SciCloj workshop starting in 17 min and I need my repl and connection working for it.
I would be happy to try troubleshoot this when I have time. How do I debug the code to track the error down?
Usually there is a badge next to the extension icon, it indicates that reload is required.