-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
java.lang.AssertionError on 0.7.0 #125
Comments
@leodoi3 Could you provide a minimal |
Here's a sample project.clj that causes the problem.
It also fails on 1.0.0-RC3 . But it works on 0.6.15. |
@leodoi3 Unfortunately, I cannot reproduce the issue. The above
That really is the expected output ☝️. From you comment, it seems like you were expecting something else, though? Can you share the output of |
Sorry for the late reply. I'm not sure how
Here's the output from the project.clj that's causing the exception.
|
Thanks for the output! Unfortunately, everything looks fine. The error seems to indicate that rewrite-clj (the library used for reading/writing Clojure code) gets confused when handling newline characters. I can't really see where it could even go wrong in the code, but maybe your file format/encoding is the problem. What OS are you using? Could you upload an actual failing file (e.g. the sample one) somewhere so we could check?
Sorry for that - I thought that was a copy/paste issue. The "weird" sequences you see are ASCII escape sequences, intended to add colours to the output. It looks like your terminal does not understand them and thus just print them as they are. (The library we're using tries to detect these cases, but it seems you'll have to add |
After experiencing the same issue mentioned in #123 on 0.7.0 and on 1.0.0-RC3 I tried 1.0.0-RC4-SNAPSHOT and ran the same issue as OP. Changing line endings from CRLF to LF in VSCode fixed this issue for me. |
When running
lein ancient
on version 0.7.0 I get this error:The text was updated successfully, but these errors were encountered: