-
-
Notifications
You must be signed in to change notification settings - Fork 14
Highlight package when a new version is available #79
Comments
@systemallica |
@systemallica |
@koxudaxi I think it's a feature of this plugin: https://plugins.jetbrains.com/plugin/10837-requirements Sorry I forgot go mention it. |
@systemallica |
I have understood how do I implement it. |
Glad to hear that! Keep up the good work 😁 |
@systemallica The feature only shows a warning when there is the latest version. How did you think about it? |
That looks awesome! Thank you very much. It's ok if it doesn't offer you a quickfix, knowing that there's a new version is the most important part imo. Then the user can change the version manually and run 'poetry update' |
OK, I have pushed the latest version to the JetBrains server via GitHub Action. |
@koxudaxi I just installed 0.1.2 and it works pretty well, thank you! However I noticed that the plugin does not look for new versions until I modify the Another thing I noticed is that, once a package is highlighted, it will remain highlighted until you:
Imo, it should stop being highlighted after step 1. What do you think? Anyway thank you for your work :D |
I may have to change the way to inspect
Now, The plugin calls
If we want to detect the version in the plugin then I have to implement a version parser. Sorry, I am not a PyCharm master. I must learn PyCharm APIs to develop plugins 🤓 I don't close this issue. I will improve the feature when I get the time. |
I just wanted to add an edge case here to be aware of. This technically is correct from the lock standpoint but incorrect from the pyproject.toml standpoint. As you mentioned you do not parse the version in the plugin so this is hard to avoid, but stating that the lock file is out of date or something there might aid in confusion when the version string would catch the latest version. |
Add package highlighting in
pyproject.toml
when a new version is available, in the same way that it's done forrequirements.txt
:The text was updated successfully, but these errors were encountered: