1

I try to edit a SH file but I always get an error opening:

Error detected while processing BufReadPre Autocommands for "*":
...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:171: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:160: Vim(lua):E5108: Error executing lua ...r/start/filetype.nvim/lu
a/filetype/mappings/function.lua:391: Vim(call):E117: Unknown function: dist#ft#SetFileTypeSH
Error detected while processing BufReadPost Autocommands for "*":
E5108: Error executing lua ...r/start/filetype.nvim/lua/filetype/mappings/function.lua:391: Vim(call):E117: Unknown function: dist#ft#SetFileTypeSH
stack traceback:
        [C]: in function 'cmd'
        ...r/start/filetype.nvim/lua/filetype/mappings/function.lua:391: in function 'name'
        ...te/pack/packer/start/filetype.nvim/lua/filetype/init.lua:17: in function 'set_filetype'
        ...te/pack/packer/start/filetype.nvim/lua/filetype/init.lua:65: in function 'try_lookup'
        ...te/pack/packer/start/filetype.nvim/lua/filetype/init.lua:168: in function 'resolve'
        [string ":lua"]:1: in main chunk

I do install neovim through ppa, so it should be part of it.

neovim info:

NVIM v0.9.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -ffile-prefix-map=/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/build/cmake.config -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/src -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/.deps/usr/include -I/usr/include -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/build/src/nvim/auto -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/build/include
Compiled by buildd@lcy02-amd64-115

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Searching for that error has not revaeled something that appears to be a solution (at least for me)

Has someone a clue?

Sascha
  • 245
  • 2
  • 9

1 Answers1

1

Might be too late, but I just into this issue as well after upgrading to v0.9.0. It was not limited to sh files but affected at least tex files as well.

Turns out the culprit was, in my case, nathom/filetype.nvim, which lost in relevance from v0.8. I deactivated it and things are now going fine.

See https://github.com/nathom/filetype.nvim/issues/9

AdminBee
  • 21,637
  • 21
  • 47
  • 71
Aubergine
  • 111
  • 2