Closed WilliamWelsh closed 2 weeks ago
@WilliamWelsh if you could, clone the repo and add this code to ./lua/supermaven-nvim/logger.lua
:
local join_path = function(...)
for _, v in ipairs({...}) do
if v == nil then
print("nil", vim.inspect(v))
else
print("not nil", v)
end
end
The function join_path
is checking for vim.fn.stdpath("cache")
value, that is what could be getting a nil
value.
In my case, this is the result I get when log_level = "off"
:
not nil /Users/aome/.cache/nvim
not nil supermaven-nvim.log
And this is what I get with the config you provided:
not nil /Users/aome/.cache/nvim
not nil supermaven-nvim.log
not nil /Users/aome/.cache/nvim
not nil supermaven-nvim.log
not nil /Users/aome/.cache/nvim
not nil supermaven-nvim.log
[supermaven-nvim] Starting Supermaven...
I was the one who introduce the logger, so it could help me figure it out, maybe I will need to add a nil
check for vim.fn.stdpath("cache")
and create it if nil
.
Which OS are you having this issue on? (My results are from MacOS 14.5 23F79)
/Users/william/.local/share/nvim
not nil /Users/william/.cache/nvim
not nil supermaven-nvim.log
I am also on MacOS 14.5 23F79
Commenting this out fixes it
if vim.version().minor >= 10 then
return table.concat(vim.iter({ ... }):flatten():totable(), path_sep):gsub(path_sep .. "+", path_sep)
end
I'm on NVIM v0.10.0-dev-1988+g1ef60ea65-Homebrew
Maybe it's time for me to update nvim?
@WilliamWelsh you are using the dev build, but v0.10.0
is now the stable release, maybe your build is from a commit before vim.iter
introduction.
Here is my version:
NVIM v0.10.0
Build type: RelWithDebInfo
LuaJIT 2.1.1713484068
I updated Neovim and it's working now, thank you :D
I ran
:Lazy sync supermaven-nvim
and now this happens everytime I open nvimThank you for making this plugin, I love it
My config