nyoom.nvim icon indicating copy to clipboard operation
nyoom.nvim copied to clipboard

rm: cannot remove '/home/user/.local/share/nvim/tree-sitter-xxxxx.tar.gz': No such file or directory

Open D3vil0p3r opened this issue 1 year ago • 3 comments

Hello, I'm using nvim-nightly package and I'm trying to sync by bin/nyoom sync, I get several error messages about several tree-sitter-xxxx like this:

bin/nyoom sync
Synchronizing your config with Nyoom Nvim

Nyoom version: 6161ca5
NVIM v0.9.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions     -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security     -fstack-clash-protection -fcf-protection -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/makepkg/nvim-nightly/src/build/cmake.config -I/tmp/makepkg/nvim-nightly/src/neovim-nightly/src -I/usr/include -I/tmp/makepkg/nvim-nightly/src/build/src/nvim/auto -I/tmp/makepkg/nvim-nightly/src/build/include
Compiled by athena@penthost

Clearing cache
Loading Packer
Compiling Nyoom Doctor
Initializing Module System
Compiling Nyoom Modules
Installing Packages

Would you like to sync tree-sitter parsers for enabled modules? y/n: y
Syncing Tree-sitter Parsers (this may take a while)

Downloading tree-sitter-comment...
Creating temporary directory
Extracting tree-sitter-comment...
rm: cannot remove '/home/athena/.local/share/nvim/tree-sitter-comment.tar.gz': No such file or directory

Error detected while processing command line:
Could not delete /home/athena/.local/share/nvim/tree-sitter-comment.tar.gz
Failed to execute the following command:
{
  cmd = "rm",
  err = "Could not delete /home/athena/.local/share/nvim/tree-sitter-comment.tar.gz",
  opts = {
    args = { "/home/athena/.local/share/nvim/tree-sitter-comment.tar.gz" }
  }
}
Downloading tree-sitter-help...
Creating temporary directory
Extracting tree-sitter-help...
rm: cannot remove '/home/athena/.local/share/nvim/tree-sitter-help.tar.gz': No such file or directory

Could not delete /home/athena/.local/share/nvim/tree-sitter-help.tar.gz
Failed to execute the following command:
{
  cmd = "rm",
  err = "Could not delete /home/athena/.local/share/nvim/tree-sitter-help.tar.gz",
  opts = {
    args = { "/home/athena/.local/share/nvim/tree-sitter-help.tar.gz" }
  }
}
....

How can I solve it?

D3vil0p3r avatar Dec 10 '22 22:12 D3vil0p3r

Instead of using bin/nyoom, could you quickly try running :TSInstall python inside nyoom.nvim and see if it installs correctly?

shaunsingh avatar Dec 10 '22 23:12 shaunsingh

Instead of using bin/nyoom, could you quickly try running :TSInstall python inside nyoom.nvim and see if it installs correctly?

Thank you. It works! I close the issue.

D3vil0p3r avatar Dec 10 '22 23:12 D3vil0p3r

I still need to figure out what causes this to error out with nyoom cli but not GUI nyoom.

Installing parsers through GUI is a good workaround for now but upstream nvim-treesitter might have some issues running in headless mode ...

shaunsingh avatar Dec 10 '22 23:12 shaunsingh