-
Notifications
You must be signed in to change notification settings - Fork 12
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
NullPointerException when run from lein with :eval-in :leiningen
#17
Comments
Hey, thanks for reporting this. I'm not sure what the intention is of If we simply want to scan for data_reader files then I see no reasing why we can't use the So yes a PR would be very appreciated. Try replacing |
Thanks for the reply @plexus! I can't say I understand the change nor why it doesn't work when But... maybe that does not matter too much. |
Hello @lread , My lein is of version
It seems that the issues resolved in newer leiningen version. |
It seems that the code
is the same like here. |
Hi @humorless, thanks for taking a look! ❤️
Yes, this is what I noticed too and reported in the original issue. I'm curious, |
Hello @lread, I have replied this issue, and I previously thought we get to good enough answer. (It seems that I was wrong.) I reopen it now. I made my judgement by two facts which I believe. (But, you know, sometimes, I make mistakes.)
Therefore, I guessed probably the issue disappears in the newer version of Leiningen. |
Cool, thanks for following up! |
We may actually want to close this issue if we can't reproduce it in the latest version of Leningen. @lread, have you run into this issue recently? Do you happen to know which version of Leiningen you were using? I suppose another reason to keep this open is the JavaDocs for
|
Okay, I did the obvious thing and tried I did find this on Clojuredocs: `clojure ;; WARNING: If the examples above don't seem to return the expected results, I wonder if nREPL is really to blame. They did fix an issue with the context class loader in 0.6.0. I can't test earlier versions of nREPL since manually setting an older version of nREPL in the |
Symptom
I was upgrading some pretty dated koacha deps in MrAnderson.
It was using version
0.0-32
of the kaocha-cloverage plugin.After upgrading to the current kaocha versions, I encoutered NullPointerExceptions:
Exploration
I had a peek a the plugin code that throws and saw:
kaocha-cloverage/src/kaocha/plugin/cloverage.clj
Lines 142 to 146 in 14f63cd
If I try this in code in a lein repl I can reproduce the
nil
:If I do this from a clojure REPL all is good:
I noticed that this change came from lein-cloverage and found a similar issue raised over there.
I then noticed MrAnderson is using
:eval-in :leiningen
in itsproject.clj
.Workaround
In MrAnderson's
project.clj
:kaocha
profile, I set:eval-in :sub-process
.Next Steps
Please feel free to close this issue if it is expected behaviour.
If it does represent an issue, I am happy to help in any way I can.
The text was updated successfully, but these errors were encountered: