This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-09
Channels
- # announcements (2)
- # babashka (11)
- # beginners (9)
- # biff (7)
- # calva (20)
- # catalyst (1)
- # cider (8)
- # clerk (46)
- # clj-kondo (18)
- # clj-otel (2)
- # clojure-brasil (22)
- # clojure-europe (18)
- # clojure-gamedev (23)
- # clojure-italy (5)
- # clojure-nl (2)
- # clojure-norway (14)
- # clojure-uk (6)
- # clr (1)
- # datomic (13)
- # emacs (1)
- # hoplon (13)
- # hyperfiddle (53)
- # introduce-yourself (1)
- # java (23)
- # malli (7)
- # obb (35)
- # off-topic (31)
- # polylith (2)
- # portal (9)
- # rdf (15)
- # reitit (12)
- # releases (3)
- # ring (4)
- # shadow-cljs (6)
- # solo-full-stack (3)
Question from the docs -> https://calva.io/getting-started/#there-are-standalone-clojurescript-quick-start-repls In the quick start REPLs section. > Without creating a project structure or installing anything but Calva, you can start standalone ClojureScript REPLs both in a browser and for node Is it supposed to "just work" or am I missing something here? I tried running both browser and the node options and didn't get any feedback from the system, positive or negative. Tried it on windows; I'm planning to try on a linux machine next.
Yes, it is supposed to just work. The only requirement is Java. See the “works on my machine” video I just recorded. 😃 Is nothing happening at all?
Yeah ok so I thought that's what it's supposed to do. Here's what it looks like on my machine.
It could be some powershell issue… Shouldn’t, I think I have tested that. But you could try to set the default shell to cmd (or whatever it is called, the old dos thing). Also, what’s lacking from your video is what happens in the terminal pane. There may be some error message there.
yeah i checked the terminal, nothing there either. I'll try the cmd thing in a bit and follow up on the outcome.
sorry for the late reply, no dice on the cmd either. happy to offer whatever additional info i can though!
If you have the time, it would be great if you could run Calva in development mode, and try to catch this in the debugger. As long as I can’t reproduce, it is very hard to fix, but if we can see where this happens, we’ll have it fixed in a jiffy, I think. I believe this document correctly describes how to run Calva in dev: https://github.com/BetterThanTomorrow/calva/wiki/Run-Calva-in-Development-Mode (It’s quite few and quick steps.)
Yeah happy to help however I can. I've run it in debugging mode and noticed two things.
First, in step four, we have this quote:
> Back in the first VS Code window run the command "Calva: Connect to a running REPL in your project", choosing the calva
project root and then the Calva
project type, accepting the host and port to connect to.
And suggests I should be able to connect to an already running repl, however when I run this command my output windows informs me that it cannot find a repl to connect to. Screenshot is attached.
Second, if we just run the node command instead of step 4, I still get no feedback, not even in the terminals. I'll try to do another recording and upload in a bit.
minor correction: it looks like in the watch test window we're getting a bunch of fiddle errors example:
1) fiddle files
mapping
source->fiddle
finds mapping:
TypeError: Cannot read properties of undefined (reading 'fiddle')
at Context.<anonymous> (src\extension-test\unit\util\fiddle-files-test.ts:14:12)
at processImmediate (node:internal/timers:476:21)
Hi! Thanks for helping with this! I’ve also noticed that it can be a bit finickey to connect the repl. I don’t know why. Fortunately for the bug we are hunting now we won’t need the ClojureScript REPL, because it will be in the TypeScript code we have the bug. I’ll be happy to later update the instructions with the rain dance I perform to get the REPL connected.
Interesting with the failing test there. I wonder if it could be similar to what you are experiencing with that quick start repl….
Thanks. There is some file path jazzing with the fiddle files, so probably something to do with windows file separators. I’ll run the tests on a Windows machine I have and will let you know if I can reproduce it or not. The Node REPL Quick Start I can’t reproduce, so lets try to do it on your machine. Do you have time for a quick Huddle? Otherwise we can do it async too of course.
Here’s a tweet you are welcome to like and repost, dear Calva friends: https://twitter.com/pappapez/status/1711478485259075953