microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.18k stars 6.16k forks source link

stale zsh autocompletion #32386

Open cgtinker opened 1 year ago

cgtinker commented 1 year ago

Describe the bug The zsh autocompletion does not work once activated.

Environment

To Reproduce Steps to reproduce the behavior:

  1. ./bootstrap-vcpkg.sh
  2. ./vcpkg integrate install
  3. ./vcpkg integrate zsh
  4. ./vcpkg [tab]

Expected behavior Autocompletion does not occur.

Additional context There seems to be some issue with piping the stderr to dev/null, removing it in vcpkg_completion.zsh works for me. Edit: Tried to setup with sudo and without, same behaviour.

COMPREPLY=$(${vcpkg_executable} autocomplete "${remaining_command_line}") #-- 2>/dev/null)
Adela0814 commented 1 year ago

I encountered this error while reproducing, did I miss something? image

cgtinker commented 1 year ago

I encountered this error while reproducing, did I miss something? image

I don't think that .vcpkg has to be integrated to reproduce this, I added the step anyways... To me it looks like the zsh shell is not present on the system.

Till Mojave bash has been the default shell on macOS, since then it's zsh. The .xxxrc files are usually in the home directory to configure the shells.

github-actions[bot] commented 11 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

wasphin commented 11 months ago

Can reproduce this under macOS 13.4.1, and comment the -- 2>/dev/null do help me.

github-actions[bot] commented 10 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] commented 9 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] commented 8 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

elegracer commented 3 months ago

Can reproduce this under macOS 13.4.1, and comment the -- 2>/dev/null do help me.

I'm using wsl2 ubuntu 20.04 with zsh. Pressing tab shows no completion. Removing '--' makes completion work.