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

Compile bugs for Vyper >= 0.3.6 #3153

Closed
AkemiHomura-maow opened this issue Nov 18, 2022 · 1 comment
Closed

Compile bugs for Vyper >= 0.3.6 #3153

AkemiHomura-maow opened this issue Nov 18, 2022 · 1 comment

Comments

@AkemiHomura-maow
Copy link

Version Information

  • vyper Version : 0.3.6, 0.3.7
  • OS: win
  • Python Version : 3.8.5

What's your issue about?

Please include information like:

Brownie v1.17.2 - Python development framework for Ethereum

Compiling contracts...
Vyper version: 0.3.7

  • Sugar
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_cli_main_.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_cli\run.py", line 40, in main
    active_project = project.load()
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\main.py", line 751, in load
    return Project(name, project_path)
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\main.py", line 183, in init
    self.load()
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\main.py", line 238, in load
    self._compile(changed, self.compiler_config, False)
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\main.py", line 95, in compile
    build_json = compiler.compile_and_format(
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\compiler_init
    .py", line 142, in compile_and_format
    build_json.update(generate_build_json(input_json, output_json, compiler_data, silent))
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\compiler_init
    .py", line 328, in generate_build_json
    build_json[contract_alias] = vyper._get_unique_build_json(
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\compiler\vyper.py", line 255, in _get_unique_build_json
    pc_map, statement_map, branch_map = _generate_coverage_data(
    File "C:\Users\Han.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\compiler\vyper.py", line 314, in _generate_coverage_data
    source = source_map.popleft()
    IndexError: pop from an empty deque

This error occurs during complications of Vyper contracts from brownie. Only happens when the vyper version used is >= 0.3.6, works fine when I set it to 0.3.3. No idea of what's going on, could anyone see what's wrong here? Tyvm!

@charles-cooper
Copy link
Member

this was a brownie issue which was fixed as of 0.19.2 eth-brownie/brownie#1623 -- please upgrade your brownie version to latest and reopen if there is still an issue

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