The font used in Code Completion popups is bigger than expected when using Direct Write technology, so part of the text in the ListBox is ellipsized. Discussion started in the forum:
http://forums.codeblocks.org/index.php/topic,23295.msg158707.html#msg158707
and fix suggestions by New Pagodi:
http://forums.codeblocks.org/index.php/topic,23295.msg158730.html#msg158730
This patch fixes the issue while wxWidgets' devs fix wxSTC. It follows the first of New Pagodi's suggestions.
The truncation makes Code Completion hard to use with DirectWrite, so I think the patch is very helpful.
I have tested it. It built fine, however when I open it and I go to settings->Editor/Environment and I hit 'ok' or 'cancel' (I don't even have to make a change) CB will crash and close, don't know why, maybe I did something wrong because I had a problem following the patch file.
I'm reluctant to introduce patches on our own. I prefer if the code in wxSTC is committed first and then I just sync it. If you're really interested in this being fixed please try to prepare a patch for wxSTC and work with New Pagodi and other wx devs on merging it. Then I can easily back port it. There are the popup fixes I have in the pipeline to backport.
@Miguel What happened with this issue? Has there being a fix in the wx-master?
wx-master pulled 19/02/2020 still fails, screen capture is attached
I have just created a ticket in wxTrac
EDIT: ticket removed because C::B uses its own version of STC
Last edit: Miguel Gimenez 2020-02-24
This problem (and others closely related to DirectWrite) have just been fixed in wxSTC:
Merge branch 'stc-tech-fix'
Duplicate in [#1016]
Related
Tickets:
#1016I think i hit this problem with the clang cc plugin...
@wh11204 do you have any updates on this?
Currently I am using my patch in this thread. I will review this issue tomorrow.
Last edit: Miguel Gimenez 2022-06-01
I have updated the patch slightly, can you check it?
Thank you.
Fixed in [r12826].
Related
Commit: [r12826]
Yes this fixed the problem. Thank you!