Closed simonsjw closed 1 year ago
The pyright language server runs fine with other clients, so it's most likely a problem with your client or the LSP support extensions for your client. You'll need to work with the maintainers of your client to diagnose the problem.
I am trying to use pyright with eglot and emacs. I have emacs 29.1 and have pyright installed via pip in an anaconda environment called pythonProject.
I initially didn't have a pyrightconfig.json file but added one in an attempt to clarify the issue. It made no difference to the error. I also get the same error regardless of Python file opened. I normally use a softlink to put a directory from another location directly under my profile. If I open the source directory following the full map rather than the shortcut, I get the same error.
This is the error I get:
Below is the content of the pyrightconfig.json file I used. I had previously been using Pyright without a config file with no issues.
The error occurs whether I use this file or not. I am happy to provide any further information or carry out any tests that might be useful.
Thanks and regards,
Simon