Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry init finds 20 packages but only shows 10 #5033

Closed
3 tasks done
cu opened this issue Jan 13, 2022 · 3 comments · Fixed by #5076
Closed
3 tasks done

poetry init finds 20 packages but only shows 10 #5033

cu opened this issue Jan 13, 2022 · 3 comments · Fixed by #5076
Labels
area/cli Related to the command line area/ux Features and improvements related to the user experience

Comments

@cu
Copy link

cu commented Jan 13, 2022

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Pop OS 21.04
  • Poetry version: 1.1.12
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

When running the poetry init wizard to initialize a new project, the section to define dependencies will find up to 20 matches but only display 10, with no (obvious) way to see the others

$ poetry init -vvv

This command will guide you through creating your pyproject.toml config.

Package name [foo]:  
Version [0.1.0]:  
Description []:  
Author [<censored>, n to skip]:  
License []:  
Compatible Python versions [^3.9]:  

Would you like to define your main dependencies interactively? (yes/no) [yes] 
You can specify a package in the following forms:
  - A single name (requests)
  - A name and a constraint (requests@^2.23.0)
  - A git url (git+https://github.com/python-poetry/poetry.git)
  - A git url with a revision (git+https://github.com/python-poetry/poetry.git#develop)
  - A file path (../my-package/my-package.whl)
  - A directory (../my-package/)
  - A url (https://example.com/packages/my-package-0.1.0.tar.gz)

Search for package to add (or leave blank to continue): python
Found 20 packages matching python

Enter package # to add, or the complete package name if it is not listed: 
 [0] python101
 [1] Python123
 [2] python4
 [3] python2
 [4] python7
 [5] python9909
 [6] python-42
 [7] python42
 [8] python-geoip-python3
 [9] python-dubbo-support-python3
 > 
@cu cu added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 13, 2022
@finswimmer
Copy link
Member

Hello @cu,

that's intended. It doesn't make sense to show all results and the user has to scroll to in endless list. Of course we could improve the message to let the user know that Poetry cuts the result.

fin swimmer

@finswimmer finswimmer added area/cli Related to the command line Good First Issue area/ux Features and improvements related to the user experience and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 13, 2022
@albertogomcas
Copy link

Hello @cu,

that's intended. It doesn't make sense to show all results and the user has to scroll to in endless list. Of course we could improve the message to let the user know that Poetry cuts the result.

fin swimmer

It does not really make sense if it refuses to take the name for the package and keeps showing the partial list

Search for package to add (or leave blank to continue): PyQt5
Found 20 packages matching PyQt5

Enter package # to add, or the complete package name if it is not listed:
 [0] PyQt6
 [1] PyQt6-Charts
 [2] PyQt5-stubs
 [3] pyqt4topyqt5
 [4] pyqt2waybinding
 [5] PyQt-builder
 [6] pyqt_client
 [7] vsutillib-pyqt
 [8] PyQt5Designer
 [9] pyqt5ac

 > PyQt5
Value "PyQt5" is invalid

Enter package # to add, or the complete package name if it is not listed:
 [0] PyQt6
 [1] PyQt6-Charts
 [2] PyQt5-stubs
 [3] pyqt4topyqt5
 [4] pyqt2waybinding
 [5] PyQt-builder
 [6] pyqt_client
 [7] vsutillib-pyqt
 [8] PyQt5Designer
 [9] pyqt5ac
 >

poetry add PyQt5 works, BTW.

Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cli Related to the command line area/ux Features and improvements related to the user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants