-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
IndexError: list index out of range #2250
Comments
This may be related to something I'm seeing in fuzzing. Using the compiler without a file to compile strings, I get:
|
(I did not get a chance to see if same exception chain, since the inputs are obviously different. By the way, is it fine to submit bugs through just the string sent to 'vyper.compiler.compile_code'? Not going through vyper CLI is a huge win for persistent AFL fuzzing, but due to some file reading (with odd character) issues, they don't always reproduce. But I assume CompilerPanics or non-vyper exceptions from compile_code are fine, since under the hood CI is calling that, anyway? |
(Attn @iamdefinitelyahuman on the fuzzing q) |
I'll report mine separately, since for me the code in this bug report fails with:
different symptom, while I can produce IndexError. |
@agroce Very interesting the different Error Message 🤔 Well I think the biggest problem for IndexError is that it is too general |
Yeah, I think we probably just have different bugs, see #2258 |
This was fixed in #2500 |
Version Information
vyper --version
): 0.2.8+commit.069936fpython --version
): Python 3.9.0pip freeze
):What's your issue about?
Following code produces this Compile Error and it fails to compile:
IndexError: list index out of range
How can it be fixed?
I don't know what really is the cause of this. I do have a workaround though.
Cheers!
The text was updated successfully, but these errors were encountered: