This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-17
Channels
- # adventofcode (25)
- # announcements (2)
- # babashka (16)
- # babashka-sci-dev (16)
- # beginners (213)
- # calva (15)
- # clj-kondo (126)
- # clj-on-windows (1)
- # cljdoc (5)
- # cljfx (1)
- # cljs-dev (6)
- # clojure (230)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-uk (3)
- # conjure (10)
- # core-async (15)
- # cursive (33)
- # fulcro (58)
- # hyperfiddle (4)
- # jobs-discuss (1)
- # kaocha (5)
- # lsp (46)
- # meander (3)
- # off-topic (30)
- # polylith (10)
- # portal (9)
- # re-frame (5)
- # reitit (7)
- # releases (2)
- # ring (17)
- # sci (8)
- # shadow-cljs (6)
- # specter (1)
- # sql (1)
- # testing (9)
- # tools-deps (4)
- # vim (12)
Not sure if this is a Conjure thing, or a CLJS/Figwheel thing, but getting this when I try to eval a file:
; (err) #object[SyntaxError SyntaxError: Unexpected identifier]
; (err) /Users/sproctor/.../update.cljs:1
; (err) (ns update
; (err) ^^^^
; (err)
; (err) SyntaxError: Unexpected identifier
; (err) at new Script (vm.js:88:7)
; (err) at createScript (vm.js:261:10)
; (err) at runInThisContext (vm.js:309:10)
; (err) at Object.nodeGlobalRequire (/Users/sproctor/.../target/fig/goog/bootstrap/nodejs.js:114:25)
; (err) at cljs$core$load_file (/Users/sproctor/.../target/fig/cljs/core.js:325:13)
; (err) at eval (eval at figwheel$client$utils$eval_helper (/Users/sproctor/.../target/fig/figwheel/client/utils.js:155:8), <anonymous>:1:313)
; (err) at eval (eval at figwheel$client$utils$eval_helper (/Users/sproctor/.../target/fig/figwheel/client/utils.js:155:8), <anonymous>:9:3)
; (err) at figwheel$client$utils$eval_helper (/Users/sproctor/.../target/fig/figwheel/client/utils.js:155:8)
when I eval a buffer, I get a result of nil
, but not everything loaded in CLJS (with Figwheel)…. Clojure works as expectedNot sure right now, but do other namespaces work? Is it just because your namespace is called update?
just got a chance to test on a work shadow-cljs project that is node backed, and the eval (file)
works, so looks like it might be a lein-fighweel
related issue, or the way I connect to that repl
It may well be that with shadow you don't need to piggieback and figwheel you do :thinking_face: This might help if you're using figwheel.main but I don't think you are, I think lein-figwheel is the older version https://gist.github.com/pyrmont/73d10c74d14f26772fd276c38ee3490d And here's Conjure's docs on piggieback https://github.com/Olical/conjure/blob/2752d956f26d47cc14dfe74eda72898cd3e84440/doc/conjure-client-clojure-nrepl.txt#L56-L66
Because you can connect to a figwheel nREPL but I think it's in a weird JVM mode at first, then you "piggieback" the nREPL into CLJS land... it's a little confusing. I much prefer shadow-cljs' method 😅