Skip to content

Implicit javac Task Doesn't Receive Project Map as Produced by update-in #2666

@timvisher

Description

@timvisher

Initial debugging steps
Before creating a report, especially around exceptions being thrown when running Leiningen, please check if the error still occurs after:

  • Updating to using the latest released version of Leiningen (lein upgrade).
  • Moving your ~/.lein/profiles.clj (if present) out of the way. This contains third-party dependencies and plugins that can cause problems inside Leiningen.
  • Updating any old versions of plugins in your 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.
  • (If you are using Java 9 or newer), updating your dependencies to their most recent versions. Recent JDK's have introduced changes which can break some Clojure libraries.

Describe the bug
Implicit javac Task Doesn't Receive Project Map as Produced by update-in.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/timvisher/leiningen-bug-update-in-implicit-javac && cd leiningen-bug-update-in-implicit-javac
  2. Ensure docker, curl, tar, and mktemp all are present.
  3. Run the command ./run_bug_repro
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions