Skip to content

Broken when using Lua5.1 #518

Open
Open
@mirachan010

Description

@mirachan010

Description

Can't move in aarch64(RaspberryPi4-8GB) neovim from apt.
This neovim is use Lua5.1 not LuaJIT.

Expected Behavior

in use :Telescope give some completion.

Actual Behavior

echo some error

:Telescope ...
Error detected while processing function <SNR>36_telescope_complete:
line    1:
E5108: Error executing lua ...k/packer/start/plenary.nvim/lua/plenary/filetype.lua:1: loop or previous error
loading module 'plenary.path'
line    4:
E5108: Error executing lua ...acker/start/telescope.nvim/lua/telescope/command.lua:2: loop or previous error
loading module 'telescope.builtin'
line    6:
E712: Argument of extend() must be a List or Dictionary
line   11:
E714: List required
:Telescope 0

Details

Reproduce
  1. nvim -nu test.vim
  2. :Telescope <Tab> OR :Telescope oldfiles
Environment
  • nvim --version output:
NVIM v0.5.0-dev
Build type: RelWithDebInfo
Lua 5.1
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-3iA3FB/neovim-0.5.0+ubuntu2+git202102080233-02a3c4179-d569569c9=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -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/build/neovim-3iA3FB/neovim-0.5.0+ubuntu2+git202102080233-02a3c4179-d569569c9/build/config -I/build/neovim-3iA3FB/neovim-0.5.0+ubuntu2+git202102080233-02a3c4179-d569569c9/src -I/build/neovim-3iA3FB/neovim-0.5.0+ubuntu2+git202102080233-02a3c4179-d569569c9/.deps/usr/include -I/usr/include -I/build/neovim-3iA3FB/neovim-0.5.0+ubuntu2+git202102080233-02a3c4179-d569569c9/build/src/nvim/auto -I/build/neovim-3iA3FB/neovim-0.5.0+ubuntu2+git202102080233-02a3c4179-d569569c9/build/include
Compiled by buildd@bos02-arm64-058

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

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

Run :checkhealth for more info
  • Operating system: Ubuntu 20.04.2 LTS
  • Telescope commit:
Configuration

-- Auto install packer.nvim if not exists
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
  -- use mirachan010/packer.nvim for use Lua5.1 not LuaJIT
  vim.api.nvim_command('!git clone -b patch-1 https://github.com/mirachan010/packer.nvim '..install_path)
  vim.cmd('packadd packer.nvim|lua require\'aa\'.compile() require\'aa\'.install()')
end

local packer = nil
local function init()
  if packer == nil then
    packer = require('packer')
    packer.init({
            display={
             open_fn = require'packer.util'.float,
            }
        })
  end

  local use = packer.use
  packer.reset()
    use {
        'mirachan010/packer.nvim',
        opt = true,
        branch = 'patch-1'
    }

    use {
        'nvim-telescope/telescope.nvim',
        requires = {
                {'nvim-lua/popup.nvim'},
                {'nvim-lua/plenary.nvim'}
        }
    }
end

local plugins = setmetatable({}, {
    __index = function(_, key)
        init()
        return packer[key]
    end
})

return plugins

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions