Comments (2)
The default settings come from three places:
- Defaults of the language server
- Overrides set by
workspace_configuration
injupyter_server_config.py
or similar (see here for an example) - Overrides set via
overrides.json
Additionally all of these settings can be set using dotted or nested conventions.
The error dialog that you see is saying that after combining the language server defaults and the two overrides there is both a dotted and nested convention. I will try to reproduce the issue to assess what place this is coming from; does changing the overrides.json5
to use the nested convention (like below) help?
{
"@jupyter-lsp/jupyterlab-lsp:plugin": {
language_servers: {
pyright: {
priority: 200,
serverSettings: {
"python.analysis.extraPaths": ["/prod/tools/base/lib/python"],
python: {
analysis: {
diagnosticSeverityOverrides: {
reportMissingImports: "none"
},
},
},
},
},
},
},
}
from jupyterlab-lsp.
That doesn't help either, this was resovled to -
Settings
"pyright": { "priority": 200, "serverSettings": { "python.analysis.autoImportCompletions": true, "python.analysis.autoSearchPaths": true, "python.analysis.extraPaths": [ "/prod/tools/base/lib/python" ], "python.analysis.stubPath": "typings", "python.analysis.diagnosticMode": "openFilesOnly", "python.analysis.diagnosticSeverityOverrides": { "reportGeneralTypeIssues": "error", "reportPropertyTypeMismatch": "none", "reportFunctionMemberAccess": "none", "reportMissingImports": "error", "reportMissingModuleSource": "warning", "reportMissingTypeStubs": "none", "reportImportCycles": "none", "reportUnusedImport": "none", "reportUnusedClass": "none", "reportUnusedFunction": "none", "reportUnusedVariable": "none", "reportDuplicateImport": "none", "reportWildcardImportFromLibrary": "warning", "reportOptionalSubscript": "error", "reportOptionalMemberAccess": "error", "reportOptionalCall": "error", "reportOptionalIterable": "error", "reportOptionalContextManager": "error", "reportOptionalOperand": "error", "reportTypedDictNotRequiredAccess": "error", "reportUntypedFunctionDecorator": "none", "reportUntypedClassDecorator": "none", "reportUntypedBaseClass": "none", "reportUntypedNamedTuple": "none", "reportPrivateUsage": "none", "reportTypeCommentUsage": "none", "reportPrivateImportUsage": "error", "reportConstantRedefinition": "none", "reportDeprecated": "none", "reportIncompatibleMethodOverride": "none", "reportIncompatibleVariableOverride": "none", "reportInconsistentConstructor": "none", "reportOverlappingOverload": "none", "reportMissingSuperCall": "none", "reportUninitializedInstanceVariable": "none", "reportInvalidStringEscapeSequence": "warning", "reportUnknownParameterType": "none", "reportUnknownArgumentType": "none", "reportUnknownLambdaType": "none", "reportUnknownVariableType": "none", "reportUnknownMemberType": "none", "reportMissingParameterType": "none", "reportMissingTypeArgument": "none", "reportInvalidTypeVarUse": "warning", "reportCallInDefaultInitializer": "none", "reportUnnecessaryIsInstance": "none", "reportUnnecessaryCast": "none", "reportUnnecessaryComparison": "none", "reportUnnecessaryContains": "none", "reportAssertAlwaysTrue": "warning", "reportSelfClsParameterName": "warning", "reportImplicitStringConcatenation": "none", "reportInvalidStubStatement": "none", "reportIncompleteStub": "none", "reportUndefinedVariable": "error", "reportUnboundVariable": "error", "reportUnsupportedDunderAll": "warning", "reportUnusedCallResult": "none", "reportUnusedCoroutine": "error", "reportUnusedExpression": "warning", "reportUnnecessaryTypeIgnoreComment": "none", "reportMatchNotExhaustive": "none", "reportShadowedImports": "none", "reportImplicitOverride": "none" }, "python.analysis.logLevel": "Information", "python.analysis.typeCheckingMode": "basic", "python.analysis.typeshedPaths": [], "python.analysis.useLibraryCodeForTypes": true, "pyright.disableLanguageServices": false, "pyright.disableOrganizeImports": false, "python.pythonPath": "python", "python.venvPath": "" }, "configuration": { "python.analysis.autoImportCompletions": true, "python.analysis.autoSearchPaths": true, "python.analysis.extraPaths": [ "/prod/tools/base/lib/python" ], "python.analysis.stubPath": "typings", "python.analysis.diagnosticMode": "openFilesOnly", "python.analysis.logLevel": "Information", "python.analysis.typeCheckingMode": "basic", "python.analysis.typeshedPaths": [], "python.analysis.useLibraryCodeForTypes": true, "pyright.disableLanguageServices": false, "pyright.disableOrganizeImports": false, "python.pythonPath": "python", "python.venvPath": "" }, "rank": 200 },
from jupyterlab-lsp.
Related Issues (20)
- Several inconsistencies found, trying to configure pylsp HOT 16
- Follow the XDG base directory specification for the .virtual_documents folder
- Only one "Code Completion" settings seen when enabling "Continuous hinting" HOT 2
- pycodestyle false positive HOT 2
- Is @krassowski/jupyterlab-lsp still need to be installed? HOT 1
- Acceptance tests are failing on Windows with Python 3.8 (but pass with Python 3.11) HOT 2
- Need to update mitigation of file editors `extensionFactory` issue before release
- IHaskell + HLS support HOT 2
- Consider using the `bin` field from `package.json` for specs derived from `NodeModuleSpec`
- Jupyterlab-lsp Error: Uncaught Exception GET /lsp/ws/pyls (::1) HOT 5
- jupyter_lsp - different location of jupyter-lsp-notebook.json between 2.2.2 and 2.2.3 HOT 3
- Markdown cells generate a lot of errors in browser logs and seem to block other extensions, like jupyterlab-spellchecker HOT 2
- GitHub release artifacts are not separate for jupyter-lsp and jupyterlab-lsp HOT 1
- Code Jump only in the same notebook HOT 4
- Plugin has no transformers yet. HOT 2
- JSON completion introduces unexpected character HOT 1
- Environment variables set for lsp servers leak into the server/kernel
- Define custom code extractors in settings HOT 4
- getting this error about `jupyter_lsp` HOT 2
- Auto completion do not need to click `Tab` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab-lsp.