-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Disable hint-level diagnostics #271
Comments
@patricknraanes If you change the
or
|
microsoft/pyright#982 (comment)
coc-pyright will remove the |
Releases with v1.1.103, |
Maybe we should not remove
I'll look into this whether these two ways conflict. |
The latest coc-pyright, v1.1.103, has removed the I'll leave this issue open to see whether this will cause other unexpected problems. |
@fannheyward I'm not sure if this is related, but I am not receiving any unused notifications now. I can see unused import warnings with the appropriate diagnostic overrides set, but no unused variable diagnostics. Is this still under investigation? I'm using this config:
It does not appear any combination of diagnostic overrides or coc options produces the diagnostics. They do show up when using nvim lsp, however. |
A bit of clarification: I am receiving diagnostic warnings for variables declared but not used within that function's scope, but not for parameters included in the signature but not used within that function's scope. Perhaps this is handled by some other option? |
I'm having the same issue. The defaut behavior seems to have been changed and this change was introduced recently. I do benefit from those hints. So I rolled back to an previous version of coc-pyright.
|
@haoyun @HudsonMC16 try v1.1.113. |
@HudsonMC16 In my environment, "v1.1.113" shows up fine. Has your coc-pyright been updated to v1.1.113? I checked your You have customized the |
pyright language server 1.1.113
in this case, |
@lsaint In that case, make sure to show the Hint level message. ( For example, add |
@yaegassy |
@lsaint Check the documentation of pyright itself to see if there are any control settings for diagnostic messages that you expect, and try them out. https://github.com/microsoft/pyright/blob/master/docs/configuration.md#type-check-diagnostics-settings If the configuration you expect does not exist, you may want to suggest it in |
@fannheyward Ah, this was totally it. Sorry, I misunderstood how the configs inherit from eachother, and figured that with a diagnostic override setting |
Sorry, I'm a little confused. Is there a setting combination that would lead to |
You can disable the self not accessed hint from coc-pyright v1.1.129, set |
hmm, hard code, but it work well. |
Thanks for all the great work!
Is there any way to get rid of "hint" type diagnostics? See attached screenshot:
I've tried all of these with no luck:
The text was updated successfully, but these errors were encountered: