Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: "attempt to call method 'flatten' (a nil value)" #1456

Closed
3 tasks done
smsossah opened this issue May 17, 2024 · 8 comments
Closed
3 tasks done

bug: "attempt to call method 'flatten' (a nil value)" #1456

smsossah opened this issue May 17, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@smsossah
Copy link

smsossah commented May 17, 2024

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

nvim v.0.10.0-dev-1471+ga8aebcff5-Homebrew

Operating system/version

MacOS Sonoma 14.4.1

Describe the bug

I am attempting to load the Mofiqul/vscode.nvim, and am getting a failure: ".local/share/nvim/lazy/lazy.nvim/lua/lazy/help.lua:16: attempt to call method 'flatten' (a nil value)". I noticed that there were some changes added in today's release in regards to the flatten() method and was wondering if this is a bug and if so how I could go about fixing it? Here's a screenshot
image

The colorscheme still loads but when I run the Lazy Update command I get the error described above.

(update) I realized I get the same error when loading other plugins like nvim-tree

Steps To Reproduce

Install lazy
Attempt to load https://github.com/Mofiqul/vscode.nvim :
return {
'Mofiqul/vscode.nvim'
config = function()
vim.cmd([[ colorscheme vscode ]])
end,
}

I've also tried other alternatives which worked previously but it leads to the same failure

Expected Behavior

I would expect the update command to run without failures when running :Lazy and selecting "U" to update

Repro

No response

@smsossah smsossah added the bug Something isn't working label May 17, 2024
@folke
Copy link
Owner

folke commented May 17, 2024

either use a recent nightly, or a stable neovim versions.
I'm not going to support old nightlies

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@dfszb
Copy link

dfszb commented May 17, 2024

Could this be caused by the latest neovim 0.10.0 release (out yesterday?) This seems to reproduce in my 0.10.0 installation while it does not show up on the v0.9.5.

@MichaelC001
Copy link

some error!
CleanShot_2024_05_19_141039

CleanShot_2024_05_19_141100

@max397574
Copy link
Contributor

as folke said above
you're using an old nightly version
either update to 0.10 stable or 0.11 nightly

@smsossah
Copy link
Author

@dfszb @MichaelC001 upgrading to 0.11 worked for me!

@ehrktia
Copy link

ehrktia commented May 22, 2024

sorry @smsossah upgrading to 0.11 did not help for me .
Had tried both 0.10 and 0.11 nightly as well
still having same error
[lspconfig] unhandled error: ...al/share/nvim/lazy/nvim-lspconfig/lua/lspconfig/util.lua:266: attempt to call method 'flatten' (a nil value)
if it helps

nvim --version                                                                                                                                                                       18:21:24
NVIM v0.11.0-dev-49+g10601ac5f
Build type: RelWithDebInfo
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

lazy version

local lazypath = vim.fn.stdpath("data") .. "/lazy/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",
    -- "--branch=main", -- latest stable release
    "--version=v10.20.5",
    lazypath,
  })

will try again to check if i missed anything

@smsossah
Copy link
Author

That's strange, I assumed it was a bug with 0.10.0 once I got it working on another version. Were you able to get it working or is it still causing the issue @ehrktia? Aside from changing versions I'm not sure what else could fix it since I'm fairly new to neovim/lazy

@ehrktia
Copy link

ehrktia commented May 24, 2024

That's strange, I assumed it was a bug with 0.10.0 once I got it working on another version. Were you able to get it working or is it still causing the issue @ehrktia? Aside from changing versions I'm not sure what else could fix it since I'm fairly new to neovim/lazy

there is a version check in nvim-lspconfig neovim/nvim-lspconfig#3172 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants