atom-ide-cpp icon indicating copy to clipboard operation
atom-ide-cpp copied to clipboard

Weird ordering in the autocompletion dropdown

Open j4cobgarby opened this issue 7 years ago • 5 comments

Here's a screenshot of what I mean:

screenshot from 2017-11-26 15-04-30

I don't know if this a problem just with me, but even though the plugin seems to know which option in the dropdown is most likely for me to want (since it's coloured bright white,) it's not at the top of the list.

This isn't so much of a problem in this case, but often the variable I'm looking for is too far down the list to see.

That's mainly a problem when using a library which declares some constants, whose names are hard to remember.

j4cobgarby avatar Nov 26 '17 15:11 j4cobgarby

Yeah, this is currently a major limitation in Clangd, which returns completion items in a somewhat random order. I had hoped the recent addition of automatic sorting in atom-languageclient would resolve this problem, but turns out it doesn't. We'll most likely have to introduce some further additions to atom-languageclient to fully resolve this.

thomasjo avatar Nov 28 '17 13:11 thomasjo

Is this issue being worked on?

j4cobgarby avatar Jan 09 '18 17:01 j4cobgarby

@j4cobgarby Yes, but it requires fairly significant effort unless resolved upstream. Unfortunately I've been too busy to continue the work I started on in December. One upstream issue has been resolved that should make it easier on this end.

thomasjo avatar Jan 11 '18 08:01 thomasjo

this is currently a major limitation in Clangd

should not this be reported upstream?

davydden avatar Mar 17 '18 11:03 davydden

I think this has been fixed upstream. The order I get makes sense. (clangd version 7.0.0) [edit]: Apart from autocompletion taking priority over makros

Cannedfood avatar Nov 18 '18 15:11 Cannedfood