-
Notifications
You must be signed in to change notification settings - Fork 151
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
Problem with lein-cljsbuild and lein-monolith #465
Comments
BTW: lein version -> Leiningen 2.6.1 on Java 1.8.0_66 Java HotSpot(TM) 64-Bit Server VM |
Thank you for the detailed description and for the example repo. Much appreciated 👍 I was able to reproduce your results. It seems that the build process is started (there is a |
:) If you need any further help, info, anything, just let me know. BTW: My guess is the "location" of the source folder is not found - as the build process is started, but doesn't really compile a thing. However, if started from the sub-project dir, everything is in place as cljsbuild expects it. Just my two cents. |
Yes, you are right 👍 It looks for the source files in the directory where the build command was executed in, so for your example it looks in Seems like Leiningen passes a |
The working directory is usually the project's home directory, except when using lein-monolith. If lein-monolith is used we need to adjust the source-paths to be relative to the current working directory, so that the compiler can find the source files.
@chrisbetz Just pushed a first version of the fix to master and deployed it as |
@mneise That's gorgeous. I'm happy to hear you found a possibility to fix things. Really looking forward. We're in the middle of a new release of our software, so I won't be able to check today or next monday, but I will try to look into 1.1.7-SNAPSHOT on tuesday to see if I can provide you with feedback on things (if you like). Really, really appreciating your work :) Thanx! |
@chrisbetz I found a better fix for this. Cljsbuild creates a new subprocess to run the compiler and the working directory for the subprocess wasn't set correctly, since cljsbuild didn't include the Let me know if you run into any more problems 😉 |
@mneise Hi Maria, which version contains your latest fix for this? |
@thron7 You can try it out using |
Hi,
we're trying to use lein-monolith for building our Clojure/ClojureScript application. Unfortunately, lein-monolith does clash with lein-cljsbuild.
You can see this using the example repo from our fork.
Running
from project root (monolith-path) is compiling clojurescript, but does not produce a result (as you can see in the output: there is no line like this
Compiling "js/compiled/app.js" from ["src/cljs"]...
. (see below for full output).Same is true if we're using hooks to run cljs compiler on regular leiningen tasks.
I also opened an issue on the lein-monolith repo, but I'm just not sure where the problem is located.
I would be very grateful for any hints on this. :)
Build from monolith project
Build from sub-project
(not what I was trying to achieve, just for showing the actual correctness of our configuration)
The text was updated successfully, but these errors were encountered: