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

Plugin reporting invalid nvim version #255

Open
bd-g opened this issue Jul 16, 2024 · 1 comment
Open

Plugin reporting invalid nvim version #255

bd-g opened this issue Jul 16, 2024 · 1 comment

Comments

@bd-g
Copy link

bd-g commented Jul 16, 2024

I've installed this plugin with the below config on lazyvim

return {
  -- https://github.com/sourcegraph/sg.nvim
  {
    "sourcegraph/sg.nvim",
    dependencies = { 
      "nvim-lua/plenary.nvim", 
      "nvim-telescope/telescope.nvim" 
    },
  },
}

I then login per the directions, and run the health check :checkhealth sg, and get the following output.

sg: require("sg.health").check()

sg.nvim report ~
- Machine: x86_64, sysname: Linux
- ERROR Invalid nvim version. Upgrade to at least 0.10.0. Current version: table: 0x7ff9ca663ad0
- ERROR Invalid nvim version. Upgrade to at least 0.9.4 or nightly

I'm currently on v0.9.5, I'm not sure where the Current version: table: 0x7ff9ca663ad0 is coming from.

$ nvim --version
NVIM v0.9.5

I have a few colleagues who have also installed the plugin and reported similar errors. Let me know any other details you would like, happy to work with you to diagnose the issue

Environment

NixOS 24.05, nvim 0.9.5, lazyvim as my plugin manager.

@AndreasHnida
Copy link

AndreasHnida commented Jul 19, 2024

I had the exact same error. Upgraded Neovim to 10.0. :checkhealth now runs fine.

It's not sg's fault. It uses the normal nvim-like way of retrieving the version:

local version = vim.version()

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