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

feat: better error messages for incompatible versions #200

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Sep 16, 2024

Closes #43

Adds logic to resolve which nodes actually caused the resolver failure. This provides us access to ids of actually incompatible nodes in format_imports_list fn.

It will now highlight sources causing failure in red

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way we can add a test with snapbox, at least for the formatting?

crates/compilers/src/resolver/mod.rs Outdated Show resolved Hide resolved
@klkvr
Copy link
Member Author

klkvr commented Sep 17, 2024

Is there a way we can add a test with snapbox, at least for the formatting?

added a test in 488a4cd

@DaniPopes DaniPopes merged commit 71a4990 into main Sep 17, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

Improve incompatible solidity versions error formatting
2 participants