Author Topic: Compiler autodetection keeps popping up on startup  (Read 6928 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Compiler autodetection keeps popping up on startup
« 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 )

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: Compiler autodetection keeps popping up on startup
« Reply #1 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Compiler autodetection keeps popping up on startup
« Reply #2 on: December 10, 2008, 08:11:44 am »
Check if any of the compilers does not have the base path set.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiler autodetection keeps popping up on startup
« Reply #3 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Compiler autodetection keeps popping up on startup
« Reply #4 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".
« Last Edit: December 10, 2008, 10:42:33 am by jens »

Offline pkrcel

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Compiler autodetection keeps popping up on startup
« Reply #5 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

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Compiler autodetection keeps popping up on startup
« Reply #6 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?