technomancy / leiningen

Moved to Codeberg; this is a convenience mirror
https://codeberg.org/leiningen/leiningen
Other
7.29k stars 1.61k forks source link

If you create an empty cljs file in your src, then "cljsbuild auto" stops posting your updated cljs to the "out" folder (next to the source map) #1441

Closed mrcslws closed 10 years ago

mrcslws commented 10 years ago

Repro steps:

  1. Run "lein new mies clojurescript-project"
  2. Run "lein cljsbuild auto clojurescript-project"
  3. (Optional) Modify your core.cljs file, and save it. Observe how Leiningen automatically repopulates ["core.cljs" "core.js" "core.js.map"] files in the "out" folder.
  4. Create an empty cljs file in the "src" folder. (e.g. "file.cljs")
  5. Modify your core.cljs file

EXPECTED: Similar to step [3], the "core.cljs" in the "out" folder is updated

ACTUAL: This file will never get updated again. When you try to view your code using browser developer tools, you'll find yourself looking at a long-dead version of your source.

The issue goes away when you delete the second file, or when you add a namespace to it

hypirion commented 10 years ago

From what I gather, this has nothing to do with lein itself, but the lein-cljsbuild plugin. It seems reasonable to open up an issue over there.

I'll close this one, but if you feel it still is relevant to Leiningen itself, feel free to reopen.

mrcslws commented 10 years ago

Good call, thanks! I moved it here: https://github.com/emezeske/lein-cljsbuild/issues/292