OXY2DEV / markview.nvim

An experimental markdown previewer for Neovim
Apache License 2.0
603 stars 23 forks source link

attempt to index local 'version' (a userdata value) #3

Closed s1n7ax closed 1 week ago

s1n7ax commented 1 week ago

I'm using neovim nightly build. It seems the version check you have done doesn't work in the 0.11 version. I think the error occurs because vim.version().build returns nil

lua =vim.version()

{
  api_compatible = 0,
  api_level = 12,
  api_prerelease = false,
  build = vim.NIL,
  major = 0,
  minor = 11,
  patch = 0,
  prerelease = "dev",
  <metatable> = {
    __eq = <function 1>,
    __index = <function 2>,
    __le = <function 3>,
    __lt = <function 4>,
    __newindex = <function 5>,
    __tostring = <function 6>
  }
}
vim.version.parse("v0.10.0")
{
  major = 0,
  minor = 10,
  patch = 0,
  <metatable> = {
    __eq = <function 1>,
    __index = <function 2>,
    __le = <function 3>,
    __lt = <function 4>,
    __newindex = <function 5>,
    __tostring = <function 6>
  }
}
ugoschieli2 commented 1 week ago

The same error occurred also on neovim v0.10.0 from Arch repo

OXY2DEV commented 1 week ago

Thanks for reporting the issue!

I didn't think this would be changed. My bad.

OXY2DEV commented 1 week ago

I have removed the version check part. Can you check if the plugin works now?

ugoschieli2 commented 1 week ago

Yeah it's now good on Arch

OXY2DEV commented 1 week ago

That's great 👍.

I will wait for confirmation from the other user before closing the issue.

s1n7ax commented 1 week ago

Fixed