We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-Moving a contract source file to a different subdirectory within contracts/ raises a FileNotFoundError:
contracts/
FileNotFoundError
File "eth_brownie-1.8.6-py3.8.egg/brownie/_cli/__main__.py", line 58, in main importlib.import_module(f"brownie._cli.{cmd}").main() File "eth_brownie-1.8.6-py3.8.egg/brownie/_cli/console.py", line 44, in main active_project = project.load() File "eth_brownie-1.8.6-py3.8.egg/brownie/project/main.py", line 543, in load return Project(name, project_path) File "eth_brownie-1.8.6-py3.8.egg/brownie/project/main.py", line 154, in __init__ self.load() File "eth_brownie-1.8.6-py3.8.egg/brownie/project/main.py", line 184, in load self._build._add(build_json) File "eth_brownie-1.8.6-py3.8.egg/brownie/project/build.py", line 55, in _add self._generate_revert_map( File "eth_brownie-1.8.6-py3.8.egg/brownie/project/build.py", line 76, in _generate_revert_map revert_str = self._sources.get(path_str)[data["offset"][1] :] File "eth_brownie-1.8.6-py3.8.egg/brownie/project/sources.py", line 71, in get with Path(key).open() as fp: File "/usr/lib/python3.8/pathlib.py", line 1213, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/usr/lib/python3.8/pathlib.py", line 1069, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: 'contracts/Token.sol'
Consider a changed path when deciding which files to recompile.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What was wrong?
-Moving a contract source file to a different subdirectory within
contracts/
raises aFileNotFoundError
:How can it be fixed?
Consider a changed path when deciding which files to recompile.
The text was updated successfully, but these errors were encountered: