Closed MariaSolOs closed 9 months ago
Also interestingly enough, I can only reproduce this when using the Release
or RelWithDebInfo
Neovim builds, but not with the Debug
one.
cc @bfredl
Can't reproduce it under Linux build with Release
, looks like your platform issue or cache of build issue.
You can disable jit
in pre-processing for require'ufo'.setup
and enable it in post-processing to force ufo to use normal api to add folds.
Like:
local bak = jit
jit = nil
ufo.setup()
jit = bak
@kevinhwang91 Alright that hack seems to work. Are there any unexpected consequences of using that?
It's slow and may block if the provider produces a lot of fold ranges. Using ffi
will get better performance.
I can't reproduce it.
M1 (ARM) chip macOS Ventura 13.5.2 NVIM v0.10.0-dev-1046+g3afbf4745
@rockyzhang24 it doesn't seem that you're on the latest nightly.
Just now I rebuilt nvim with the latest commit, and still no errors.
I built it using
make CMAKE_BUILD_TYPE=RELEASE
sudo make install
NVIM v0.10.0-dev-1164+g23c21e763
@rockyzhang24 interesting. The only other thing I can think about is that I install Neovim under $HOME/neovim
, not the default location. It would be weird for that to matter though.
I have the same issue on master branch of neovim.
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install
NVIM v0.10.0-dev-1164+g23c21e763
I'm pretty sure this should now be fixed on neovim master. Lemme know if it still doesn't work please.
@dundargoc works for me, thank you!
Neovim version (nvim -v | head -n1)
NVIM v0.10.0-dev-1152+g5a363ccac
Operating system/version
Mac Ventura 13.5.2
How to reproduce the issue
repro.lua
:local root = vim.fn.fnamemodify("./.repro", ":p") for , name in ipairs { "config", "data", "state", "cache" } do vim.env[("XDG%s_HOME"):format(name:upper())] = root .. "/" .. name end local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system { "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, } end vim.opt.runtimepath:prepend(lazypath)
local plugins = { "kevinhwang91/promise-async", "kevinhwang91/nvim-ufo", } require("lazy").setup(plugins, { root = root .. "/plugins", })
local ufo = require "ufo" ufo.setup() vim.keymap.set("n", "zR", ufo.openAllFolds) vim.keymap.set("n", "zM", ufo.closeAllFolds)
Error executing vim.schedule lua callback: UnhandledPromiseRejection with the reason:
...osolano/.local/share/nvim/lazy/nvim-ufo/lua/ufo/wffi.lua:13: dlsym(RTLD_DEFAULT, find_window_by_handle): symbol not found