lsp-pyright
lsp-pyright copied to clipboard
Local modules are not resolved on OS X.
Emacs lsp-pyright is not able to resolve my project's modules. The issue is not present when I'm running it manually from the shell.
This is my project's structure
.
├── ep
│ ├── api
│ ├── metrics
├── ...
├── pyrightconfig.json
├── ...
This is my pyrightconfig.json
{
"include":["ep"],
"pythonPlatform": "Darwin",
}
On every module starting with path ep.xxx I get: Import "ep.xxx" could not be resolved.
You may need to set ["ep", "ep/api", "ep/metrics"]? Also try lsp-pyright-extra-paths?
I've tried those. I think we should focus that given the same config, calling pyright from shell works. But emacs package is doing something else apparently.
What are the versions of the pyright used by emacs and shell?
Also could you share the lsp-log?
I am having the same problem. For some reason it will recognize the relative import though.