-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add flag to reverse errors #4142
Add flag to reverse errors #4142
Conversation
hey @kayagokalp I made the changes you requested, I tried running error
--> /Users/mitchmackert/Code/sway/sway-lib-core/src/ops.sw:11:9
|
9 |
10 | fn add(self, other: Self) -> Self {
11 | __add(self, other)
| ^^^^^ Identifiers cannot begin with a double underscore, as that naming convention is reserved for compiler intrinsics.
12 | }
13 | }
|
____ would you mind giving me steps to test this correctly? I think I am looking at this the wrong way |
hey @gr00vytvniks thanks for the PR, the error looks odd. Can you make a rebase/merge master as you shouldn't have any lock file is the counter folder as we recently changed that folder to be a workspace, see. This type of core compilation errors can be seen with master forc depending on a released version of std/core. Can you make sure that in [dependencies]
std = { path = "../../sway-lib-std" } You should be able to test this with a template project by adding a couple of compile errors. Let me know if you are unsure/stuck 👍 |
Hey @kayagokalp, The error came from a collision between an old fuelup binary and a cargo binary. |
Hey @kayagokalp, I added a debug build profile like the book instructed but it is giving me this warning.
|
I went ahead and just changed the default in
|
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.
We should not revert it in any build profile imo. This is not something everyone would be using it is more niche command that some people may end-up using.
So we should not revert by default as it would be unexpected for the users. We should be able to use this feature with the flag forc build --reverse-errors
etc.
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.
Thanks!
Looks like there's a problem with the formatting of the |
Happy to approve this once merge conflicts are resolved and @kayagokalp gives his approval |
As a follow up PR, you could update the documentation so that developers will know how to use this feature. ie as part of a |
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.
Haven't tested yet but there's one thing that seems out of place if you wouldn't mind addressing it. After that I'll pull this branch and test it out!
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.
🚢
Thanks for this. just some last merge conflicts @gr00vytvniks |
closes #3860