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

Unable to compile with carriage returns as part of the source code's "content" #4297

Open
wwwMalcolm opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
bug - UX a bug related to UX

Comments

@wwwMalcolm
Copy link

wwwMalcolm commented Oct 14, 2024

Version Information

  • 0.4.0+commit.e9db8d9f

What's your issue about?

Please include information like:

Vyper compiler having issue with carriage returns, specifically if "\r" show's up in the value of "content" within the input.json. Making a guess here that this is probably something that's more related to Windows OS.

Command used with the files attached:

vyper.0.4.0.exe --standard-json -o error-output.json error-input.json

The error content within error-output.json is:

{"compiler": "vyper-0.4.0", "errors": [{"component": "compiler", "message": "substring not found", "severity": "error", "sourceLocation": {"file": "SimpleStorage.vy"}, "type": "ValueError"}]}

error-input.json

error-output.json

If all the "\r" were removed, the command used, will be able to produce a proper output.json

@charles-cooper charles-cooper added the bug - UX a bug related to UX label Oct 15, 2024
@charles-cooper
Copy link
Member

confirmed, here is a repro outside of standard-json input
repro.txt

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

No branches or pull requests

4 participants
@charles-cooper @sandbubbles @wwwMalcolm and others