If "poetry add" fails with an error on a package installation,
then after fixing the error it says "already added".
I need to remember to use "poetry install" then instead.
The same happens if you want to add more than one entry, and the first entry was already installed: it writes that the entry was already added, not doing anything.
And the third issue is that if one issue breaks, "poetry add" doesn't add anything and tries to run an install first!
Fourth, after a "poetry add" fail, I have to add the entry manually and then run "poetry install" which writes that "you probably updated your file, run poetry update for that".
That means that while "poetry add" can check for the project file updates, "poetry install" can't. That behavior feels wrong.
Suggestions:
- remove error "Package A is already present", and when trying to add an existing package, instead, show what is the current version of that package in the project file, like "Package A of version 2.3.1 is selected". Or, maybe, even better it is to replace the already added version instead of displaying current version.
- on "poetry add", first add everything to the project file, only then run install
- probably, poetry install should be consistent with poetry add, or maybe "poetry add" without arguments should work like "poetry update".