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

attempt to index field 'uv' (a nil value) #4

Open
slpzc opened this issue Jul 4, 2024 · 6 comments
Open

attempt to index field 'uv' (a nil value) #4

slpzc opened this issue Jul 4, 2024 · 6 comments

Comments

@slpzc
Copy link

slpzc commented Jul 4, 2024

Error:
E5113: Error while calling lua chunk: C:\Users\root\AppData\Local\nvim/lua/bootstrap.lua:6: attempt to index field 'uv' (a nil value)
stack traceback:
C:\Users\root\AppData\Local\nvim/lua/bootstrap.lua:6: in main chunk
[C]: in function 'require'
C:\Users\root\AppData\Local\nvim\init.lua:2: in main chunk

What I did:

  1. Downloaded the repository archive;
  2. Unpacked all the contents into the nvim folder;
  3. Run the command "nvim".
@mgastonportillo
Copy link
Owner

Hey @slpzc, are you on neovim 0.10? It needs the latest stable build, as specified in the readme. vim.loop got deprecated and vim.uv is preferred

@slpzc
Copy link
Author

slpzc commented Jul 4, 2024

Hey @slpzc, are you on neovim 0.10? It needs the latest stable build, as specified in the readme. vim.loop got deprecated and vim.uv is preferred

I apologize, it's my mistake. Indeed, neovim was a lower version (0.9.5)

However, after doing all the same steps, I get this error:
An error was detected while processing VimEnter Auto Commands for "*":
Lua module not found for config of cd-project.nvim. Please use a config() function instead

@mgastonportillo
Copy link
Owner

I'll get back to you in a couple hours. Travelling right now. I might have made a mistake with cd-project's spec. Thanks for reporting it.

@mgastonportillo
Copy link
Owner

@slpzc should be fixed now. I accidentally left some specs defined as local dev. If you find any other issue related to this, please remove the contents of the plugins/local folder and run :SrcPlugins then re-open neovim. I'll add proper handlers for this soon. Sorry for the inconveniences

@slpzc
Copy link
Author

slpzc commented Jul 5, 2024

@slpzc should be fixed now. I accidentally left some specs defined as local dev. If you find any other issue related to this, please remove the contents of the plugins/local folder and run :SrcPlugins then re-open neovim. I'll add proper handlers for this soon. Sorry for the inconveniences

I reinstalled it, ran it and got an error:

Failed to run config for nvim-notify cannot open C:\Users\root\AppData\Local\nvim-data/nvchad/base46/notify: No such file or directory # stacktrace: - AppData/Local/nvim/lua/plugins/spec/notify.lua:5 in config

Then, tried deleting the contents of plugins/local and restarting got errors:

An error was detected while processing C:\Users\root\AppData\Local\nvim\init.lua:
No specs found for module plugins.local.binary-peek No specs found for module plugins.local.flip-flop No specs found for module plugins.local.js-playground No specs found for module plugins.local.popurri No specs found for module plugins.local.yerbreak

When trying to run :SrcPlugins it gives an error:
Config Change Detected. Reloading... - changed: AppData/Local/nvim/lua/plugins/init.lua.

@mgastonportillo
Copy link
Owner

@slpzc the last message: Config Change Detected. Reloading... - changed: AppData/Local/nvim/lua/plugins/init.lua isn't an error. That is a reloading message which happens because the plugins/init.lua file has been changed. After re-opening neovim, lazy.nvim will detect the changes and proceed accordingly.

Somehow you are trying to access configurations in the Windows filesystem: Failed to run config for nvim-notify cannot open C:\Users\root\AppData\Local\nvim-data/nvchad/base46/notify: No such file or directory # stacktrace: - AppData/Local/nvim/lua/plugins/spec/notify.lua:5 in config

WSL uses the linux file system, so I think you're making a mistake in the way you're installing neovim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants