-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
BUG: When poetry add failed, package is listed as added but is not installed. Also add proper handling for multiple packages install in "poetry add": when one package is already added, others are not getting added. #98
Comments
@buriy Can you provide an example so that I can reproduce these issues on my machine? |
@stephsamson
->
then
I don't have a right example of a broken package for "poetry add" -- but once it happens it looks similar to the ValueError above. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Here is the recent activity |
I have to investigate it a little bit more. But I guess this it what happens: When you add a package and something went wrong during installation and the exception isn't catched properly you and up having the package listed as an dependency in the The simple workaround in this case is to remove the entry from |
@finswimmer |
Same here. Visual Studio Code keeps asking me to install Pylama even if it's already added by Poetry. |
It's my understanding that the Unless someone can share a way to reproduce |
@jacebrowning problem is not that Problem is that attempt to add multiple packages: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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:
The text was updated successfully, but these errors were encountered: