Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-03

Run two build simultaneously

16 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

is it possible to run two build of Lazarus simultaneously?

I mean that I would have two directory both with a different build, e.g.:

C:\Develop\lazarus-latest\
C:\Develop\lazarus-stable\

I have two nasty bugs with latest release:
http://mantis.freepascal.org/view.php?id=15971
http://bugs.freepascal.org/view.php?id=15972

so to make it working I need to run build 23932, but I want to stay updated to know when bugs will be fixed. More generally I would have a stable installation and a latest one.
But if I try to have two installations both will point everytime (in options->lazarus directory) the same path.

Thanks,
Kjow

Reply by email

Paul van Helden
to Kjow

I create a config directory for each build and start them like this:

c:\lazarus-latest\lazarus.exe --primary-config-path=c:\lazarus-latest\config

c:\lazarus-stable\lazarus.exe --primary-config-path=c:\lazarus-stable\config

Regards,

Paul.

Kjow wrote 29 lines
Hi all, is it possible to run two build of Lazarus simultaneously? I mean that I would have two directory both with a different build, e.g.: C:\Develop\lazarus-latest\ C:\Develop\lazarus-stable\ I have two nasty bugs with latest release: http://mantis.freepascal.org/view.php?id=15971 http://bugs.freepascal.org/view.php?id=15972 so to make it working I need to run build 23932, but I want to stay updated to know when bugs will be fixed. More generally I would have a stable installation and a latest one. But if I try to have two installations both will point everytime (in options->lazarus directory) the same path. Thanks, Kjow -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Kjow
to Paul van Helden

2010/3/13 Paul van Helden :

Show quoted text 9 lines
I create a config directory for each build and start them like this: c:\lazarus-latest\lazarus.exe --primary-config-path=c:\lazarus-latest\config c:\lazarus-stable\lazarus.exe --primary-config-path=c:\lazarus-stable\config Regards, Paul.

What do I need to put on each config dir? There aren't config directory and I don't know if/where is a file (or just in regedit).

Thanks,
Kjow

Reply by email

Bart
to Kjow

Hi,

You can simply omit the \config part:

c:\lazarus-latest\lazarus.exe --pcp=c:\lazarus-latest c:\lazarus-stable\lazarus.exe --pcp=c:\lazarus-stable

(You must have write access to that directories of course)

What do I need to put on each config dir? There aren't config directory and I don't know if/where is a file (or just in regedit).

Lazarus will put the config files for you there.
Since it will not find it at firts run, it will create al necessary file for you.
You can then (in Environment -> Options) fill in the correct paths to compiler etc. for each build you use.
(Alternatively you can initialy copy all files from c:\windows\apllication data\lazarus (or the XP/Vista/7 equivalent of that location) to noth c:\lazarus-stable and c:\lazarus-latest

Bart

Reply by email

Zaher Dirkey
to Bart
Bart wrote 22 lines
Hi, You can simply omit the \config part: c:\lazarus-latest\lazarus.exe --pcp=c:\lazarus-latest c:\lazarus-stable\lazarus.exe --pcp=c:\lazarus-stable (You must have write access to that directories of course) > What do I need to put on each config dir? There aren't config > directory and I don't know if/where is a file (or just in regedit). Lazarus will put the config files for you there. Since it will not find it at firts run, it will create al necessary file for you. You can then (in Environment -> Options) fill in the correct paths to compiler etc. for each build you use. (Alternatively you can initialy copy all files from c:\windows\apllication data\lazarus (or the XP/Vista/7 equivalent of that location) to noth c:\lazarus-stable and c:\lazarus-latest Bart

I made patch to include/win/lazbaseconf.inc

It take the config path from file "lazarus.cfg" inside Lazarus folder "lazarus.cfg" file content like that

ConfigDir=w:\workspace\lazarus

if the file "lazarus.cfg" not found (or the key "ConfigDir" not exists) it leave the original path that already exists by Lazarus.

Thanks

Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100313/8523a828/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: config.patch Type: application/octet-stream Size: 1728 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100313/8523a828/attachment.obj>

Reply by email

Paul van Helden
to Kjow: 2010/3/13 Paul van Helden : What do I need to put on each config dir? There aren't config…
Kjow wrote 7 lines
Paul. What do I need to put on each config dir? There aren't config directory and I don't know if/where is a file (or just in regedit).

Start with empty directories, Lazarus will create all the necessary files. If you must start with your existing settings you can copy all the files in C:\Users\Kjow\AppData\Local\lazarus to your new config directories.

Reply by email

andtag
to Paul van Helden

Hello,
I have a DB with 400 records and clicking the next button i can see the next record. If i want to reach record 200 i must do 200 clicks. I want to have a continue action pressing the dbnavigator button, for example, when i click Next button, i want the records go forward until i leave the button. Is possible to do?
Any solution is welcome for do what i need, please... maybe with normal button: exists a function for know if a button is pressed down, not only a click?

Andy.

Reply by email

Howard Page-Clark
to andtag
andtag wrote 6 lines
Hello, I have a DB with 400 records and clicking the next button i can see the next record. If i want to reach record 200 i must do 200 clicks. I want to have a continue action pressing the dbnavigator button, for example, when i click Next button, i want the records go forward until i leave the button. Is possible to do?

Is something like this what you are looking for?

Add a boolean FButtonHeldDown as a private variable of TForm1, and a normal button, Button1. Add this code to OnClick and OnExit events of Button1.

procedure TForm1.Button1Click(Sender: TObject);
var sequence: integer;
begin
   FButtonHeldDown := true;
   sequence := 0;
   while FButtonHeldDown and not dbf1.EOF do
   begin
    dbf1.Next;
    inc(sequence);
    label1.Caption := Format('cursor moved forward %d times',[sequence]);
    Application.ProcessMessages;
    Sleep(100);
   end;
end;
procedure TForm1.Button1Exit(Sender: TObject);
begin
   FButtonHeldDown := false;
end;
exists a function for know if a button is pressed down, not only a click?

TButton.OnMouseDown?

Howard

Reply by email

andtag
to Howard Page-Clark

Yes, it works but Button1Exit is not the best because it control the focus and when i click on button the focus remain on the button. I will try to change focus or maybe TButton.OnMouseDown and the timer event... Thank you for the idea, you woke up my brain ;)

Andy.

Howard Page-Clark ha scritto:

Show quoted text 46 lines
On 13/3/10 3:42, andtag wrote: > Hello, > I have a DB with 400 records and clicking the next button i can see the > next record. If i want to reach record 200 i must do 200 clicks. > I want to have a continue action pressing the dbnavigator button, for > example, when i click Next button, i want the records go forward until i > leave the button. Is possible to do? Is something like this what you are looking for? Add a boolean FButtonHeldDown as a private variable of TForm1, and a normal button, Button1. Add this code to OnClick and OnExit events of Button1. procedure TForm1.Button1Click(Sender: TObject); var sequence: integer; begin FButtonHeldDown := true; sequence := 0; while FButtonHeldDown and not dbf1.EOF do begin dbf1.Next; inc(sequence); label1.Caption := Format('cursor moved forward %d times',[sequence]); Application.ProcessMessages; Sleep(100); end; end; procedure TForm1.Button1Exit(Sender: TObject); begin FButtonHeldDown := false; end; > exists a function for know if a button is pressed down, not only > a click? TButton.OnMouseDown? Howard -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100313/ea64a162/attachment-0001.html>

Reply by email

Michael Schnell
to Paul van Helden: I create a config directory for each build and start them like this:…
Paul van Helden wrote 8 lines
I create a config directory for each build and start them like this: c:\lazarus-latest\lazarus.exe --primary-config-path=c:\lazarus-latest\config c:\lazarus-stable\lazarus.exe --primary-config-path=c:\lazarus-stable\config

This obviously is Windows.

Does the Linux version support the "--primary-config-path=" parameter as well, or should something else be done to achieve the same goal ?

Thanks,
-Michael

Reply by email

Vincent Snijders
to Kjow: is it possible to run two build of Lazarus simultaneously? I mean that I would have two…

2010/3/13 Kjow :

Show quoted text 18 lines
Hi all, is it possible to run two build of Lazarus simultaneously? I mean that I would have two directory both with a different build, e.g.: C:\Develop\lazarus-latest\ C:\Develop\lazarus-stable\ I have two nasty bugs with latest release: http://mantis.freepascal.org/view.php?id=15971 http://bugs.freepascal.org/view.php?id=15972 so to make it working I need to run build 23932, but I want to stay updated to know when bugs will be fixed. More generally I would have a stable installation and a latest one. But if I try to have two installations both will point everytime (in options->lazarus directory) the same path.

What I usually do in such cases (assume c:\lazarus contains my lazarus sources).

svn up -r23932
make clean bigide
copy lazarus.exe lazarus.good.exe
svn up
lazarus.good.exe
Then I have a stable lazarus executable, but can test the latest source.

Vincent

Reply by email

Kjow
to Vincent Snijders

2010/3/15 Vincent Snijders :

Show quoted text 10 lines
What I usually do in such cases (assume c:\lazarus contains my lazarus sources). svn up -r23932 make clean bigide copy lazarus.exe lazarus.good.exe svn up lazarus.good.exe Then I have a stable lazarus executable, but can test the latest source. Vincent

Cause this bug (http://mantis.freepascal.org/view.php?id=15971) the same config cause to resize everytime the IDE when using stable after the latest svn...

Kjow

Reply by email

Vincent Snijders
to Kjow
Kjow wrote 15 lines
2010/3/15 Vincent Snijders : > What I usually do in such cases (assume c:\lazarus contains my lazarus sources). > > svn up -r23932 > make clean bigide > copy lazarus.exe lazarus.good.exe > svn up > lazarus.good.exe > Then I have a stable lazarus executable, but can test the latest source. > > Vincent Cause this bug (http://mantis.freepascal.org/view.php?id=15971) the same config cause to resize everytime the IDE when using stable after the latest svn...

So, I keep the lazarus.good.exe running and start lazarus.new.exe or lazarus.exe with the debugger in lazarus.good.exe. After I close the new lazarus.exe, I can close lazarus.good.exe, so correct settings are stored.

Vincent

Reply by email