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

man: OrderedDict mutated in Xonsh #2074

Open
2 of 11 tasks
rsteube opened this issue Dec 16, 2023 · 0 comments
Open
2 of 11 tasks

man: OrderedDict mutated in Xonsh #2074

rsteube opened this issue Dec 16, 2023 · 0 comments
Labels
bug Something isn't working xonsh

Comments

@rsteube
Copy link
Member

rsteube commented Dec 16, 2023

Current Behavior

Couple of commands seem to interfere with internal completers.

Expected Behavior

Unhandled exception in event loop:
  File "/usr/lib/python3.11/site-packages/prompt_toolkit/buffer.py", line 1920, in new_coroutine
    await coroutine(*a, **kw)
  File "/usr/lib/python3.11/site-packages/prompt_toolkit/buffer.py", line 1744, in async_completer
    async for completion in async_generator:
  File "/usr/lib/python3.11/site-packages/prompt_toolkit/completion/base.py", line 323, in get_completions_async
    async for completion in completer.get_completions_async(
  File "/usr/lib/python3.11/site-packages/prompt_toolkit/completion/base.py", line 199, in get_completions_async
    for item in self.get_completions(document, complete_event):
  File "/usr/lib/python3.11/site-packages/xonsh/ptk_shell/completer.py", line 58, in get_completions
    completions, plen = self.completer.complete(
                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/xonsh/completer.py", line 121, in complete
    return self.complete_from_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/xonsh/completer.py", line 272, in complete_from_context
    for comp in self.generate_completions(
  File "/usr/lib/python3.11/site-packages/xonsh/completer.py", line 177, in generate_completions
    for name, func in XSH.completers.items():

Exception OrderedDict mutated during iteration
Press ENTER to continue...

Steps To Reproduce

  1. start xonsh
  2. man <tab>

Version

0.28.5

OS

  • Linux
  • OSX
  • Windows

Shell

  • Bash
  • Elvish
  • Fish
  • Nushell
  • Oil
  • Powershell
  • Xonsh
  • Zsh

Anything else?

No response

@rsteube rsteube added bug Something isn't working xonsh labels Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working xonsh
Projects
None yet
Development

No branches or pull requests

1 participant