Comments (12)
@systemallica
Thank you for creating this issue.
I think it's a great idea.
I will try it.
from poetry-pycharm-plugin.
@koxudaxi I think it's a feature of this plugin: https://plugins.jetbrains.com/plugin/10837-requirements
Sorry I forgot go mention it.
from poetry-pycharm-plugin.
@systemallica
OK, I will check it.
from poetry-pycharm-plugin.
I have understood how do I implement it.
I will try it π
from poetry-pycharm-plugin.
Glad to hear that! Keep up the good work π
from poetry-pycharm-plugin.
@systemallica
I have implemented the feature.
This plugin run poetry show --outdated
to get outdated version.
The feature only shows a warning when there is the latest version.
It doesn't provide QuickFix that is an action to resolve the warning (exp install a new version)
because I don't know what does the plugin should do it.
How did you think about it?
from poetry-pycharm-plugin.
OK, I have pushed the latest version to the JetBrains server via GitHub Action.
It will be approved within two business days.
After, we can download it.
from poetry-pycharm-plugin.
However I noticed that the plugin does not look for new versions until I modify the pyproject.toml file.
I may have to change the way to inspect pyproject.toml
π€
Imo, it should stop being highlighted after step 1. What do you think?
Now, The plugin calls poetry show --outdated
when pycharm detect package updated.
And, outdated versions will be highlighted.
It means the plugin doesn't parse pyproject.toml
.
Change the version
If we want to detect the version in the plugin then I have to implement a version parser.
I need the time to do it.
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.
from poetry-pycharm-plugin.
@systemallica
I can't see the popup in my environment π€
How do I reproduce showing the popup?
from poetry-pycharm-plugin.
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'
from poetry-pycharm-plugin.
@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 pyproject.toml
file. If I'm not mistaken, with a requirements.txt
file, the inspection happens automatically without the need of modifying the file. Is this something that could be done withe your plugin?
Another thing I noticed is that, once a package is highlighted, it will remain highlighted until you:
- Change the version
- Run
poetry update
- Change something in the file so that the inspection runs again
Imo, it should stop being highlighted after step 1. What do you think?
Anyway thank you for your work :D
from poetry-pycharm-plugin.
I just wanted to add an edge case here to be aware of. poetry show --outdated
compares against the installed lock version and whats available. Starting to use the plugin it was highlighting some of my dependencies with versions like ^8.0.0.
saying the version is outdated and a newer one is available like 8.1.0
.
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.
from poetry-pycharm-plugin.
Related Issues (20)
- Make it work with PyCharm 212.* HOT 4
- Extra dependencies set installation fails when done from the plugin HOT 2
- Creating poetry environment does not use specified version of Python HOT 3
- NoSuchMethodError: PySdkExtKt.getAssociatedModule(Module) in PyCharm 2021.2, update to new API HOT 2
- Explain how to attach the source code during development HOT 2
- Unsupported TomlTableHeader type HOT 1
- Add Run Configuration HOT 1
- Support PyCharm 2021.3 EAP HOT 4
- Add Python Interpreter Failed, missing module. HOT 3
- Update for DataSpell EAP 213 HOT 2
- Plugin error: Plugin 'Poetry' (version '1.1.5-212') is not compatible with the current version of the IDE, because it requires build 212.* or older but the current build is PC-213.4631.9
- 8:39 AM Plugin error: Plugin 'Poetry' (version '1.1.5-212') is not compatible with the current version of the IDE, because it requires build 212.* or older but the current build is PC-213.4631.9 HOT 7
- Invalid virtual environment detected because of escape sequences and colors (ANSICON env variable defined) HOT 2
- Plugin creates separate Poetry environment, although one already exists HOT 2
- Toml-plugin-dependent features not working HOT 1
- IDE Fatal Error after git pull. HOT 1
- Support for latest PyCharm release (build 213.5744.248) HOT 3
- Plugin 'Poetry' (version '1.1.5-212') is not compatible with the current version of the IDE, because it requires build 212.* or older but the current build is IU-213.5744.223 HOT 3
- Plugin Incompatible requires IDE build 212.* or later HOT 3
- Maybe this project should be archived? And pin an issue stating what has happened HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry-pycharm-plugin.