-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Python repl should support tab complete #20389
Comments
Supporting this is a good idea. Would be great if you could do some further debugging here to see in what way the Pants repl is different from a standalone one, and why this might cause tab completion to be disabled. |
The underlying problem is in Pex and is being addressed here: pex-tool/pex#2321 Once Pex 2.1.158 is released with the fix, a Pants maintainer will need to upgrade the Pex version Pants uses / provide you with instructions on how to self-upgrade your existing Pants install using |
Ok, Pex 2.1.158 is released: https://github.com/pantsbuild/pex/releases/tag/v2.1.158 |
Thanks @jsirois ! @JettJones You can upgrade in your own repo by setting If that works, we'd appreciate a PR that changes the default version of Pex that Pants uses, which is set here. |
Changelogs: * https://github.com/pantsbuild/pex/releases/tag/v2.1.157 * https://github.com/pantsbuild/pex/releases/tag/v2.1.158 * https://github.com/pantsbuild/pex/releases/tag/v2.1.159 ``` Lockfile diff: 3rdparty/python/user_reqs.lock [python-default] == Upgraded dependencies == attrs 23.1.0 --> 23.2.0 pex 2.1.156 --> 2.1.159 ``` Enables repl tab completion for pantsbuild#20389 Fixes a bug with `pex3 lock update` of relevance for pantsbuild#15704
|
Changelogs: * https://github.com/pantsbuild/pex/releases/tag/v2.1.157 * https://github.com/pantsbuild/pex/releases/tag/v2.1.158 * https://github.com/pantsbuild/pex/releases/tag/v2.1.159 ``` Lockfile diff: 3rdparty/python/user_reqs.lock [python-default] == Upgraded dependencies == attrs 23.1.0 --> 23.2.0 pex 2.1.156 --> 2.1.159 ``` Enables repl tab completion for #20389 Fixes a bug with `pex3 lock update` of relevance for #15704
Is your feature request related to a problem? Please describe.
Current versions of python 3.x support tab complete when run directly (https://docs.python.org/3/tutorial/interactive.html), it would be nice if this was also available in
pants repl ...
.Describe the solution you'd like
Matching behavior of python started directly / in interactive
-i
mode.Describe alternatives you've considered
Running with --shell=ipython activates the autocomplete in ipython, but it's a slightly different interface, so one more thing to learn.
Additional context
The text was updated successfully, but these errors were encountered: