-
-
Notifications
You must be signed in to change notification settings - Fork 849
fix[tool]: fix output bundle construction #4654
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
base: master
Are you sure you want to change the base?
fix[tool]: fix output bundle construction #4654
Conversation
this fixes output bundle construction when there is a semantic error during compilation.
@@ -25,7 +25,7 @@ | |||
from vyper.utils import OrderedSet | |||
|
|||
if TYPE_CHECKING: | |||
from vyper.semantics.analysis.base import ImportInfo, ModuleInfo | |||
from vyper.semantics.analysis.base import ModuleInfo |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.semantics.analysis.base
vyper.semantics.types.module
definition
import
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4654 +/- ##
=======================================
Coverage 92.79% 92.79%
=======================================
Files 131 131
Lines 18939 18928 -11
Branches 3289 3283 -6
=======================================
- Hits 17574 17565 -9
+ Misses 934 932 -2
Partials 431 431 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ast_dict = { | ||
"contract_name": str(compiler_data.contract_path), | ||
"ast": ast_to_dict(compiler_data.vyper_module), | ||
"imports": [ast_to_dict(ast) for ast in imported_modules], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this misses json interfaces, maybe let's leave a comment/raise an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, i'll leave a comment.
math doesn't show up in import for import math
def foo():
d: decimal = math.sqrt(2.0) |
this fixes output bundle construction when there is a semantic error during compilation.
What I did
fix #4526
How I did it
How to verify it
Commit message
Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)
Description for the changelog
Cute Animal Picture