Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

cquery attempts to create .cquery_cached_index/ in root folder, causing cquery to crash #862

Open
DougBeney opened this issue Jan 24, 2019 · 0 comments

Comments

@DougBeney
Copy link

DougBeney commented Jan 24, 2019

Operating System: Linux Mint 19.1.
Editor: Emacs with lsp-mode and emacs-cquery
compile_commands.json: pastebin

This happens in my project, Vibrato Notes. I'll run my gen_compile_commands.sh script (which uses Bear) in order to get a compile_commands.json.

Then in Emacs, I'll navigate to a C++ file and it crashes instantly with the below error.

Also, while building and installing cquery, I used the prefix /usr/local

Error:

(   0.000s) [querydb      ]        project.cc:69    | Failed to normalize /home/doug/Code/qt/vibratonotes-desktop/build
Stack trace:
5       0x5567eb4ed7ca _start + 42
4       0x7f87cc7f0b97 __libc_start_main + 231
3       0x5567eb4e0a82 main + 3618
2       0x5567eb566363 LanguageServerMain(std::string const&) + 115
1       0x5567eb5653b1 RunQueryDbThread(std::string const&) + 1441
0       0x5567eb69ad2a /usr/local/bin/cquery(+0x22cd2a) [0x5567eb69ad2a]
(   0.000s) [querydb      ]       platform.cc:86    | Failed making directory for /usr/include/.cquery_cached_index/@usr@include even after creating parent directories

Process cquery stderr<1> finished
@DougBeney DougBeney changed the title cquery attempts to create .cquery_cached_index/ in root folder, cauing cquery to crash cquery attempts to create .cquery_cached_index/ in root folder, causing cquery to crash Jan 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant