GithubHelp home page GithubHelp logo

Comments (6)

creativenull avatar creativenull commented on June 10, 2024

This doesn't look like you are on the latest nvim version, latest is nvim 0.9.x. Are you on at least nvim 0.7 or 0.8?

from efmls-configs-nvim.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

I'm on nvim v0.10.0-dev-9f32deb

from efmls-configs-nvim.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

It looks like the health API may have changed since I also get this in a notification:

vim.health.report_ok() is deprecated, use vim.health.ok() instead. :help deprecated

from efmls-configs-nvim.

creativenull avatar creativenull commented on June 10, 2024

That's interesting to know but that shouldn't give the error, can you try on the latest nightly? I don't really plan for nightly version because they change quite frequently.

I just tried on the homebrew version NVIM v0.10.0-dev-1361+g0892c1cd9-Homebrew which is following master and I do get the deprecated message but no errors.

from efmls-configs-nvim.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

Same issue. It may have something to do with the way Neovim is installed via Nix, however it doesn't happen with any other plugin and it works if I don't load efmls-configs.

12:33:47 msg_show    checkhealth Running healthchecks...
   Warn  12:33:47 notify.warn vim.health.report_error() is deprecated, use vim.health.error() instead. :help deprecated
This feature will be removed in Nvim version 0.11
   Warn  12:33:47 notify.warn stack traceback:
	...-unwrapped-2eecb1b/share/nvim/runtime/lua/vim/health.lua:201: in function 'deprecate'
	...-unwrapped-2eecb1b/share/nvim/runtime/lua/vim/health.lua:226: in function 'report_error'
	...git/efmls-configs-nvim/lua/efmls-configs/health/init.lua:19: in function 'check'
	[string "require("efmls-configs.health").check()"]:1: in main chunk
	[C]: in function 'pcall'
	...-unwrapped-2eecb1b/share/nvim/runtime/lua/vim/health.lua:306: in function <...-unwrapped-2eecb1b/share/nvim/runtime/lua/vim/health.lua:271>
   Error  12:33:47 msg_show.emsg    checkhealth E5009: Invalid $VIMRUNTIME: /nix/store/cw5y9yy5m3cm8s2h1hiw2ifan1xczbpw-neovim-unwrapped-2eecb1b/share/nvim/runtime
12:33:47 msg_show    checkhealth Error executing lua: Vim:E117: Unknown function: health#efmls_configs#check
stack traceback:
	[C]: in function 'call'
	...-unwrapped-2eecb1b/share/nvim/runtime/lua/vim/health.lua:303: in function <...-unwrapped-2eecb1b/share/nvim/runtime/lua/vim/health.lua:271>

from efmls-configs-nvim.

creativenull avatar creativenull commented on June 10, 2024

Yeah, I don't have a nix environment for me to test but it's an interesting problem. I will push out PR to support the new health API in any case to prepare for it.

from efmls-configs-nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.