-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Completions are broken since 1.18 in zsh #13593
Comments
Probably related to updating to clap v3 |
I found the problem. Updating |
The issue still persist in Deno v1.19.0 😞 |
@sant123 It works fine for me |
@crowlKats I just tested in Mac OS Monterey and Fedora 34 machine and still get the same :/ v1.17.3 works fine, also reinstalled |
Same here, v1.17.3 worked, but completions in 1.18 and 1.19 do not work with zsh and macOS Monterey. |
try to do a |
I did the steps above but did not work either :/ I have deno installed by the native installer. |
Thank you @carlosala! |
Don't know what I'm doing wrong 🤔 I repeated the same steps in both computers without success |
Are you using OMZ? If so, please continue the discussion in the issue about this in OMZ repo (it's linked above). Looks it's not a Deno issue, let's keep this issue clean. |
For me it's also not working. I think that something changed and continues to not work. |
@carlosala I'd rather avoid reverting clap to v2 |
I made a diff between Deno v1.17.3 and Deno v1.19.0 for the completion system and I noticed that the Adding them manually fixes the issue 🤔 |
Please take a look at https://www.diffchecker.com/YYQhDZXL Edit: |
Hi @crowlKats! Could you check the message above? Maybe there are some clap configurations that we can add to solve the issue |
See #10166 (comment) |
Hey @carlosala & @mcornella, sorry for not having looked into this yet. i will look at it later today |
Apologies for another delay, looking into this now |
@mcornella not too familiar with completions, but from my understanding, zsh and friends allow for something to be defined to have multiple "hints" for the same thing? Or rather, should clap allow setting multiple |
In Zsh you can use _alternative 'files: :_files' 'urls: :_urls' I think clap can implement that for Zsh but I don't know if fish supports that ( In any case, file-only suggestions seems like a satisfactory solution, it's very rarely that you type a URL, so if you want to go with #10166 (comment) that works. |
@crowlKats could you reopen this issue please? |
Tested on Fedora 36 and is working as expected. Somebody else is having issues in Linux? |
Nope, it's fixed since 1.21 I think 👌🏻 |
@carlosala when you input some flags in the subcomand does still work the autocomplete?
For me it doesn't 😕 |
It's only working if I add something after |
Just tested with env, net and run and don't work 😕 |
for me this works as expected |
@crowlKats please type:
And hit tab. Does it autocomplete the files in the current working directory? |
no, youa re right, it does not; I was pressing space after allow-net which would work |
@marvinhagemeister is unable to reproduce this in the latest releases. I am going to close this issue. If you still run into this (or other completion related issues), please open a new issue! |
Hi!
Completions in zsh doesn't work in the following way since 1.18.0 (1.17.3 works):
run
,build
, etc)deno run
and it doesn't show the folders and files.The text was updated successfully, but these errors were encountered: