Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local modules are not resolved on OS X. #22

Open
adamczykm opened this issue Sep 21, 2020 · 4 comments
Open

Local modules are not resolved on OS X. #22

adamczykm opened this issue Sep 21, 2020 · 4 comments

Comments

@adamczykm
Copy link

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.

@seagle0128
Copy link
Collaborator

seagle0128 commented Sep 22, 2020

You may need to set ["ep", "ep/api", "ep/metrics"]? Also try lsp-pyright-extra-paths?

@adamczykm
Copy link
Author

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.

@zeronone
Copy link
Collaborator

What are the versions of the pyright used by emacs and shell?
Also could you share the lsp-log?

@jzw2
Copy link

jzw2 commented May 11, 2021

I am having the same problem. For some reason it will recognize the relative import though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants