-
Notifications
You must be signed in to change notification settings - Fork 195
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
Having a .solhint.json
with custom rules breaks the Solidity compiler server
#179
Comments
Thanks, I have upgraded to solhint 3.0 on the latest release, I did not experienced any issues on my side even using a JSON file... obviously not enough :( |
I will try installing the latest solhint version locally and use some custom rules that I already have for |
So, after some extra testing I've come to the following conclusions:
EDIT: I wonder if this - protofire/solhint#206 - will fix it. |
Ah what you meant by custom rules was your plugins, not your specific rules. Yes that needs to be fixed by the solhint guys... the same as before.. |
Yeah, the problem is that it now crashes the |
@PaulRBerg custom rules are not supported as it needs further work from solhint, mainly a way to inject those custom rules into the plugin. As those rules need to be loaded dynamically and found. Mainly in the user repo or something like that. |
I don't think I am using custom rules. This is my .solhint.json file. Also the type error above is not triggered by solhint, but the solidity compiler itself. |
Yes you are using the "prettier" plugin @PaulRBerg |
Ah so that's what you mean by custom rules. Gotcha. Tagging @fvictorio (creator of the prettier plugin), in case he knows how to patch this. |
@PaulRBerg we have some thread there protofire/solhint#206 |
I've noticed that my extension was not telling me about errors, like
unused parameters
and stuff like that, then I noticed the message about the Solidity server crashing.At first it was complaining about some custom rules that I have (They are for solhint
2.x
), then I removed the rules (but left the.solhint.json
) then it complained about it being empty. After I completely removed the.solhint.json
file it did not stop crashing..solhint.json
The text was updated successfully, but these errors were encountered: