Skip to content
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

Bad behaviour of lein repl :headless with *print-level* set in :repl-options :init #99

Closed
mjwillson opened this issue Jan 22, 2013 · 5 comments

Comments

@mjwillson
Copy link

So this could well be related to #89 , either a regression or a new but similar issue.

The issue shows up for me when using nrepl.el to start a lein repl :headless. The repl starts up OK, but trying to load files in the repl triggers mysterious syntax errors which go away when I remove the (set! *print-length* 10) (set! *print-level* 5) from :repl-options :init in my profiles.clj.

The errors I'm seeing are as follows, although YMMV since it sounds like these are syntax errors due to my code being truncated with the *print-depth* etc settings:

CompilerException java.lang.RuntimeException: Unable to resolve symbol: finally in this context, compiling:(NO_SOURCE_PATH:1)

RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:170)

This is using the new leiningen 2.0.0 release which in turn is using reply 0.1.9.

@mjwillson
Copy link
Author

I should also say that the issue appeared after upgrading leiningen from 2.0.0-preview10 to the 2.0.0 release. Just checked and it seems this release bumped the reply dependency from 0.1.0-beta10 to 0.1.9.

To replicate, probably best to try an extremely low *print-length* / *print-depth*.

@mjwillson
Copy link
Author

Also, for what it's worth I don't think this is to blame: technomancy/leiningen#878 since I only have a :repl-options :init in my ~/.lein/profiles.clj not in any project.clj's.

@trptcolin
Copy link
Owner

See my comments in #89 - I suspect this isn't a REPLy-specific issue since it's happening with lein repl :headless but I can't reproduce with normal lein repl.

@mjwillson
Copy link
Author

Ah that makes sense. I can't reproduce with plain lein repl either. Apologies for the mis-targeted report!

@trptcolin
Copy link
Owner

Cool; no worries at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants