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

autocomplete can sometimes get stuck (dependency caused) #219

Closed
ssbarnea opened this issue Jun 17, 2024 · 0 comments · Fixed by #217
Closed

autocomplete can sometimes get stuck (dependency caused) #219

ssbarnea opened this issue Jun 17, 2024 · 0 comments · Fixed by #217

Comments

@ssbarnea
Copy link
Member

ssbarnea commented Jun 17, 2024

$ mk --show-completion zsh
WARNING  Repo is dirty on chore/gha                                                                                                        
^CTraceback (most recent call last):
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/c/os/mk/.tox/lower/lib/python3.12/site-packages/subprocess_tee/__init__.py", line 102, in _stream_subprocess
    await asyncio.wait(set(tasks))
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/asyncio/tasks.py", line 464, in wait
    return await _wait(fs, timeout, return_when, loop)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/asyncio/tasks.py", line 550, in _wait
    await waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ssbarnea/c/os/mk/.tox/lower/bin/mk", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/ssbarnea/c/os/mk/src/mk/__main__.py", line 122, in cli
    for action in ctx.runner.actions:
                  ^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/functools.py", line 995, in __get__
    val = self.func(instance)
          ^^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/c/os/mk/src/mk/runner.py", line 67, in actions
    _actions.extend(c.actions())
                    ^^^^^^^^^^^
  File "/Users/ssbarnea/c/os/mk/src/mk/tools/tox.py", line 31, in actions
    result = run_or_fail(
             ^^^^^^^^^^^^
  File "/Users/ssbarnea/c/os/mk/src/mk/exec.py", line 59, in run_or_fail
    return run(*args, check=True, cwd=cwd, tee=tee, env_overrides=env_overrides)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/c/os/mk/src/mk/exec.py", line 36, in run
    result = subprocess_tee.run(
             ^^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/c/os/mk/.tox/lower/lib/python3.12/site-packages/subprocess_tee/__init__.py", line 142, in run
    result = asyncio.run(_stream_subprocess(cmd, **kwargs))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/asyncio/runners.py", line 123, in run
    raise KeyboardInterrupt()
KeyboardInterrupt

It does not reproduce with on all platforms/dependencies combinations so far..

Apparently is caused by tox command:"tox", "-qq", "--colored", "no", "--hashseed", "1", "--showconfig" which seems to do paging when is not expected to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant