cquery icon indicating copy to clipboard operation
cquery copied to clipboard

Accident linefeed in file names of compile_commands.json hangs cquery

Open whatacold opened this issue 7 years ago • 1 comments
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.

whatacold avatar Nov 21 '18 14:11 whatacold

If I use release v20180718, cquery works fine with the exactly same compile_commands.json.

whatacold avatar Nov 25 '18 02:11 whatacold