-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could be a Calva issue #1
Comments
OK. So it seems to be shadow-cljs that doesn't recompile the macro when loading a
Loaded http://localhost:8001 in the browser, then:
Then:
I expect: Wiping Why it works with |
Hmmm, could the difference between loading |
I'm not completely sure about why this happens like it does, but jotting down my thoughts so maybe we can figure it out together.
Some background:
CLJ1
while be used for Clojure files, andCLJ2
(promoted toCLJS
) will be used or ClojureScript files.CLJC
session ”pointer” which will point toCLJ1
by. default. (This pointer can be toggled by the user by clicking thecljc/clj
button in the statusbar.)When you load
example.cljc
it will compile the macro inCLJ1
. Then when you loadcore.cljs
it will compile the macro usingCLJ2
. Then you update the file and recompile the macro inCLJ1
by loadingexample.cljc
. Then you loadcore.cljs
which doesn't seem to recompile the macro. I don't know why.I tried this: I toggled the
CLJC
pointer to becljc/cljs
and then I get the expected results loading files in the orderexample.cljc
(recompiles the macro usingCLJ2
)core.cljs
But if I load
core.cljs
first the recompile doesn't happen.So, maybe it is generally the case that loading a
.cljs
file does not trigger a recompile of macros... This could be a Calva bug, but I don't recall any code in Calva that cares about wether a file is.cljc
or.cljs
. It just has this mapping offile-extension -> nrepl-session
and sends the nREPL op to the session it picks up.I'll investigate it a bit further and see what I can figure out.
The text was updated successfully, but these errors were encountered: