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

incorrect typo position reported for staticall #4225

Open
AlbertoCentonze opened this issue Sep 4, 2024 · 1 comment
Open

incorrect typo position reported for staticall #4225

AlbertoCentonze opened this issue Sep 4, 2024 · 1 comment

Comments

@AlbertoCentonze
Copy link
Contributor

AlbertoCentonze commented Sep 4, 2024

The Vyper grammar expects staticcall to be used as a keyword. However, when staticall (missing 'c') is typed, the error is incorrectly reported at a different location in the code. This misplacement of the error message makes it challenging to identify and fix what would otherwise be a simple typo.

Here's an example:
image

@charles-cooper
Copy link
Member

at least a small improvement: #4226

Screenshot from 2024-09-05 15-52-08

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