-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Compilation breaks down in recent versions when changing CLJC file #708
Comments
I would strongly advise not using Beyond that this error is coming from the CLJS compiler. PS: I can't reproduce with a local |
That's the first time I hear from this buggy behaviour, thanks! (Is it related to the warning made regarding the caching behaviour at the bottom of https://blog.fikesfarm.com/posts/2017-06-28-clojurescript-const-var-inlining.html ?) Anyway, you seem to be right, because removing the ^:const does seem to remove errors (I have to comb through my entire code base, however). The problem is, from my perspective, unrelated to the ClojureScript version. Both 1.10.597 and 1.10.758 work nicely with Shadow-cljs 2.8.93, even when changing those CLJC versions. |
Addendum: all ^:const declarations removed from my code base, and the error is indeed gone. Thanks! |
Well, the post you linked would be describing one of the bugs IMHO. I consider it a bug since the behavior is different from Clojure, not sure why that was added.
|
Since a few versions, I get the error below when changing a CLJC file. I then have to kill Shadow-cljs, clean all directories, and restart it. (Note that I have quite some macros in my fairly large and complex code base, whereby the the macros affect both CLJS and CLJ files.)
No problems occur when changing only CLJS files.
I had to downgrade to the last version that worked perfectly, 2.8.93. If I recall correctly, the problem started somewhere around version 2.8.100, and the most recent one 2.9.0 also exhibits the problem.
Note that the error message about the redefining of a constant makes no sense. (Which is also evidenced by the fact that recompiling after cleaning the folders works fine. As does advanced compilation using lein-cljsbuild.)
The text was updated successfully, but these errors were encountered: