User forums > Help

Code::Blocks Linux Stability Issues, Solutions?

<< < (3/4) > >>

Spirrwell:
Well so far it seems that aside from the weird assert that stability has been largely improved by switching to the nightly build.

I will note the version of Code::Blocks I was using before I switched to nightly was wx3.0.2 as well, so I'm sure it doesn't have to do with the the wxWidgets version entirely. And I was a bit wrong about how this assert happens. All you have to do is hold down the left mouse button in the text editor and then press the right mouse button. The text editor must first be in focus as well it seems. Just as an extra note I'm running the same nightly as before which was svn 11176 using wx3.0.3.

Code::Blocks still seems to be unaware of platform specifc #defines like __linux__ so if there is a way to fix that I would appreciate it. It seems to be aware of stuff like __GNUC__ But not the platform ones.

oBFusCATed:

--- Quote from: Spirrwell on September 28, 2017, 06:18:57 am ---All you have to do is hold down the left mouse button in the text editor and then press the right mouse button. The text editor must first be in focus as well it seems. Just as an extra note I'm running the same nightly as before which was svn 11176 using wx3.0.3.

--- End quote ---
I can reproduce it now.


--- Quote from: Spirrwell on September 28, 2017, 06:18:57 am ---Code::Blocks still seems to be unaware of platform specifc #defines like __linux__ so if there is a way to fix that I would appreciate it. It seems to be aware of stuff like __GNUC__ But not the platform ones.

--- End quote ---
To fix it just disable it in the settings. I should make it off by default because this is one of the more frequent questions.

Spirrwell:

--- Quote from: oBFusCATed on September 28, 2017, 09:03:59 am ---To fix it just disable it in the settings. I should make it off by default because this is one of the more frequent questions.

--- End quote ---

Huh? Disable? You mean Settings->Editor->C/C++ Editor settings->Interpret #if, #else, #endif to grey out inactive preprocessor-code?

I wasn't wanting to disable it, I was wanting it to recognize the platform preproccesor. It does work properly for everything else, but it's greying out the platform macros like __linux__ when it shouldn't. I am on Linux, The compiler knows it, I know it, but Code::Blocks apparently doesn't. I don't quite understand why.

Spirrwell:
Apologies for the double post, but now I'm having crashes. Code::Blocks generated a debug report in the form of an XML file, here is a pastebin of it: https://pastebin.com/TBFMefKK

I was able to make it happen twice. I'm not 100% sure what causes it, but I'm certain it's another wxWidgets issue.

I was writing a call to printf(). It was supposed to be printf( "Renderer: %s\n", SDL_GetError() );

It's when I typed the comma and immediately started typing SDL_GetError() that Code::Blocks crashed. I think it had something to do with it trying to show the arguments for the function I was writing, in this case printf() and trying to do code completion at the same time, in this case looking for SDL_GetError(). That's my best guess.

oBFusCATed:

--- Quote from: Spirrwell on September 28, 2017, 11:16:34 am ---I wasn't wanting to disable it, I was wanting it to recognize the platform preproccesor. It does work properly for everything else, but it's greying out the platform macros like __linux__ when it shouldn't. I am on Linux, The compiler knows it, I know it, but Code::Blocks apparently doesn't. I don't quite understand why.

--- End quote ---
Then you need to provide a patch which fixes this limitation of the feature in its current implementation...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version