Code::Blocks Forums

User forums => Help => Topic started by: rickg22 on December 09, 2008, 03:30:26 pm

Title: Compiler autodetection keeps popping up on startup
Post by: rickg22 on December 09, 2008, 03:30:26 pm
After adding a custom compiler (which i called "python checker", I typed in the "py" extension in the advanced options (for "compile single file to object file").

After I closed codeblocks, the next start, I got the autodetection notification for some reason. On compiling a single file,  I got a crash (which later I couldn't reproduce). But after that the compiler autodetection notification keeps popping up.

Help! What's going on and how do I fix it?

(Btw, I submitted the bug here: https://developer.berlios.de/bugs/?func=detailbug&bug_id=14903&group_id=5358 )
Title: Re: Compiler autodetection keeps popping up on startup
Post by: Seronis on December 10, 2008, 06:18:30 am
Had a similar experience a couplemonths ago when i added a customcompiler option for doingcross compiling.  CB crashed while i was working withthat project and after that -every- time i opened CB it would ask me to choose a default compiler.  i deleted the settings folder for CB to fix it.  Would like to know its actual causethough.
Title: Re: Compiler autodetection keeps popping up on startup
Post by: Jenna on December 10, 2008, 08:11:44 am
Check if any of the compilers does not have the base path set.
Title: Re: Compiler autodetection keeps popping up on startup
Post by: thomas on December 10, 2008, 10:04:06 am
It probably crashes before being able to save the settings, or it corrupts the settings. Either of these.
Title: Re: Compiler autodetection keeps popping up on startup
Post by: Jenna on December 10, 2008, 10:40:37 am
It probably crashes before being able to save the settings, or it corrupts the settings. Either of these.

A crash might be the reason not to save, but: if any of the base-paths is empty, the autodetect dialog pops up everytime unless the missing path is not empty.

EDIT:

... and autodetect does not set it for a compiler, where the status is "user-defined".
Title: Re: Compiler autodetection keeps popping up on startup
Post by: pkrcel on December 10, 2008, 12:03:30 pm
I would just like ot confirm that it's as Jens said.

I had the same problem when I defined a custom GGC for ARM compiler for the STM32 projects and since then I had
the dialog window pop up every time I start up Code::Blocks....actually I missed that my user-defined compiler
did not have the base path set.

Setting the base path got rid of the dialog for good.

Thanks alot
Cheers
-Andy
Title: Re: Compiler autodetection keeps popping up on startup
Post by: rickg22 on December 11, 2008, 02:25:15 am
Thanks for the info, guys. In any case, is it possible to correct this behavior (whether it's a bug or not)?

And do you have any idea of why it would crash?