STM32CubeIDE 1.6.1 inactive code bug
Not sure where to report this.
I have recently upgraded to OSX Big Sur and also to STM32CubeIDE 1.6.1
Not sure when this issue started, I'm pretty sure it wasn't a problem before, and it does NOT happen on my Eclipse 2020-06 installation.
Restarted, rebooted and reinstalled. No difference.
The issue is that when a file contains inactive code, i.e. marked with #if / #endif, any entering of data BEFORE the #if will "disappear" as long as I type. About 2 seconds after the last keystroke, the entered data will appear. It's not entirely invisible when typing, there are some pixels fluttering at the bottom of where the characters should be.
Entering data AFTER the #endif is no problem.
If there are multiple inactive code blocks in the file, data can only be entered properly after the last one.
This only happens if the code is inactive, with #if 0 as below.
If I make the code active with #if 1, there is no problem.
This happens in ALL my projects in STM32CubeIDE.
And ONLY in files that has any inactive code in them.
Changing the theme (Dark/Classic/Light) makes no difference.
Would be nice to hear if anyone can reproduce this.
And, to get it fixed obviously, it's very annoying.
Edit: I forgot to add, that turning off inactive code highlight in preferences will "fix" the problem.
But that is an emergency workaround. I WANT to see inactive code marked.
//writing here is broken
#if 0
#define TEST 1
#endif
// writing here is ok