koxudaxi / poetry-pycharm-plugin

A PyCharm plugin for poetry

Home Page:https://koxudaxi.github.io/poetry-pycharm-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin creates separate Poetry environment, although one already exists

eblis opened this issue · comments

commented

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.

@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.

commented

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