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 formatting of error messages about EOF in multi-line statements #2317
Comments
Many thanks for reporting! |
It appears to be about |
Eh, it seems to be just easier to add those two exceptions to the except definition than come up withe something more complicated. |
Hi, |
Hi, thanks for considering contributing! And welcome 😄 I don't think anyone's currently working on it so feel free to attempt a fix 👍 Jack's messages above should get you in the right direction. |
Hi |
This |
Error compiling contract, Error message: The above exception was the direct cause of the following exception: vyper.exceptions.SyntaxException: EOF in multi-line statement |
I still get this error print(f"{"#"}") It took me a while to find which of the cells caused the error, as the error doesn't say. Running the problematic cell in a Python terminal shows that it still expected additional input to complete the statement, hence why an error was thrown by print(f"{'#'}") I posted about it in Stack Overflow on a similar question https://stackoverflow.com/a/77622709/6068036 |
Describe the bug
"EOF in multi-line statement" error is shown to the user as the raw tuple it was returned as, rather than in a nicely formatted message.
To Reproduce
For example:
print(
Expected behavior
A bit more nicely formatted error message.
Environment (please complete the following information):
Does this bug also happen on main?
Yes.
Additional context
For comparison, here's how I'm assuming the error should look like:
which is what you get in output when you try to format:
print([)
The text was updated successfully, but these errors were encountered: