cquery icon indicating copy to clipboard operation
cquery copied to clipboard

Scary error messages in the log

Open nsabovic opened this issue 6 years ago • 0 comments

I'm trying to figure out why the standard VSCode C++ plugin scans my compile_commands.json-based project just fine but cquery shows undefined macros. I am using cquery HEAD installed with Homebrew on macOS 10.14.2.

Both the VSCode plugin and /usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery --check spit out these messages in the log:

(   0.272s) [querydb      ]        project.cc:69    | Failed to normalize cc
(   0.282s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang --version": No such file or directory (2)
(   0.290s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang -E -x c - -v": No such file or directory (2)
(   0.369s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang -E -x c -dM -": No such file or directory (2)
(   0.531s) [querydb      ]        project.cc:69    | Failed to normalize c++
(   0.539s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang -E -x c++ - -v": No such file or directory (2)
(   0.579s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang -E -x c++ -dM -": No such file or directory (2)
(   0.690s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang -E -x objective-c - -v": No such file or directory (2)
(   0.730s) [querydb      ]       platform.cc:109   | Error starting "/usr/local/Cellar/cquery/HEAD-70c755b/bin/cquery-clang -E -x objective-c -dM -": No such file or directory (2)

What is the normalization message? Should cquery built with -DSYSTEM_CLANG=ON look for cquery-clang?

nsabovic avatar Jan 18 '19 21:01 nsabovic