melange-nvim
melange-nvim copied to clipboard
Unable to build using build scripts
Help needed. I am struggling to get the build scripts to work.
$ make
nvim --headless -u NORC \
--cmd 'lua require("melange.build").build()' \
--cmd 'q'
Error detected while processing pre-vimrc command line:
E5108: Error executing lua [string ":lua"]:1: module 'melange.build' not found:
no field package.preload['melange.build']
no file './melange/build.lua'
no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/share/luajit-2.1.0-beta3/melange/build.lua'
no file '/usr/local/share/lua/5.1/melange/build.lua'
no file '/usr/local/share/lua/5.1/melange/build/init.lua'
no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/share/lua/5.1/melange/build.lua'
no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/share/lua/5.1/melange/build/init.lua'
no file './melange/build.so'
no file '/usr/local/lib/lua/5.1/melange/build.so'
no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/lib/lua/5.1/melange/build.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './melange.so'
no file '/usr/local/lib/lua/5.1/melange.so'
no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/lib/lua/5.1/melange.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
Adding more information around required deps for build script would be awesome.
Hmmm, I'm not sure about what might be causing this. Some info that might be good to know:
- What nvim version are you running?
- Did you download it like a normal plugin, or did you clone it in a directory outside the usual nvim runtimepath?
- Are you lazy loading melange?
- Could you try calling the build function from within neovim? Like
:lua require("melange.build").build()
Adding more information around required deps for build script would be awesome.
Will do!
Melange needs Lush.nvim to compile stuff, but since the error trace seems to be about melange.build I don't think that's the problem.
Okay so odd. On one mac I can build running the command you suggested in nvim. On the second mac that has the same version of nvim it doesn't work.
nvim version:
NVIM v0.5.1
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -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/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/config -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/src/nvim/auto -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/include
Compiled by brew@BigSur
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.1/share/nvim"
I am using packer as the package manager. Using both lunarvim, and neovim on both devices. I am not sure on the lazy loading.