question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable hint-level diagnostics

See original GitHub issue

Thanks for all the great work!

Is there any way to get rid of “hint” type diagnostics? See attached screenshot: hints

I’ve tried all of these with no luck:

# pyright: reportGeneralTypeIssues=false
# pyright: reportUnusedVariable=false
# pyright: off

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
yaegassycommented, Jan 21, 2021

@patricknraanes [H] (Hint) level messages cannot be disabled by pyright.

If you change the diagnostic.showUnused or diagnostic.level setting in “coc-settings.json”, it will not be displayed.

{
  // ...snip
  "diagnostic.showUnused": false,
  // ...snip
}

or

{
  // ...snip
  // Set level to information or higher
  "diagnostic.level": "information",
  // ...snip
}
2reactions
fannheywardcommented, Jan 21, 2021

Maybe we should not remove Unnecessary support directly. Currently, there are two ways to disable the Unecessary diagnostics:

  1. remove the Unnecessary tag support from coc-pyright
  2. use diagnostic.showUnused

I’ll look into this whether these two ways conflict.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 1803 - Disable Diagnostics Level Notification
It says that the diagnostic level has been disabled by the administrator (if you turn off said function via GPO). Does anyone know...
Read more >
Android Basics: 10 settings to instantly disable on your phone
Video — 10 settings to immediately disable on your Android phone · Limit background processes · Wi-Fi + Bluetooth scanning · Google Location ......
Read more >
How to Enable or Disable Diagnostic Policy Service in ...
5. When a new wizard appears, go to its Startup type area and select either Automatic or Manual using the drop-down menu. 6....
Read more >
Warning Options (Using the GNU Compiler Collection (GCC))
3.8 Options to Request or Suppress Warnings. Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are risky ......
Read more >
Share usage & diagnostics information with Google
To help us improve Android, you can let your device send us information ... Important: If you turn off usage and diagnostics, your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found