Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Vincent Snijders

Andrea Mauri schreef:

Lazarus saves my project every time I compile it.


Yes, it must do that, otherwise the compiler cannot compile it. The compiler must 
access to the files on disk.
I open an existing project, I modify it, I compile it, 


So all modifications are saved.

I close the 
project without saving it and saying to lazarus, when it asks me, that I 
don't want to save.

The project is saved anyway with the modifications.


What modifications?


Lazarus last svn on winxp.
I'm doing something wrong?


I don't know.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] lazarus saves every time I compile

2007-02-06 Thread George Birbilis
> > I close the 
> > project without saving it and saying to lazarus, when it 
> asks me, that I 
> > don't want to save.
> > The project is saved anyway with the modifications.
> 
> What modifications?

Maybe they mean the project itself, not the source files themselves. That is
add/remove files from the project etc. Maybe lazarus always saves those
modifications?


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2007
Borland "Spirit of Delphi"
3D, QuickTime, QTVR, Java, Delphi,
ActiveX, .NET components, Robotics
http://www.kagi.com/birbilis
http://birbilis.spaces.live.com

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Andrea Mauri

Ok in order to compile it needs to save my project but look at this example:
I open an existing project, a very simple console application:

program project1;
{$mode objfpc}{$H+}
uses
 {$IFDEF UNIX}{$IFDEF UseCThreads}
 cthreads,
 {$ENDIF}{$ENDIF}
 Classes
 { add your units here };

begin
end.  



Then I modify it:

program project1;
{$mode objfpc}{$H+}
uses
 {$IFDEF UNIX}{$IFDEF UseCThreads}
 cthreads,
 {$ENDIF}{$ENDIF}
 Classes
 { add your units here };

begin
*  writeln('Hello world!');*
end.
  
I compile it and I close lazarus. Lazarus doesn't ask me anything. I 
open again my project and I have the second version while I want the 
first one because I never said to lazarus to save my modified project.
If I perform the same steps in Delphi when I close my project Delphi 
asks me if I want to save my project and if I say 'no' when I open my 
project again I have the first version of my project.


My "problem" is, I have a big project, with many units, I make a lot of 
modifications daily, I want to test if everything  works as I want, so I 
compile my project many times in a day.
I don't want that lazarus saves my project every time I compile it and I 
don't want to make a manual backup of my project every time I modify it. 
I want that lazarus saves my project only if I decide to save it and not 
if I compile it.

Is it not possible to have the same behavior as in Delphi?
Thank you,
andrea

   



Vincent Snijders wrote:

Andrea Mauri schreef:

Lazarus saves my project every time I compile it.


Yes, it must do that, otherwise the compiler cannot compile it. The 
compiler must access to the files on disk.
I open an existing project, I modify it, I compile it, 


So all modifications are saved.

I close the project without saving it and saying to lazarus, when it 
asks me, that I don't want to save.

The project is saved anyway with the modifications.


What modifications?


Lazarus last svn on winxp.
I'm doing something wrong?


I don't know.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



--
Andrea Mauri
PhD student - Chemical Sciences
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca 
P.zza della Scienza, 1

20126 Milano - Italy

Tel: ++39 02 64482801
mailto:[EMAIL PROTECTED]



Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Al Boldi
Andrea Mauri wrote:
> My "problem" is, I have a big project, with many units, I make a lot of
> modifications daily, I want to test if everything  works as I want, so I
> compile my project many times in a day.
> I don't want that lazarus saves my project every time I compile it and I
> don't want to make a manual backup of my project every time I modify it.
> I want that lazarus saves my project only if I decide to save it and not
> if I compile it.

Good point.

I am working around this problem by using versions.
(see EnvironmentOptions:Backup)

> Is it not possible to have the same behavior as in Delphi?

It probably is possible.  We just have to figure out how to implement it.

Any ideas?


Thanks!

--
Al

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Vincent Snijders

Andrea Mauri schreef:

Ok in order to compile it needs to save my project but look at this example:
I open an existing project, a very simple console application:

program project1;
{$mode objfpc}{$H+}
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { add your units here };

begin
end.  



Then I modify it:

program project1;
{$mode objfpc}{$H+}
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { add your units here };

begin
*  writeln('Hello world!');*
end.
   
I compile it and I close lazarus. Lazarus doesn't ask me anything. I 
open again my project and I have the second version while I want the 
first one because I never said to lazarus to save my modified project.


By giving the order to compile, you implicitly give the order to save.

If I perform the same steps in Delphi when I close my project Delphi 
asks me if I want to save my project and if I say 'no' when I open my 
project again I have the first version of my project.


Delphi can compile from files kept in memory, Lazarus cannot.



My "problem" is, I have a big project, with many units, I make a lot of 
modifications daily, I want to test if everything  works as I want, so I 
compile my project many times in a day.
I don't want that lazarus saves my project every time I compile it and I 
don't want to make a manual backup of my project every time I modify it. 
I want that lazarus saves my project only if I decide to save it and not 
if I compile it.


That is not possible. If you don't save your changes, your unchanged file will be 
compiled.



Is it not possible to have the same behavior as in Delphi?


At this moment, no.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Andrea Mauri
ok, thank you for the explanation. I will consider it during my project 
developing. but it is not possible to use in some way the backup files 
in order to restore the saved files?

thanks,
andrea

Vincent Snijders wrote:

Andrea Mauri schreef:
Ok in order to compile it needs to save my project but look at this 
example:

I open an existing project, a very simple console application:

program project1;
{$mode objfpc}{$H+}
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { add your units here };

begin
end. 


Then I modify it:

program project1;
{$mode objfpc}{$H+}
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { add your units here };

begin
*  writeln('Hello world!');*
end.
   I compile it and I close lazarus. Lazarus doesn't ask me 
anything. I open again my project and I have the second version while 
I want the first one because I never said to lazarus to save my 
modified project.


By giving the order to compile, you implicitly give the order to save.

If I perform the same steps in Delphi when I close my project Delphi 
asks me if I want to save my project and if I say 'no' when I open my 
project again I have the first version of my project.


Delphi can compile from files kept in memory, Lazarus cannot.



My "problem" is, I have a big project, with many units, I make a lot 
of modifications daily, I want to test if everything  works as I 
want, so I compile my project many times in a day.
I don't want that lazarus saves my project every time I compile it 
and I don't want to make a manual backup of my project every time I 
modify it. I want that lazarus saves my project only if I decide to 
save it and not if I compile it.


That is not possible. If you don't save your changes, your unchanged 
file will be compiled.



Is it not possible to have the same behavior as in Delphi?


At this moment, no.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



--
Andrea Mauri
PhD student - Chemical Sciences
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca 
P.zza della Scienza, 1

20126 Milano - Italy

Tel: ++39 02 64482801
mailto:[EMAIL PROTECTED]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Felipe Monteiro de Carvalho

On 2/6/07, Andrea Mauri <[EMAIL PROTECTED]> wrote:

ok, thank you for the explanation. I will consider it during my project
developing. but it is not possible to use in some way the backup files
in order to restore the saved files?


That doesn't seam a nice way to do things.

Maybe you could write a IDE plugin which adds another compile button
that works like you want.

--
Felipe Monteiro de Carvalho

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Pieter Valentijn
I would sugest a extra folder with the checked source and sync them
manualy with a program like  winmerge http://winmerge.org/ or simular
tool to save your files that you changed. (or if cource revert your
changes in your working folder). 

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Felipe Monteiro de Carvalho
[mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 6 februari 2007 17:36
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] lazarus saves every time I compile


On 2/6/07, Andrea Mauri <[EMAIL PROTECTED]> wrote:
> ok, thank you for the explanation. I will consider it during my 
> project developing. but it is not possible to use in some way the 
> backup files in order to restore the saved files?

That doesn't seam a nice way to do things.

Maybe you could write a IDE plugin which adds another compile button
that works like you want.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Mattias Gaertner
On Tue, 6 Feb 2007 17:06:08 +0300
Al Boldi <[EMAIL PROTECTED]> wrote:

> Andrea Mauri wrote:
> > My "problem" is, I have a big project, with many units, I make a
> > lot of modifications daily, I want to test if everything  works as
> > I want, so I compile my project many times in a day.
> > I don't want that lazarus saves my project every time I compile it
> > and I don't want to make a manual backup of my project every time I
> > modify it. I want that lazarus saves my project only if I decide to
> > save it and not if I compile it.
> 
> Good point.

?
In almost all cases I want to keep my changes. Otherwise I use Undo.


> I am working around this problem by using versions.
> (see EnvironmentOptions:Backup)

Or even better: use a version control system like svn or cvs.

 
> > Is it not possible to have the same behavior as in Delphi?
> 
> It probably is possible.  We just have to figure out how to implement
> it.
> 
> Any ideas?

You would have to put everything into temporary directories. Depending
on how 'real' it should work, you have to emulate more things.
I doubt that this effort is worth the gain.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Mattias Gaertner
On Tue, 6 Feb 2007 17:36:16 +0100
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:

> On 2/6/07, Andrea Mauri <[EMAIL PROTECTED]> wrote:
> > ok, thank you for the explanation. I will consider it during my
> > project developing. but it is not possible to use in some way the
> > backup files in order to restore the saved files?
> 
> That doesn't seam a nice way to do things.
> 
> Maybe you could write a IDE plugin which adds another compile button
> that works like you want.

Or implement a svn plugin.

Mattias
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-07 Thread Andrea Mauri

thank you to everyone.
actually I think that I am not able yet to work with the IDE 
implementing something.
But I hope that I will acquire some skills in order to help the lazarus 
development team in some way.

andrea

Mattias Gaertner wrote:

On Tue, 6 Feb 2007 17:36:16 +0100
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:

  

On 2/6/07, Andrea Mauri <[EMAIL PROTECTED]> wrote:


ok, thank you for the explanation. I will consider it during my
project developing. but it is not possible to use in some way the
backup files in order to restore the saved files?
  

That doesn't seam a nice way to do things.

Maybe you could write a IDE plugin which adds another compile button
that works like you want.



Or implement a svn plugin.

Mattias
 


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


--
Andrea Mauri
PhD student - Chemical Sciences
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca 
P.zza della Scienza, 1

20126 Milano - Italy

Tel: ++39 02 64482801
mailto:[EMAIL PROTECTED]



Re: [lazarus] lazarus saves every time I compile

2007-02-07 Thread Darius Blaszijk

> ok, thank you for the explanation. I will consider it during my
> project developing. but it is not possible to use in some way the
> backup files in order to restore the saved files?

That doesn't seam a nice way to do things.

Maybe you could write a IDE plugin which adds another compile button
that works like you want.


Or implement a svn plugin.


What do you have in mind then?

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-07 Thread Mattias Gaertner
On Wed, 7 Feb 2007 12:24:09 +0100
"Darius Blaszijk" <[EMAIL PROTECTED]> wrote:

> >> > ok, thank you for the explanation. I will consider it during my
> >> > project developing. but it is not possible to use in some way the
> >> > backup files in order to restore the saved files?
> >> 
> >> That doesn't seam a nice way to do things.
> >> 
> >> Maybe you could write a IDE plugin which adds another compile
> >> button that works like you want.
> > 
> > Or implement a svn plugin.
> 
> What do you have in mind then?

With svn you don't need backup files and can restore any version you
like. With an svn plugin more fpc/laz programmers would use a version
control system.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-07 Thread Darius Blaszijk

>> > ok, thank you for the explanation. I will consider it during my
>> > project developing. but it is not possible to use in some way the
>> > backup files in order to restore the saved files?
>>
>> That doesn't seam a nice way to do things.
>>
>> Maybe you could write a IDE plugin which adds another compile
>> button that works like you want.
>
> Or implement a svn plugin.

What do you have in mind then?


With svn you don't need backup files and can restore any version you
like. With an svn plugin more fpc/laz programmers would use a version
control system.


So in effect you would add a "revert to" menuitem and perhaps a "commit" 
menuitem?


Darius 


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] lazarus saves every time I compile

2007-02-07 Thread Felipe Monteiro de Carvalho

On 2/7/07, Darius Blaszijk <[EMAIL PROTECTED]> wrote:

So in effect you would add a "revert to" menuitem and perhaps a "commit"
menuitem?


Those two buttons are enougth for the particular problem present on this thread.

But likely one could add a new Subversion (or CVS) menu entry, and add
many possible commands including diff, update, blame, ...

--
Felipe Monteiro de Carvalho

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives