pwntester/codeql.nvim

An error occurred while I was saving the QL code

Closed this issue · 0 comments

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

When I save a ql file, I get this error:

Error detected while processing BufWritePre Autocommands for "<buffer=27>":
E5108: Error executing lua [string ":lua"]:1: attempt to call field 'formatting' (a nil value)
stack traceback:
"codeql-custom-queries-cpp/RecursiveFunc.ql" 24L, 514B written

Describe what you expected to happen

The code should be properly formatted without errors

How to reproduce it (as minimally and precisely as possible)

  1. Save a ql file

Tell us your environment

NVIM v0.10.0-dev-382+gebb10d624
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-10 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-com
mon -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_TS_HAS_SET_MAX_START_DEPTH -I/__w/neovim/neovim/.deps/usr/include/luajit-2.
1 -I/usr/include -I/__w/neovim/neovim/.deps/usr/include -I/__w/neovim/neovim/build/src/nvim/auto -I/__w/neovim/neovim/build/include -I/__w/neovim/neovim/build/cmake.config -I/__w/neovim/neovim/src -I/usr/include -I/__w/neovim/neovim/.deps/usr
/include -I/__w/neovim/neovim/.deps/usr/include -I/__w/neovim/neovim/.deps/usr/include -I/__w/neovim/neovim/.deps/usr/include -I/__w/neovim/neovim/.deps/usr/include -I/__w/neovim/neovim/.deps/usr/include

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

Run :checkhealth for more info

Anything else we need to know?