joyride

alpox 2023-05-04T21:22:43.394689Z

I just wanted to try something out with joyride but couldn’t get it running. I newly installed the extension and wanted to start a REPL through Start a Joyride REPL and Connect. It opened the REPL output window with some stuff and among it:

; Failed connecting.
; Jack-in done.
In the dev-tools I saw:
Failed connecting: #error {:message "Could not resolve symbol: clojure.main/repl-requires", :data {:type :sci/error, :line 1, :column 1, :message "Could not resolve symbol: clojure.main/repl-requires", :sci.impl/callstack #object[cljs.core.Volatile {:val ({:line 1, :column 1, :ns #object[XV user-activate], :file nil} {:line 1, :column 1, :ns #object[XV user-activate], :file nil, :sci.impl/f-meta {:name apply, :arglists ([f args] [f x args] [f x y args] [f x y z args] [f a b c d & args]), :doc "Applies fn f to the argument list formed by prepending intervening arguments to args.", :sci/built-in true, :ns #object[XV clojure.core]}})}], :file nil, :phase "analysis"}, :cause #error {:message "Could not resolve symbol: clojure.main/repl-requires", :data {:type :sci/error, :line nil, :column nil, :file nil, :phase "analysis"}}}
The nrepl seems to be running after that but the REPL never connected. Is there some specific step I missed to get it running?

alpox 2023-05-05T09:32:58.570359Z

Thanks for the fast fix

🙏 1
alpox 2023-05-04T21:23:58.245429Z

PS. i’m not in a hurry, gotta go get some sleep in soon anyway 😉

borkdude 2023-05-04T21:24:20.331859Z

Maybe a Calva issue, clojure.main/repl-requires isn't in joyride I think

pez 2023-05-04T21:24:20.940109Z

It might be a recently introduced bug in Calva. Try disabling the Auto-refer REPL utilities in settings and see if that helps.

pez 2023-05-04T21:25:46.054459Z

We probably should add those requires in Joyride too. But Calva shouldn’t crash like that when they’re missing.

borkdude 2023-05-04T21:26:07.044619Z

requiring-resolve to the rescue

alpox 2023-05-04T21:26:21.629839Z

@pez Thanks, that worked (after a vscode restart) 🙂 I don’t really know what that auto-refer is doing but I’m happy when things work 😄

alpox 2023-05-04T21:30:17.059379Z

Ah did it try to resolve the repl helpers on connect but couldn’t because they were not required yet?

pez 2023-05-04T21:30:20.961199Z

It’s Calva trying to deliver on the promise from clojure.main/repl-requires: >

A sequence of lib specs that are applied to `require`
> by default when a new command-line REPL is started.

pez 2023-05-04T21:31:07.562469Z

… but couldn’t because they are not there in Joyride, I think is more what happens.

🤔 1
pez 2023-05-04T21:34:37.901069Z

https://github.com/BetterThanTomorrow/calva/issues/2178

👍 1