Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Plugin creates separate Poetry environment, although one already exists #289

Open
eblis opened this issue Oct 19, 2021 · 2 comments
Open

Comments

@eblis
Copy link

eblis commented Oct 19, 2021

Describe the bug
The plugin seems to be creating a separate environment, even though a Poetry environment already exists.
This is probably related to bug #287 and to python-poetry/poetry#2419 where it may be using a different case or different path

To Reproduce
Have a terminal with color codes, either ConEmu, Windows Terminal and enable clink and Powerline stuff for Windows

Expected behavior
The existing environment should be used, another one should not be created.

Screenshots
image
The dtt-swC1WwXO-py3.9 is created by Poetry PyCharm plugin, dtt-xc0anUwY-py3.9 is created and used by Poetry itself.

Environments (please complete the following information):

  • IDE: PyCharm Professional 2021.2.2
  • OS: Windows 10 x64
  • Poetry Version 1.1.11
  • Plugin version : latest master

Additional context
I've tried modifying the runPoetry function to add some environment variables to disable colors, but that didn't work for me.
image

When the plugin is running various commands and I click on the image for more details I can see escape sequences at the start of the commands, so I think that the output from Poetry command line has escape sequences and it messes with the plugin.

@koxudaxi
Copy link
Owner

@eblis
Thank you for creating this issue.
I guess it is an edge case 🤔
Unfortunately, The plugin has been merged into the PyCharm mainstream.
https://youtrack.jetbrains.com/issue/PY-30702#focus=Comments-27-5313948.0-0

If the problem is common and we can find the solution then we should create a ticket on youtrack.

@eblis
Copy link
Author

eblis commented Oct 21, 2021

I would say that everybody using escape codes (on Windows) is affected. How can I/we raise an issue there ?

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

No branches or pull requests

2 participants