Today I encountered an issue I never had before. Normally my program compiles within two seconds, then I made a small modification to the Class hierarchy in a bottom unit, and when I now try to build, the compiler keeps hanging in an endless loop, after having compiled all except the topmost unit. It says "Compiling - press ESC to cancel", but does not react to ESC nor anything else. Processor load is at 60% permanently.
I reverted the code change and it compiles, I can live with that, that is not the issue. But this should be reported, only, I cannot possibly submit the entire program for diagnosis.
Have tried many other compiler settings, target processors etc. but to no avail. Tried changing from objfpc to delphi mode; well, the compiler then does not hang but throws a lot of error messages because my code is not delphi compatible. Have deleted the old .o and .ppu files, and the fp.ini, fp.dsk, fp.cfg, but nothing helps. I shuffled the order of units in the "uses" section but no sucess either.
How can I narrow down such a problem ? Each time I try a new compilation with modified settings or whatever, I'll have to kill the IDE and start a new command processor. Getting tired of that.
I am using the textmode IDE with FPC3.0.2 and win32. Don't think anything is wrong with my installation, as only this specific code change causes the problem. Will try FPC 3.0.4 next but am not too optimistic.