Closed tahseenjamal closed 2 months ago
I managed to configure in pyproject.toml
[tool.basedpyright]
reportMissingTypeStubs = false
reportUnknownMemberType = false
to resolve the stub file not found error
But how to resolve the coc.nvim error for workspace/configuration failed error ?
Fixed in v1.17.0, now you can disable in coc-settings.json
"basedpyright.analysis.diagnosticSeverityOverrides": {
"reportMissingTypeStubs": false
},
Link to my .vimrc configuration
Steps to repeat
:PluginInstall
inside vim and then exitnpm install
inside~/.vim/bundle/coc.nvim
folderhttps://docs.anaconda.com/miniconda/
python 3.11
and masonite 4 framework (pip install masonite==4.20.0
)project start blog
:CocInstall coc-basedpyright
blog/app/controllers/WelcomeController.py
and you would seeYou would see stub error on all masonite imports, below as one e.g.
Stub file not found for "masonite.request" (basedpyright from reportMissingTypeStubs)
And also coc error in the status line of vim like below
[coc.nvim] Request workspace/configuration failed with message: Cannot read properties of undefined (reading 'stubPath')