Closed anna-sunberg closed 4 years ago
How did you install it?
Manually by running ./install.sh $ZSH_CUSTOM/plugins
. It's in the correct folder. I think I'd get an error when opening the shell if a plugin is not found.
You're using oh-my-zsh, right?
Yes
Can you show me the output of command ls $ZSH_CUSTOM/yarn-autocompletions
?
It's not in $ZSH_CUSTOM
, but in $ZSH_CUSTOM/plugins
ls $ZSH_CUSTOM/plugins/yarn-autocompletions
yarn-autocompletions yarn-autocompletions.plugin.zsh
It's not in
$ZSH_CUSTOM
, but in$ZSH_CUSTOM/plugins
ls $ZSH_CUSTOM/plugins/yarn-autocompletions yarn-autocompletions yarn-autocompletions.plugin.zsh
Oh, that's right. There's a typo in my last comment.
I'm having the exact same issue after running the install command as listed on the README.md
Plugin Release:
2.0.0 for macOS (I'm using oh-my-zsh)
$ ./install.sh $ZSH_CUSTOM/plugins
And after adding it to :
plugins=(
# ... your other plugins
+ yarn-autocompletions
)
I wonder if there's another plugin causing conflicts:
plugins=(
git
nvm
npm
vscode
osx
command-not-found
docker
bgnotify
yarn-autocompletions
)
I tried disabling all other plugins except for yarn-autocompletions and it didn't make a difference
There shouldn't be conflicts with other plugins.
Do you have any ideas what could be wrong? Any ways to debug the plugin?
Do you have any ideas what could be wrong? Any ways to debug the plugin?
Try running this: $ZSH_CUSTOM/plugins/yarn-autocompletions/yarn-autocompletions add
then show me the output.
First time I tried that it gave me the MacOS "cannot be open" dialog.
I gave it access in System Preferences and thought that would fix it, but it still doesn't work! It works when I run it (although not with run
command), but not when I type and press tab.
That's weird. However, I'm not able to make it verified, and I'm not a macOS user so I'm not familiar with that. Sorry.
As I said, I fixed the security warning, so that's not an issue anymore. See the second screenshot for output from running $ZSH_CUSTOM/plugins/yarn-autocompletions/yarn-autocompletions add
How about using a zsh plugin manager like zinit or zplug?
Tried zplug, no luck
I created a PR to fix this issue. I encountered it when setting up new release Ubuntu 20.04. Please look at the PR for explanation.
To check if the completion works then you can press Ctrl+x h
. Currently it shows
that's why it will display files and folders in the current directory.
If the completion is loaded correctly then actually it should show nothing.
No solution? it still doesn't work (mac).
I can confirm I have this exact same issue too using the latest release. I get the same output as listed above when I run the commands and same output from the debugging steps.
@GodOfGrandeur Author doesn't use a Mac so it was never tested on it to work. In another issue, someone posted a plugin that does work, see: https://github.com/chrisands/zsh-yarn-completions.
Hi @adi518
I might try spend some time and see if I can get this working on a mac. I really wanted this for the completion on the yarn run command which the library you linked doesn't seem support so looks like a dead end to me.
I'm on Catalina and it works just fine. I tried everything with this plugin and reached a dead end.
installing ohmyzsh fixed the issue for me.
maybe it is essential for experienced users of zsh
but this dependency is not obvious for newbies
I have the same issue on MacOs Catalina (10.15.7) with a freshly installed system:
➜ $ yarn add
tags in context :completion::complete:yarn::
globbed-files (_files _default)
FYI, you can manually allow this. Once you see the message appear(you have to have the message appear first), go to the Security and Privacy settings -> General -> and under Allow apps dowloaded from
there are two toggles, and under it apps that the firewall blocked. You can allow yarn-autocompletions from there.
Is there any way to debug the plugin? If I type
yarn run
and press tab, I get a list of files in the directory.I've installed the latest version, my
.zshrc
containsplugins=(git yarn-autocompletions)
and there's no error when I start the shell.