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 error messages during compilation #3994

Open
cyberthirst opened this issue May 2, 2024 · 0 comments
Open

Incorrect error messages during compilation #3994

cyberthirst opened this issue May 2, 2024 · 0 comments
Labels
bug - UX a bug related to UX

Comments

@cyberthirst
Copy link
Collaborator

Version Information

  • vyper Version (output of vyper --version): commit 4b4e188

Issue description

  • In VariableDecl.validate(), instead of calling the method
    self._pretty_location() to pretty-print the location of the given
    variable, self._pretty_location is used.
  • In _CreateBase.build_IR, context.check_is_not_constant should be
    called with an f-string and not a regular string to have self._id
    as the id of the built-in in the error message.

credits: @trocher

@charles-cooper charles-cooper changed the title Incorrect Error Messages Incorrect error messages during compilation May 2, 2024
@charles-cooper charles-cooper added the bug - UX a bug related to UX label May 2, 2024
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

2 participants