sublimelsp / LSP-pyright

Python support for Sublime's LSP plugin provided through microsoft/pyright.
MIT License
127 stars 13 forks source link

Type errors since recent update #302

Closed thecircleisround closed 7 months ago

thecircleisround commented 7 months ago

I have been getting type errors since the most recent update using the following config:

"python.analysis.diagnosticSeverityOverrides": {
            "reportDuplicateImport": "warning",
            "reportImplicitStringConcatenation": "warning",
            "reportMissingParameterType": "none",
            "reportUnboundVariable": "warning",
            "reportUninitializedInstanceVariable": "none",
            "reportUnusedClass": "information",
            "reportUnusedFunction": "information",
            "reportUnusedImport": "information",
            "reportUnusedVariable": "information",
            "reportGeneralTypeIssues": "none",

        },

I can disable each error individually but previously the reportGeneralTypeIssues option was enough

jfcherng commented 7 months ago

See release note: https://github.com/sublimelsp/LSP-pyright/releases/tag/1.2.71

So I guess they split reportGeneralTypeIssues into those, and they all need to be none in your case.

But interestingly, they didn't remove reportGeneralTypeIssues from its document. 🤔 I thought it still works...

thecircleisround commented 7 months ago

Got it. I noticed that and also thought the reportGeneralTypeIssues would still worked based on the docs.

rchl commented 7 months ago

As far as I understand it still exists and works, only that some of the issues it handled were split into its own settings.