WSL2 remote_source files not updated on poetry add

I am working on an application on Ubuntu 20.04 distribution in WSL2. I am also using poetry to manage my virtual environment and dependencies. The only way to get the correct interpreter is to use the WSL interpreter as using Poetry requires a .exe. So I used a WSL interpreter, selected the Python interpreter inside my poetry virtual environment.

The problem is that my virtual environment exists in...

/home/<user name>/.cache/pypoetry/virtualenvs/<env name>/lib/python3.10/site-packages

However, the directory indexed is something like this...

C:\Users\<user name>\AppData\Local\JetBrains\PyCharm2022.1\remote_sources\0123456789\-012346789

When I run any package management commands in my terminal they run as expected. For example,

poetry add Django

Will both add `Django` to my virtual environment and the [tool.poetry.dependencies] section of the project's pyproject.toml file.

However, that does not update the remote_source directory.

1

Hello, 

 

unfortunately, there is no native support for poetry in WSL, please vote for https://youtrack.jetbrains.com/issue/PY-52398/Support-poetry-thats-installed-in-wsl in order to increase its priority. 

0

Thanks Antonina, I have upvoted it.

0

请先登录再写评论。