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

order of completion candidates #38

Closed Dickby closed 6 years ago

Dickby commented 6 years ago

Is it just me or is the order of the completion candidates "upside down"? the best matching candidates are always last in the candidate list. I use company-lsp, perhaps this is an problem of that package? Thanks

jacobdufault commented 6 years ago

It's possible cquery is ordering completions incorrectly, but I think it is more likely a bug in your config since vscode/etc work correctly. Try commenting out these lines

https://github.com/cquery-project/cquery/blob/master/src/messages/text_document_completion.cc#L204-L206

Dickby commented 6 years ago

This changes nothing. i assume than it's a problem with my configuration!?

jacobdufault commented 6 years ago

Yes, most likely.

Dickby commented 6 years ago

It actually is my configuration, thanks for the information and for this excellent package.

jacobdufault commented 6 years ago

:), out of curiosity may I ask what was wrong?

Dickby commented 6 years ago

Because i had trouble with company-lsp from the beginning i tried to set company-transformers to nil, as i saw in cquery-project/cquery#434 . By removing that and using company-statistics i finally have a setup that works for me. Thanks again.