cquery
cquery copied to clipboard
Accident linefeed in file names of compile_commands.json hangs cquery
trafficstars
Hi,
I somehow accidently add a linefeed inside a file name like below,
then start cquery by eglot (Emacs LS client), I can see that there is
no file indexed in my index directory under the project root, and every
requests to cquery time out.
[{
"directory": "/path/to/project",
"file": "foo
bar.cpp",
"command": "g++ -c foobar.cpp"
}]
The source code that I use is the most recent https://github.com/cquery-project/cquery/commit/9494c3e63be2d5b7e7740917db3c207f43031c15
It will be nice if cquery could ignore and log such case.
If I use release v20180718, cquery works fine with the exactly same compile_commands.json.