export of a public variable crashes the compiler
cyberthirst opened this issue · comments
Version Information
- vyper Version (output of
vyper --version
): 0.4.1b2+commit.25ea3bb95 - OS: linux
- Python Version (output of
python --version
): Python 3.11.10
What's your issue about?
i: public(uint256)
exports: self.i
Error compiling: tests/custom/test.vy
AttributeError: 'NoneType' object has no attribute '_metadata'
During handling of the above exception, another exception occurred:
vyper.exceptions.CompilerPanic: unhandled exception 'NoneType' object has no attribute '_metadata'
contract "tests/custom/test.vy:3", line 3:0
2
---> 3 exports: self.i
-------^
This is an unhandled internal compiler error. Please create an issue on Github to notify the developers!
https://github.com/vyperlang/vyper/issues/new?template=bug.md
the error message should look something like this:
Error compiling: tmp/main.vy
vyper.exceptions.StructureException: invalid export of a value
contract "tmp/main.vy:10", line 10:9
9
---> 10 exports: self.i
-----------------^
11
(hint: exports should look like <module>.<function | interface>)