Having a `.solhint.json` with custom rules breaks the Solidity compiler server

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.
- Temportal fix: Removing the
.solhint.json
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 :(
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 3.0, I'll tell you how that goes :D

So, after some extra testing I've come to the following conclusions:
- The
solhintversion is not the problem. - Having a
.solhint.jsonis not the problem. - The problem is having custom rules.
- The error.
- My
.solhint.jsonfile.
- My
package.json
EDIT:
I wonder if this - https://github.com/protofire/solhint/issues/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..
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 Solidity Compiler Server which it didn't before :(
I'm wrestling with a similar issue now, after having recently upgraded to [email protected]. Some obvious errors are correctly highlighted:
But others, such as incorrect types, are not (underlyingOut should be an uint256):
This is with [email protected]. Deleting .solhint.json didn't fix this.
@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 https://github.com/protofire/solhint/issues/206