wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.82k stars 266 forks source link

Rocks couldn't extract archive: unrecognized filename extension #991

Open glyh opened 2 years ago

glyh commented 2 years ago

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

- `git --version`:

git version 2.37.1

- Operating system/version:

Linux archlinux 5.18.15-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 29 Jul 2022 22:52:41 +0000 x86_64 GNU/Linux

- Terminal name/version:

alacritty 0.10.1 ()


### Steps to reproduce
1. 
```sh
nvim -u test.lua

(test.lua is in the below section)

  1. PackerSync

Actual behaviour

Error: Couldn't extract archive /tmp/luarocks_dbus_proxy-0.10.3-2-u9ooEN/lua-dbus_proxy: unrecognized filename extension

Expected behaviour

No error.

packer files

Plugin specification file(s) Post or link your plugin specification files here, if you aren't able to provide a minimal reproducer test.lua: ```lua -- this template is borrowed from nvim-lspconfig local on_windows = vim.loop.os_uname().version:match("Windows") vim.env['GITHUB'] = vim.env['GITHUB'] or 'www.github.com' local function join_paths(...) local path_sep = on_windows and "\\" or "/" local result = table.concat({ ... }, path_sep) return result end vim.cmd([[set runtimepath=$VIMRUNTIME]]) local temp_dir if on_windows then temp_dir = vim.loop.os_getenv("TEMP") else temp_dir = "/tmp" end vim.cmd("set packpath=" .. join_paths(temp_dir, "nvim", "site")) local package_root = join_paths(temp_dir, "nvim", "site", "pack") local install_path = join_paths(package_root, "packer", "start", "packer.nvim") local compile_path = join_paths(install_path, "plugin", "packer_compiled.lua") local function load_plugins() -- only add other plugins if they are necessary to reproduce the issue require("packer").startup({ { "wbthomason/packer.nvim", { 'tonyfettes/fcitx5.nvim', tag = 'v0.0.1-alpha', rocks = {'dbus_proxy', 'lgi'} } }, config = { package_root = package_root, compile_path = compile_path, git = { default_url_format = 'https://' .. vim.env['GITHUB'] .. '/%s' } }, }) end if vim.fn.isdirectory(install_path) == 0 then vim.fn.system({ "git", "clone", 'https://' .. vim.env['GITHUB'] .. '/wbthomason/packer.nvim', install_path }) end load_plugins() -- require("packer").sync() vim.cmd([[ set completeopt=menu,menuone,noselect]]) ```
packer log file Post the contents of ~/.cache/nvim/packer.nvim.log here No such file.
packer compiled file I don't find it... Seems like setting packpath is not affecting the config path. `require('packer').config.compile_path` is the location of my daily driver config's compiled path, so this might be another bug.
DeadlySquad13 commented 2 years ago

Unfortunately, had the same error trying to install functional.