question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selecting packages interactively is no fun at all

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

While executing poetry init i get asked to interactively define my dependencies. This feature is very welcome at this point, BUT the way it works is a little suboptimal. While poetry add never made the wrong decision for me so far, in this interactive mode after wanting to install Django i get a list of 100 search results not even containing the actual Django package. Poetry never tries to just guess and install the right packages like it does on poetry add.

Why? Adding Django (and any other package) just works, but interactively selecting is no fun!

Please make it fun again and just install the best guess! Or to be more save at least display the best guess (as it would be resolved on add) and just let the user confirm and maybe select an alternative.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
harrybiddlecommented, May 31, 2019

+1. I used this for the first time and found it to be a pretty poor experience. I’m in favour of removing it, or least making it not default (#179).

When I typed psycopg2, instead of installing it it gives me a massive list of that library and similarly named ones. So long, that the option I actually want requires me to scroll up:

grafik

Also, if I slightly mistype the library I get a completely different one:

Search for a package: pyscopg2
Found 1 packages matching pyscopg2

Enter package # to add, or the complete package name if it is not listed:
 [0] sanepg
 >

Even if poetry init -n is a workaround, a bad experience shouldn’t be the default for newcomers to Poetry.

3reactions
kakulukiacommented, Oct 19, 2018

I also wouldnt mind if that was removed from the init process. Good idea!

Read more comments on GitHub >

github_iconTop Results From Across the Web

interactive: Is R Running Interactively? - Rdrr.io
When R is run in a terminal (via Rterm.exe on Windows), it assumes that it is interactive if 'stdin' is connected to a...
Read more >
How to interactively examine any R code – 4 ways to not just ...
In this post, we provide tips on how to interactively debug R code step-by-step and investigate the values of objects in the middle...
Read more >
Ten simple rules for finding and selecting R packages - PMC
If the scope of your task is simple or reasonable, given your knowledge and skills, using an R package may not be appropriate....
Read more >
Declarative Package Configuration In 5 Lines of Emacs Lisp
There is a way to install all packages for which a use-package form has been evaluated, but it does not ask interactively for...
Read more >
Tips and Tricks for NPM Package Management - Stout Systems
You can arrow down through the list and press space to select/deselect packages. Press the Enter key to confirm your selections and begin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found