Initial debugging steps
Before creating a report, especially around exceptions being thrown when running Leiningen, please check if the error still occurs after:
Describe the bug
Implicit javac Task Doesn't Receive Project Map as Produced by update-in.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/timvisher/leiningen-bug-update-in-implicit-javac && cd leiningen-bug-update-in-implicit-javac
- Ensure docker, curl, tar, and mktemp all are present.
- Run the command
./run_bug_repro
- See that the final execution fails despite
update-in being used to correct :java-cmd.
Actual behavior
javac uses the original definition of :java-cmd rather than the updated definition.
Expected behavior
javac uses the update-ined definition of :java-cmd to use the correct install of javac.
Link to sample project
https://github.com/timvisher/leiningen-bug-update-in-implicit-javac
Logs
See https://github.com/timvisher/leiningen-bug-update-in-implicit-javac#log-of-local-run-2020-03-19t101112
Environment
- Leiningen Version:
Leiningen 2.9.3 on Java 1.8.0_242 OpenJDK 64-Bit Server VM
- Leiningen installation method: manual
- JDK Version:
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (Zulu 8.44.0.13-CA-linux64) (build 1.8.0_242-b20)
OpenJDK 64-Bit Server VM (Zulu 8.44.0.13-CA-linux64) (build 25.242-b20, mixed mode)
- OS: Ubuntu 18.04
- Anything else that might be relevant to your problem?
N/A
Additional context
N/A
Initial debugging steps
Before creating a report, especially around exceptions being thrown when running Leiningen, please check if the error still occurs after:
lein upgrade).~/.lein/profiles.clj(if present) out of the way. This contains third-party dependencies and plugins that can cause problems inside Leiningen.project.clj, especially if the problem is with a plugin not working. Old versions of plugins like nREPL and CIDER (as well as others) can cause problems with newer versions of Leiningen.Describe the bug
Implicit
javacTask Doesn't Receive Project Map as Produced byupdate-in.To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/timvisher/leiningen-bug-update-in-implicit-javac && cd leiningen-bug-update-in-implicit-javac./run_bug_reproupdate-inbeing used to correct:java-cmd.Actual behavior
javacuses the original definition of:java-cmdrather than the updated definition.Expected behavior
javacuses theupdate-ined definition of:java-cmdto use the correct install ofjavac.Link to sample project
https://github.com/timvisher/leiningen-bug-update-in-implicit-javac
Logs
See https://github.com/timvisher/leiningen-bug-update-in-implicit-javac#log-of-local-run-2020-03-19t101112
Environment
N/A
Additional context
N/A