Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Autocomplete sometimes works, sometimes doesn't
Autocomplete sometimes works, sometimes doesn't [message #38677] |
Fri, 04 January 2013 21:24 |
|
CppMod
Messages: 11 Registered: February 2011 Location: Plano, TX
|
Promising Member |
|
|
I'm trying to figure out what I have done to make autocomplete quit working, or only work some of the time.
The problem seems to be intermittent. For a while, it seemed that I would get it back by re-starting TheIDE. Sometimes it would work on some classes, and not on others -- then mysteriously start working on the classes that weren't formerly working.
Now, it has suddenly stopped working at all, and I have no idea what I have done to make it stop -- and nothing I've tried will start it up again.
I've double-checked the spelling, capitalization, etc. Using CTRL+SPACE doesn't appear to do anything. Using CTRL+[,] appears to do something, but presents a very long list (including items not in the class of the current variable). And when I pick something from the list, it sends the cursor to some random place in the file.
Could somebody take a guess at what I might have done to cause this.
UPDATE: I got it to start working again by using CTRL+SHIFT+Y on a variable name. But I am still clueless about what I might have done to make it quit working.
611bb927f8731cdc83c3f1eb09e758ac
|
|
|
Re: Autocomplete sometimes works, sometimes doesn't [message #38679 is a reply to message #38677] |
Sat, 05 January 2013 12:10 |
|
CppMod wrote on Fri, 04 January 2013 21:24 | The problem seems to be intermittent. For a while, it seemed that I would get it back by re-starting TheIDE. Sometimes it would work on some classes, and not on others -- then mysteriously start working on the classes that weren't formerly working.
|
This is typically caused by syntactic errors in the edited file. They some time confuse the parser and it results in autocompletition working only in the part of the files before the parsing failed. Easiest way to fix that is to check and correct the errors if there are some...
Of course, it can be something else as well. The C++ parsing is quite complex task and it's possible there are still some bugs...
Best regards,
Honza
|
|
|
|
Re: Autocomplete sometimes works, sometimes doesn't [message #38681 is a reply to message #38680] |
Sat, 05 January 2013 13:10 |
|
Zbych wrote on Sat, 05 January 2013 06:47 | of the place where parser stopped working .
I hoped that Daniel's clang tests could improve the situation, but it appears that the idea died.
|
At that time it turned out I was doing things wrong and autocompletion is not so fast if windows.h is included. Also I was not able to create precompiled headers because clang had problems with parsing visual c++ extensions. According to clang's mailing list things seem to improve but it's still not in the fully usable point. Then I simply gave up. But what's possible is to use mingw headers instead, but this requires clang on windows to search for mingw files and libs. I was not able to make it work because it required changing of clang source code. But I saw such precompiled version some time ago so maybe I should try it again.
But that's not all. Qt guys went much further than me in supporting clang in their qt creator and they said that all in all clang is too slow to use it as runtime intellisense engine. But I still hope that will change. For now it's better to improve Mirek's parser.
|
|
|
Goto Forum:
Current Time: Fri Nov 01 01:19:38 CET 2024
Total time taken to generate the page: 0.02005 seconds
|