cquery-project / emacs-cquery

Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
116 stars 14 forks source link

Symbol highlighting + flycheck error #37

Closed innerout closed 6 years ago

innerout commented 6 years ago

This error probably should be reported in the cquery repo but i am not sure. Suppose we have for example the code below to explain the error.

int main(void){
    int hash;
    hash = 1;
    return 0;
}

If i rename the hash variable to something else like hash_value and fix the hash = 1 line to match the new name sometimes it will not find that i have typed the correct name in the buffer and report unknown variable hash_valu while i have typed the variable correctly.(Wrong typing the name of the variable in the last sentence is intentional its the way cquery reports usually the wrong name) In addition to that symbol highlighting stops working after that in the buffer and flycheck starts reporting errors in irrelevant places that have no errors. Usually the error occurs after renaming a variable. The error happens randomly after coding some time in a session. I have Arch linux with Emacs 25.3.1 and cquery package from aur.

jacobdufault commented 6 years ago

Can you refile on the main cquery repro?