Menu

#18 SwitchToProjectCompilerSet destroys the settings!

None
fixed
None
2014-12-03
2012-07-02
sfinexer
No
procedure TCompiler.Compile(const SingleFile: AnsiString);
...
begin
    fSingleFile:=SingleFile<>'';
    fRunAfterCompileFinish:= FALSE;

    if Assigned(fDevRun) then begin
        MessageDlg(Lang[ID_MSG_ALREADYCOMP], mtInformation, [mbOK], 0);
        Exit;
    end;
    SwitchToProjectCompilerSet; 

SwitchToProjectCompilerSet destroys the settings!

Discussion

  • orwelldevcpp

    orwelldevcpp - 2012-08-07
    • summary: TSwitchToProjectCompilerSet destroys the settings! --> SwitchToProjectCompilerSet destroys the settings!
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,22 +1,16 @@
    +
    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     procedure TCompiler.Compile(const SingleFile: AnsiString);
    -resourcestring
    - cCmdLine = '%s "%s" -o "%s" %s %s %s';
    - cMakeLine = '%s -f "%s" all';
    - cSingleFileMakeLine = '%s -f "%s" %s';
    - cMake = ' make';
    - cDots = '...';
    -var
    - cmdline : AnsiString;
    - s : AnsiString;
    - ofile: AnsiString;
    +...
     begin
    -   fSingleFile:=SingleFile<>'';
    -   fRunAfterCompileFinish:= FALSE;
    +    fSingleFile:=SingleFile<>'';
    +    fRunAfterCompileFinish:= FALSE;
    
    -   if Assigned(fDevRun) then begin
    -       MessageDlg(Lang[ID_MSG_ALREADYCOMP], mtInformation, [mbOK], 0);
    -       Exit;
    -   end;
    -   SwitchToProjectCompilerSet; 
    +    if Assigned(fDevRun) then begin
    +        MessageDlg(Lang[ID_MSG_ALREADYCOMP], mtInformation, [mbOK], 0);
    +        Exit;
    +    end;
    +    SwitchToProjectCompilerSet; 
    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    -TSwitchToProjectCompilerSet destroys the settings!
    +SwitchToProjectCompilerSet destroys the settings!
    
    • milestone: -->
     
  • orwelldevcpp

    orwelldevcpp - 2012-08-07

    Can you be more precise about what it destroys?

     
  • orwelldevcpp

    orwelldevcpp - 2012-08-20

    Can you confirm this bug is still present when using Dev-C++ 5.3 RC2?

     
  • orwelldevcpp

    orwelldevcpp - 2012-08-30

    Can you recheck this on RC5?

     
  • sfinexer

    sfinexer - 2012-09-14

    No fixed!
    at compilation the makefile is generated twice.

     
    • sfinexer

      sfinexer - 2012-09-14

      in RC6.

       
  • orwelldevcpp

    orwelldevcpp - 2012-09-16

    Just to inform you: still working on this...

     
  • orwelldevcpp

    orwelldevcpp - 2012-09-23

    Should be fixed in RC9.

     
  • sfinexer

    sfinexer - 2012-09-24

    RC10:
    Dev-C + + compilation, if you open the file makefile, he twice asked about the updated file is open or not.

     
  • orwelldevcpp

    orwelldevcpp - 2013-09-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     procedure TCompiler.Compile(const SingleFile: AnsiString);
     ...
    
    • status: open --> fixed
    • assigned_to: orwelldevcpp
     
  • orwelldevcpp

    orwelldevcpp - 2013-09-29

    Redesigned project compiler set switching. SwitchToProjectCompilerSet has been removed.

     

Log in to post a comment.