Describe the bug
When editing a file newly created with "touch" command, entering insert mode and start typing showing error :
nvim: /home/user/.cache/yay/neovim-git/src/neovim-git/src/tree_sitter/parser.c:878: ts_parser__accept: Assertion 'ts_subtree_is_eof(lookahead)' failed.
fish: "nvim test.cpp" terminated by signal SIGABRT (Abort)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The app run normally
Output of :checkhealth nvim_treesitter
git executable found.cc executable found.highlights.scm query found for elmlocals.scm query found for elmtextobjects.scm query found for elmfold.scm query found for elmhighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm found.locals.scm found.textobjects.scm query found for javafold.scm query found for javahighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm found.locals.scm query found for darttextobjects.scm query found for dartfold.scm query found for darthighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm found.locals.scm found.textobjects.scm query found for ocamlfold.scm query found for ocamlhighlights.scm found.locals.scm found.textobjects.scm found.fold.scm query found for gohighlights.scm query found for nixlocals.scm query found for nixtextobjects.scm query found for nixfold.scm query found for nixhighlights.scm query found for yamllocals.scm query found for yamltextobjects.scm query found for yamlfold.scm query found for yamlhighlights.scm found.locals.scm query found for jsontextobjects.scm query found for jsonfold.scm query found for jsonhighlights.scm query found for jsdoclocals.scm query found for jsdoctextobjects.scm query found for jsdocfold.scm query found for jsdochighlights.scm query found for markdownlocals.scm query found for markdowntextobjects.scm query found for markdownfold.scm query found for markdownhighlights.scm query found for julialocals.scm query found for juliatextobjects.scm query found for juliafold.scm query found for juliahighlights.scm found.locals.scm found.textobjects.scm query found for htmlfold.scm query found for htmlhighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm found.locals.scm found.textobjects.scm query found for fennelfold.scm query found for fennelhighlights.scm query found for swiftlocals.scm query found for swifttextobjects.scm query found for swiftfold.scm query found for swifthighlights.scm found.locals.scm found.textobjects.scm query found for queryfold.scm query found for queryhighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm found.locals.scm found.textobjects.scm query found for rubyfold.scm query found for rubyhighlights.scm query found for vuelocals.scm query found for vuetextobjects.scm query found for vuefold.scm query found for vuehighlights.scm query found for scalalocals.scm query found for scalatextobjects.scm query found for scalafold.scm query found for scalahighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm found.locals.scm found.textobjects.scm found.fold.scm query found for rusthighlights.scm found.locals.scm found.textobjects.scm query found for bashfold.scm query found for bashhighlights.scm found.locals.scm query found for c_sharptextobjects.scm found.fold.scm query found for c_sharphighlights.scm found.locals.scm found.textobjects.scm found.fold.scm query found for rsthighlights.scm found.locals.scm query found for csstextobjects.scm query found for cssfold.scm query found for csshighlights.scm found.locals.scm found.textobjects.scm query found for phpfold.scm query found for phphighlights.scm found.locals.scm found.textobjects.scm found.fold.scm found.highlights.scm query found for haskelllocals.scm query found for haskelltextobjects.scm query found for haskellfold.scm query found for haskellhighlights.scm found.locals.scm found.textobjects.scm query found for tomlfold.scm query found for tomlhighlights.scm found.locals.scm query found for regextextobjects.scm query found for regexfold.scm query found for regex
Output of nvim --version
NVIM v0.5.0-681-g7ba28b1ae
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -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/home/hanifrmdhn/.cache/yay/neovim-git/src/build/config -I/home/hanifrmdhn/.cache/yay/neovim-git/src/neovim-git/src -I/usr/include -I/home/hanifrmdhn/.cache/yay/neovim-git/src/build/src/nvim/auto -I/home/hanifrmdhn/.cache/yay/neovim-git/src/build/include
Compiled by hanifrmdhn@omnib0x
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
Additional context
Add any other context about the problem here.
I was seeing this yesterday, I can't reproduce this today with the latest version of neovim
I have a repro and I have been working on that upstream. The issue is still a bit tricky to understand to be honest, but this is being worked on!
@vigoux can you please provide a link to upstream issue if there is one?
I don't think there is an issue opened upstream (yet) feel free to open one!
Lokks like it's been fixed in the upstream. I'll test it tonight.
Yeah, the fix landed yesterday, it should be all good now!
Most helpful comment
I have a repro and I have been working on that upstream. The issue is still a bit tricky to understand to be honest, but this is being worked on!