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

autoimport suggests ".direnv.python-3.11.3.lib.python3.11.site-packages..." #391

Open
voidus opened this issue Jun 10, 2023 · 1 comment

Comments

@voidus
Copy link

voidus commented Jun 10, 2023

As it says in the title.

I'm using direnv with it's layout python to create a python virtual environment at .direnv/python-<version>.
After that, I'm using poetry to install my dependencies and my package into the virtual environment.

I am pretty sure that the inclusion of "" in sys.path triggers this behaviour. I am also provided the same suggestions under module.thing and src.module.thing.

I understand that having the current directory on the include path is expected, but this is very annoying, and a lot of libraries use a src layout and should thus suffer from this, right?
Or do I have something misconfigured?

For context:

  • I have python installed through a nix devshell
  • "Propert" poetry project with `packages = [ { include = "pkg", from = "src" }]
  • python-lsp-server and plugins installed via [tool.poetry.group.dev.dependencies]
@bagel897
Copy link
Contributor

bagel897 commented Jan 9, 2024

Fixed in python-rope/rope#516

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

2 participants