User forums > Help
Code completion doesn't show up for some wxWidgets
Dibo:
Hi,
I'm newbie in CodeBlocks and wxWidgets. Started writting some app and noticed that some wxWidgets doesn't have code completion, just nothing popup after -> or forced by CTRL+SPACE (sometimes I see hint that parsers is still working). So far these are problematic classes: wxListCtrl and wxSearchCtrl. I have code blocks 20.03+svn13046-0.3build2 (standard installation from Linux Mint repo). Tried everything found by google like disabling SmartSense (this result with hint that result is too big and start typing first letter but nothing happens). Also in C++ parser changed one parser per workspace, didn't help neither. Found also similar issue 10 years ago:
https://forums.codeblocks.org/index.php?topic=20175.0
Notice that I have wxWidgets installation in custom folder but CodeBlocks compiler, linker and search directory is configured fine because everything is compiling and debugging works too. Also, code completion for these classes in Visual Studio Code works fine
stahta01:
See if the Code::Blocks (CB) you have has the clang based code completion (CC) plugin and if yes maybe someone can tell you what else to install to get it to work. The old CC is not very good, so someone created the new clang LSP based one. The new CC is still lacking a few features of the old CC.
Tim S.
Dibo:
In plugins manager I have this one:
Code completion 1.0
/usr/lib/codeblocks/plugins/libcodecompletion.so
This plugin provides a symbols browser for your projects and code-completion inside the editor.
Pecan:
Can you give us some examples or a 1,2,3 type do this then that kind of instructions so we can have something to work with that causes the problem?
Thanks
Dibo:
I have prepared and attached simple demo. Created it from wxwidgets template project. You must change compiler settings, linker settings and search directories in debug mode to your own because I have wxwidgets installation in custom home directory. Problematic variables are: mListCtrlSources and thisNOTwork (I already started they with -> )
Navigation
[0] Message Index
[#] Next page
Go to full version