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
:repl-options :init seems to be ignored by lein repl :headless #788
Comments
Should have said: this is using Leiningen 2.0.0-preview10 |
Anyone have any ideas on this? it's a bit of a drag having to manually enable basic conveniences like stacktrace, pprint, print-level etc, in every new REPL (affecting emacs nrepl.el and other IDEs which use a headless repl) |
Hoping to get this fixed in the next release. In the mean time you should be able to just add those kinds of conveniences to the |
The problem here is that the |
I am going to take a crack at this. |
I have a pull request that fixes this for the Trampoline is a slightly different story.
|
Thanks for the fix! For trampolining it looks like the problem here is that |
I'll take a look at the trampoline and and address that in a separate PR. |
Hoping to do a release candidate soon; should I plan on this making it in or should we push this off to the next release? |
Apologies for the delay. I am planning to try to get you a fix this weekend. When are you trying to do RC? |
No problem; it's probably a week out at this point. Thanks! |
I spent some time with this over the weekend and here are my findings.
If I set which of course causes the the repl startup to fail:
This appears to be an issue on the reply side of things and I plan to log it against that. |
OK, my bad; not sure what I was thinking earlier. Thanks for tracking this down. I think you're right that the metadata issue needs to be addressed upstream in reply. |
I submitted trptcolin/reply#89 for the reply issue. |
If I do a
lein repl
the init code runs (the 'hello' visible, print-length change has taken effect), whereas if I do alein repl :headless
and connect to it vialein repl :connect
, the init code doesn't run, in particular my print-length setting doesn't take effect, which is the main goal here, I want to stop emacs / nrepl.el hanging nastily if I accidentally type some big lazy sequence into the repl.(Also, neither
lein repl
norlein repl :headless
seems to run the init code if I run it outside of a folder with a project.clj. Was this intentional? It would be nice if my profiles.clj applied everywhere)The text was updated successfully, but these errors were encountered: