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

Packages with environment markers are not parsed correctly

caniko opened this issue · comments

Describe the bug
The bpy package is configured with different versions depending on the current OS:

bpy = [
    {"version" = "^2.91a0", markers="sys_platform!='win32'"},
    {"version" = "^2.82.1", markers="sys_platform=='win32'"}
]

The plugin doesn't recognize the markers, and PyCharm, thereby, believes that I have the wrong version installed:
image

To Reproduce
Add a package to pyproject.toml with the same method as mentioned above PyCharm should react if your current version isn't the 1st one on the list.

Expected behavior
The plugin should iterate through the markers (there can be multiple per entry), and figure out the correct version before alarming the user of the improper version being installed.

Environments (please complete the following information):

  • IDE: PyCharm Community 2021.1
  • OS: Windows 10
  • Poetry Version 1.1.7
  • Plugin version 1.1.4

@caniko
Thank you for creating this issue.
I guess the plugin could not parse a in "^2.91a0"
I will fix it.