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

Windows: tab-completion works unreliable #5283

Open
Harding-Stardust opened this issue Feb 21, 2024 · 0 comments
Open

Windows: tab-completion works unreliable #5283

Harding-Stardust opened this issue Feb 21, 2024 · 0 comments

Comments

@Harding-Stardust
Copy link

Harding-Stardust commented Feb 21, 2024

Steps to Reproduce

  1. Create a directory
  2. in that directory create a file named "lest.txt"
  3. make that directory the current working dir in xonsh
  4. type "copy le" and press tab.

Expected: The command line should read "copy lest.txt"
What happens: The command line reads "copy len"

Copy is in the aliases dict and there is no python object named copy:

"copy" in aliases
True
@(copy)
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
NameError: name 'copy' is not defined. Did you forget to import 'copy'

Note: If you type "copy les" and press tab, then the autocomplete gets the correct file. "copy lest.txt"
Note2: if you type "cp le" and press tab, then the autocomplete gets the correct file. "copy lest.txt"


+------------------+---------------------------+
| xonsh            | 0.14.4                    |
| Python           | 3.12.1                    |
| PLY              | 3.11                      |
| have readline    | False                     |
| prompt toolkit   | 3.0.43                    |
| shell type       | prompt_toolkit            |
| history backend  | json                      |
| pygments         | 2.17.2                    |
| on posix         | False                     |
| on linux         | False                     |
| on darwin        | False                     |
| on windows       | True                      |
| on cygwin        | False                     |
| on msys2         | False                     |
| is superuser     | False                     |
| default encoding | utf-8                     |
| xonsh encoding   | utf-8                     |
| encoding errors  | surrogateescape           |
| xontrib 1        | coreutils                 |
| RC file 1        | C:\Users\<redacted>/.xonshrc |
+------------------+---------------------------+

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code changed the title On windows, tab-completion works unreliable Windows: tab-completion works unreliable May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants