elixir-tools / elixir-tools.nvim

Neovim plugin for Elixir
MIT License
403 stars 30 forks source link

`Attempt to index field 'fs' (a nil value)` in init.lua:156 #29

Closed mikl closed 2 years ago

mikl commented 2 years ago

Hi there

Thanks for making this plugin.

I was testing it out, and I’m getting this error whenever i load an .ex(s) file:

Screenshot 2022-07-10 at 12 04 43@2x

I presume this is due to the change in 112804679eebe3609cdd68484a4958b8e5781602, for which I guess you have to use the NeoVim nightly build for vim.fs to be available?

This is my nvim --version:

NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.7.2/share/nvim"

Run :checkhealth for more info

Not a big problem, one can just go back to an earlier version for now, but you might want to update the README, since it currently states that you only need NeoVim 0.7.

mhanberg commented 2 years ago

Yeah this was a mistake on my end.

vim.fs was added on 5/31 and 0.7.2 was added in June, so I assumed it was in 0.7.

I will get a new patch out today.

mhanberg commented 2 years ago

I reverted the change, thanks for reporting this.