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

Invalid virtual environment detected because of escape sequences and colors (ANSICON env variable defined) #287

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

Comments

@eblis
Copy link

eblis commented Oct 13, 2021

Describe the bug
The IDEA plugin doesn't correctly identify the Poetry environment.

I have forced poetry to run in ANSI mode on my Windows 10 machine by creating the ANSICON environment variable, this is probably forcing poetry to report the virtual environment using colors and escape sequences which are not removed by the plugin, resulting in an invalid folder being identified as the poetry environment in use.

Expected behavior
Poetry environment should be successfully identified

Screenshots
The first one is my manual selection, the red one is the one automatically detected
image

@eblis
Copy link
Author

eblis commented Oct 19, 2021

I think you can get rid of this problem if you always call the poetry executable with the --no-ansi argument

@koxudaxi
Copy link
Owner

@eblis
I answered in the issue.
#289 (comment)

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