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

lua init.vim error #172

Open
4 tasks done
lionxu opened this issue Nov 30, 2024 · 8 comments
Open
4 tasks done

lua init.vim error #172

lionxu opened this issue Nov 30, 2024 · 8 comments
Assignees

Comments

@lionxu
Copy link

lionxu commented Nov 30, 2024

  • Describe the bug
    Error detected while processing /home/maomao/.dotfiles/nvim/init.vim:
    line 23:
    E5108: Error executing lua vim/shared.lua:0: s: expected string, got number
    stack traceback:
    [C]: in function 'error'
    vim/shared.lua: in function 'validate'
    vim/shared.lua: in function 'startswith'
    vim/_init_packages.lua: in function '__index'
    vim/shared.lua: in function 'islist'
    vim/shared.lua: in function ''
    vim/shared.lua: in function 'tbl_deep_extend'
    ...ocal/share/nvim/lazy/hydra.nvim/lua/hydra/layer/init.lua:116: in function 'initialize'
    ...local/share/nvim/lazy/hydra.nvim/lua/hydra/lib/class.lua:14: in function 'Layer'
    ...mao/.local/share/nvim/lazy/hydra.nvim/lua/hydra/init.lua:440: in function '_setup_pink_hydra'
    ...mao/.local/share/nvim/lazy/hydra.nvim/lua/hydra/init.lua:282: in function 'initialize'
    ...local/share/nvim/lazy/hydra.nvim/lua/hydra/lib/class.lua:14: in function 'Hydra'
    /home/maomao/.config/nvim/lua/usr/hydra.lua:4: in main chunk
    [C]: in function 'require'
    /home/maomao/.config/nvim/lua/usr/init.lua:6: in main chunk
    [C]: in function 'require'
    [string ":lua"]:1: in main chunk
    Error detected while processing VimEnter Autocommands for "*":
    Error executing lua callback: ...al/share/nvim/lazy/persisted.nvim/lua/persisted/init.lua:44: attempt to index upvalue 'config' (a nil value)
    stack traceback:
    ...al/share/nvim/lazy/persisted.nvim/lua/persisted/init.lua:44: in function <...al/share/nvim/lazy/persisted.nvim/lua/persisted/init.lua:37>

  • nvim --version
    NVIM v0.11.0-dev-864f25d
    Build type: Release
    LuaJIT 2.1.1731601260
    Run "nvim -V1 -v" for more info

  • Operating System
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.5 LTS
    Release: 22.04
    Codename: jammy

  • checkhealth screenshot
    image
    image
    image
    image
    image

@Martins3
Copy link
Owner

Martins3 commented Nov 30, 2024

这个是从原来的配置更新过来的,还是新部署的?

还有 cd ~/.local/share/nvim/lazy/hydra.nvim && git log 看看,我现在用的 hydra 的 v1.0.2

@Martins3 Martins3 mentioned this issue Dec 1, 2024
4 tasks
@Martins3
Copy link
Owner

Martins3 commented Dec 4, 2024

兄弟,给点反馈啊

@xixijay1988
Copy link

image

@Martins3
Copy link
Owner

这个新安装的就有这个错误吗?

@xixijay1988
Copy link

这个新安装的就有这个错误吗?

嗯 是的 第一次安装报错, checkout 到tag v1.0.2 也会报错

@Martins3
Copy link
Owner

有点奇怪,我在 nixos 中新安装的没有问题,我有时间在 ubuntu 虚拟机中安装测试下

@lionxu
Copy link
Author

lionxu commented Jan 4, 2025

我这边也是新安装的。
image

@Martins3
Copy link
Owner

Martins3 commented Jan 6, 2025

找到原因了,应该使用 release 分支来编译安装:

git clone https://github.com/neovim/neovim && cd neovim
# 选择 release 分支
git branch -a
git checkout release-0.10
# 编译
make CMAKE_BUILD_TYPE=Release -j8
# 安装
sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants