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

Can't create zsh-autocomplete directory in $XDG_STATE_HOME #231

Closed
1 task done
Pilgrim1379 opened this issue Apr 6, 2023 · 3 comments
Closed
1 task done

Can't create zsh-autocomplete directory in $XDG_STATE_HOME #231

Pilgrim1379 opened this issue Apr 6, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Pilgrim1379
Copy link
Sponsor

  • I have carefully read all of the instructions in this issue template.

I'm sorry in this case I'm not able to follow the template with the zsh-autocomplete plugin enabled. This is because the error message just scrolls up the screen endlessly. It's therefore impossible to type and observe the output of any command.

Description

I after upgrading the plugin to commit, when I start my terminal all I get is the following scrolling up the screen endlessly:

autocomplete/log/2023-04-06.log
~                                                                             11:52:58
❯
.autocomplete.async.complete.fd-widget:3: not a directory: /Users/nqa/.local/state/zsh-autocomplete/log/2023-04-06.log
~                                                                             11:52:58
❯
.autocomplete.async.complete.fd-widget:3: not a directory: /Users/nqa/.local/state/zsh-autocomplete/log/2023-04-06.log
~                                                                             11:52:58
❯
.autocomplete.async.complete.fd-widget:3: not a directory: /Users/nqa/.local/state/zsh-autocomplete/log/2023-04-06.log

So looking in ~/.local/state, I see the following:

~/.local/state                                                                11:36:52
❯ ll
total 0
drwxr-xr-x  3 user staff  96 Mar 10 09:16 gem/
drwx------ 11 user staff 352 Apr  5 08:50 nvim/
drwxr-xr-x  3 user staff  96 Apr  5 07:43 pnpm/
lrwxr-xr-x  1 user staff  52 Aug 18  2022 powerlevel10k -> /Users/user/Git/powerlevel10k/powerlevel10k.zsh-theme
lrwxr-xr-x  1 user staff  59 Apr  6 11:35 zsh-autocomplete -> /Users/user/Git/zsh-autocomplete/zsh-autocomplete.plugin.zsh
lrwxr-xr-x  1 user staff  65 Aug 18  2022 zsh-autosuggestions -> /Users/user/Git/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
lrwxr-xr-x  1 user staff  57 Aug 18  2022 zsh-completions -> /Users/user/Git/zsh-completions/zsh-completions.plugin.zsh
lrwxr-xr-x  1 user staff  73 Aug 18  2022 zsh-syntax-highlighting -> /Users/user/Git/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh

I use your other plugin zsh-snap to manage my zsh plugins and as you can see, it creates symlinks to all the plugins it installs in $XDG_STATE_HOME.

I think what is happening is, because a symlink for zsh-autocomplete has already been created in $XDG_STATE_HOME by zsh-snap, the zsh-autocomplete folder and it's subfolder log can't be created as hence the log files can't be written.

@Pilgrim1379 Pilgrim1379 added the bug Something isn't working label Apr 6, 2023
@bbholty1
Copy link

bbholty1 commented Apr 6, 2023

I'm also running into the same issue and use zsh-snap as well and concur with @ThePreacher that ~/.local/state/zsh-autocomplete is already symlinked to: ~/.zsnap/zsh-autocomplete/zsh-autocomplete.plugin.zsh

@Arrow-x
Copy link

Arrow-x commented Apr 13, 2023

yep deleting the symlink and sourcing zsh-autocomplete.plugin.zsh manually fixes the problem

@jroth5
Copy link

jroth5 commented Apr 22, 2023

I'm running into a similar issue.

When I attempt to install using znap, I get a similar loop:

Kyla-s-S21# 
.autocomplete.async.complete.fd-widget:3: not a directory: /tmp/tmp.CStO4sectj/.local/state/zsh-autocomplete/log/2023-04-22.log
Kyla-s-S21# 
.autocomplete.async.complete.fd-widget:3: not a directory: /tmp/tmp.CStO4sectj/.local/state/zsh-autocomplete/log/2023-04-22.log
Kyla-s-S21# 
.autocomplete.async.complete.fd-widget:3: not a directory: /tmp/tmp.CStO4sectj/.local/state/zsh-autocomplete/log/2023-04-22.log
Kyla-s-S21# 
.autocomplete.async.complete.fd-widget:3: not a directory: /tmp/tmp.CStO4sectj/.local/state/zsh-autocomplete/log/2023-04-22.log

Manually installing (not using znap) doesn't seem to cause the loop on installation. I haven't yet tested how it behaves after that (such as on startup).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants