You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cli specified: `Settings(compiler_version=None, optimize=None, evm_version=None, experimental_codegen=None, debug=None, enable_decimals=None)`
Error compiling: bug.vy
Traceback (most recent call last):
File "/home/ramana/.local/bin/vyper", line 8, in <module>
sys.exit(_parse_cli_args())
^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/cli/vyper_compile.py", line 65, in _parse_cli_args
return _parse_args(sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/cli/vyper_compile.py", line 238, in _parse_args
compiled = compile_files(
^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/cli/vyper_compile.py", line 377, in compile_files
output = vyper.compile_from_file_input(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/compiler/__init__.py", line 129, in compile_from_file_input
exc_handler(str(file_input.path), exc)
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/cli/vyper_compile.py", line 278, in exc_handler
raise exception
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/compiler/__init__.py", line 126, in compile_from_file_input
ret[output_format] = formatter(compiler_data)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/compiler/output.py", line 367, in build_bytecode_output
return f"0x{compiler_data.bytecode.hex()}"
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/functools.py", line 993, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/compiler/phases.py", line 253, in bytecode
return generate_bytecode(self.assembly, insert_compiler_metadata=insert_compiler_metadata)
^^^^^^^^^^^^^
File "/usr/lib/python3.12/functools.py", line 993, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/compiler/phases.py", line 235, in assembly
return generate_assembly_experimental(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/__init__.py", line 39, in generate_assembly_experimental
return compiler.generate_evm(optimize == OptimizationLevel.NONE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 160, in generate_evm
self._generate_evm_for_basicblock_r(asm, fn.entry, StackModel())
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 302, in _generate_evm_for_basicblock_r
self._generate_evm_for_basicblock_r(asm, bb, stack.copy())
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 302, in _generate_evm_for_basicblock_r
self._generate_evm_for_basicblock_r(asm, bb, stack.copy())
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 302, in _generate_evm_for_basicblock_r
self._generate_evm_for_basicblock_r(asm, bb, stack.copy())
[Previous line repeated 9 more times]
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 299, in _generate_evm_for_basicblock_r
asm.extend(self._generate_evm_for_instruction(inst, stack, next_liveness))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 405, in _generate_evm_for_instruction
self._emit_input_operands(assembly, inst, operands, stack)
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 268, in _emit_input_operands
self.dup_op(assembly, stack, op)
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 571, in dup_op
self.dup(assembly, stack, stack.get_depth(op))
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 565, in dup
assembly.append(_evm_dup_for(depth))
^^^^^^^^^^^^^^^^^^^
File "/home/ramana/.local/pipx/venvs/vyper/lib/python3.12/site-packages/vyper/venom/venom_to_assembly.py", line 584, in _evm_dup_for
raise StackTooDeep(f"Unsupported dup depth {dup_idx}")
vyper.exceptions.StackTooDeep: Unsupported dup depth 17
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
How can it be fixed?
Fill this in if you know how to fix it.
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
): 0.4.0+commit.e9db8d9python --version
): Python 3.12.5What's your issue about?
I ran
vyper --verbose bug.vy
where
bug.vy
containsI got this output
How can it be fixed?
Fill this in if you know how to fix it.
The text was updated successfully, but these errors were encountered: