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

Wrong type argument on opening new file #71

Open changephilip opened 5 years ago

changephilip commented 5 years ago

I met a problem like https://github.com/emacs-lsp/lsp-mode/issues/714 after updating lsp-mode with spacemacs develop in emacs25.1(running in Debian9.8 under WSL).

Describe the bug When opening a new file, LSP reports wrong type argument error. Please see the long trace attached at the end.

To Reproduce Open a c++ file with cquery enabled.

Which Language Server did you use cquery

Error callstack

Debugger entered--Lisp error: (wrong-type-argument listp [#<hash-tabl.... cquery--publish-semantic-highlighting(#s(lsp--workspace :parser #s(lsp--parser :headers nil.... lsp--on-notification(#s(lsp--workspace..... lsp--parser-on-message(#s(lsp--parser :headers nil :body nil.....

When disabling sem-highlight , no errors were reported. When downgrading the lsp-mode package back to around half year ago , cquery seemed to work. According to the callstack and the issue mentioned in lsp-mode, the problem may be caused by emacs-cquery.