Open osalbahr opened 1 year ago
Running the installation script in https://www.lunarvim.org/docs/installation
somehow made the lvim test.c
error go away.
% which lvim
/Users/dracula/.tea/.local/bin/lvim
% realpath $(which lvim)
/Users/dracula/.tea/tea.xyz/v0.36.0/bin/tea
% lvim --version
NVIM v0.9.1
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /opt/tea.xyz/gx/cc/v0.1.4/bin/cc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -fdiagnostics-color=auto -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include/luajit-2.1 -I/opt/gnu.org/gettext/v0.21.1/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/build/src/nvim/auto -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/build/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/build/cmake.config -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/src -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include -I/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/968688f7/.deps/usr/include
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/neovim.io/v0.9.1/share/nvim"
Run :checkhealth for more info
I get the same error on ublue-os/silverblue-nvidia:38
(based on Fedora Linux 38):
[zeus@fedora ~]$ tea lvim hello.c
Installation in progress for [clangd]
Error detected while processing BufNewFile Autocommands for "*":
Error executing lua callback: ...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:21: Error executing lua: ...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:22: BufNewFile Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[19]..script /var/home/zeus/.tea/lunarvim.org/v1.3.0/share/lunarvim/site/after/ftplugin/c.lua: Vim(runtime):E5113: Error while calling lua chunk: ...ite/pack/lazy/opt/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "clangd".
stack traceback:
[C]: in function 'error'
...ite/pack/lazy/opt/mason.nvim/lua/mason-registry/init.lua:79: in function 'get_package'
....org/v1.3.0/share/lunarvim/lvim/lua/lvim/lsp/manager.lua:121: in function 'setup'
...rvim.org/v1.3.0/share/lunarvim/site/after/ftplugin/c.lua:1: in main chunk
[C]: in function 'nvim_cmd'
...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:22: in function <...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:21: in function <...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:22: in function <...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:21: in function <...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:21: in function <...us/.tea/neovim.io/v0.9.1/share/nvim/runtime/filetype.lua:10>
Press ENTER or type command to continue
I don't have clangd
, though.
[zeus@fedora ~]$ clangd
bash: clangd: command not found
[zeus@fedora ~]$ tea clangd
tea: command not found: clangd
Should I also try to run the official LunarVim script to see if that fixes it? The earlier error message was in the latest macOS (x86).
clangd
appears to be a C LSP that's part of LLVM, which don't appear to build. Looks like lvim
wants to configure it by default if you open a C file. We should probably look into building that, if feasible.
Not sure. I tried running their script but it can't find nvim
, even under tea
:
[zeus@fedora lvim]$ tea https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh
88\ 88\
88 | \__|
88 |88\ 88\ 888888$\ 888888\ 888888\ 88\ 88\ 88\ 888888\8888\
88 |88 | 88 |88 __88\ \____88\ 88 __88\\88\ 88 |88 |88 _88 _88\
88 |88 | 88 |88 | 88 | 888888$ |88 | \__|\88\88 / 88 |88 / 88 / 88 |
88 |88 | 88 |88 | 88 |88 __88 |88 | \88$ / 88 |88 | 88 | 88 |
88 |\888888 |88 | 88 |\888888$ |88 | \$ / 88 |88 | 88 | 88 |
\__| \______/ \__| \__| \_______|\__| \_/ \__|\__| \__| \__|
--------------------------------------------------------------------------------
Detecting platform for managing any additional neovim dependencies
[ERROR]: Unable to find dependency [neovim]
Please install it first and re-run the installer. Try: sudo dnf install -y neovim
[zeus@fedora lvim]$ nvim --version
NVIM v0.9.1
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /opt/llvm.org/v14.0.6/bin/cc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -fdiagnostics-color=auto -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/tmp/e14cfd95/.deps/usr/include/luajit-2.1 -I/usr/include -I/tmp/e14cfd95/.deps/usr/include -I/tmp/e14cfd95/build/src/nvim/auto -I/tmp/e14cfd95/build/include -I/tmp/e14cfd95/build/cmake.config -I/tmp/e14cfd95/src -I/usr/include -I/tmp/e14cfd95/.deps/usr/include -I/tmp/e14cfd95/.deps/usr/include -I/tmp/e14cfd95/.deps/usr/include -I/tmp/e14cfd95/.deps/usr/include -I/tmp/e14cfd95/.deps/usr/include -I/tmp/e14cfd95/.deps/usr/include
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/neovim.io/v0.9.1/share/nvim"
Run :checkhealth for more info
[zeus@fedora lvim]$
Here is a simpler example:
[zeus@fedora lvim]$ cat test.sh
#!/usr/bin/env bash
nvim --version
[zeus@fedora lvim]$ bash test.sh
test.sh: line 3: nvim: command not found
[zeus@fedora lvim]$ tea test.sh
/var/home/zeus/develop/lvim/test.sh: line 3: nvim: command not found
[zeus@fedora lvim]$
Try calling tea nvim
in your test.sh
.
Try calling
tea nvim
in yourtest.sh
.
That works
Should this issue be moved to the pantry repo?
Yes, I can move it. There are at least 3 distinct issues above:
LunarVim can't find a package named "clangd". This is what I get upon running
lvim test.c
:I'm not sure what the error above means because I do have
clangd
:I can proceed but without syntax highlighting, even though
nvim test.c
works fine. Both were automatically installed withtea
.