I've had problems with crashes when using absolute paths. Some debugging points to the string table being entirely overwritten in lua/snap/producer/ripgrep/general.lua. The string function imported from lua/snap/common/string.lua contains only a split function (and "aniseed/locals"). So string.format function ended up being nil, causing a crash.
My problem is solved by changing a line in lua/snap/common/string.lua:
local _2amodule_name_2a = "snap.common.string"
local _2amodule_2a
do
package.loaded[_2amodule_name_2a] = string <-- changed {} to string
_2amodule_2a = package.loaded[_2amodule_name_2a]
end
This seem to have solved my issue, for now. But it's probably better if any contributors would look into it.
I'm not very experienced with Lua, and fennel even less so, nor have I found anyone else reporting the same issue so I can't tell if this is a real bug or just a "me" problem.
For context: I'm on a mac with Neovim 0.10.0 and using LunarVim.
Hello! Thanks for an excellent plugin!
I've had problems with crashes when using absolute paths. Some debugging points to the string table being entirely overwritten in
lua/snap/producer/ripgrep/general.lua
. The string function imported fromlua/snap/common/string.lua
contains only asplit
function (and "aniseed/locals"). Sostring.format
function ended up being nil, causing a crash.My problem is solved by changing a line in
lua/snap/common/string.lua
:This is my config that crashed:
This seem to have solved my issue, for now. But it's probably better if any contributors would look into it.
I'm not very experienced with Lua, and fennel even less so, nor have I found anyone else reporting the same issue so I can't tell if this is a real bug or just a "me" problem. For context: I'm on a mac with Neovim 0.10.0 and using LunarVim.