I just encountered a nasty problem:
When I have multiple Lazarus installations (trunk, branches,
snapshot...), the common Lazarus configuration is used by default (when
no --pcp is specified). Actually I wondered about many error messages on
an IDE rebuild, until I noticed that the (default) c
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
I just encountered a nasty problem:
When I have multiple Lazarus installations (trunk, branches, snapshot...),
the common Lazarus configuration is used by default (when no --pcp is
specified). Actually I wondered about many error messages on
2011/3/30 Hans-Peter Diettrich :
> Can somebody please clarify the intended procedure for configuring multiple
> parallel Lazarus installations?
>
Always specify the primary config directory, if you have multiple
parallel Lazarus installations. You may add the --pcp parameter in the
shortcut you u
On Wednesday, March 30, 2011 11:19 michael.vancann...@wisa.be wrote:
> Well, definitely not on Unix.
> On unix, the EXE directory should never contain config files.
That depends. I think I'm not the only Lazarus user who has Lazarus
"installed" in his home directory; i.e. without "make inst
On 30/03/2011 10:56, Andreas Schneider wrote:
On Wednesday, March 30, 2011 11:19 michael.vancann...@wisa.be wrote:
Well, definitely not on Unix.
On unix, the EXE directory should never contain config files.
That depends. I think I'm not the only Lazarus user who has Lazarus
"installed" in
Andreas Schneider wrote:
On Wednesday, March 30, 2011 11:19 michael.vancann...@wisa.be wrote:
Well, definitely not on Unix.
On unix, the EXE directory should never contain config files.
That depends. I think I'm not the only Lazarus user who has Lazarus
"installed" in his home directory
On 30/03/2011 12:02, Martin wrote:
The problem is many users install a 2nd copy, but do not know
True.
My idea (but I havent got the time) would be:
- lazarus remembers it's own exe-path in the enviroments-options.xml
- if the exe path changes, lazarus gives a warning (can be switched of
On Wed, Mar 30, 2011 at 11:37:06AM +0200, Vincent Snijders wrote:
> > Can somebody please clarify the intended procedure for configuring multiple
> > parallel Lazarus installations?
> >
>
> Always specify the primary config directory, if you have multiple
> parallel Lazarus installations. You may
On Wed, Mar 30, 2011 at 12:00 PM, Hans-Peter Diettrich wrote:
> I just encountered a nasty problem:
>
> When I have multiple Lazarus installations (trunk, branches, snapshot...),
> the common Lazarus configuration is used by default (when no --pcp is
> specified). Actually I wondered about many e
Zaher Dirkey hat am 30. März 2011 um 14:26 geschrieben:
>
>
>
> On Wed, Mar 30, 2011 at 12:00 PM, Hans-Peter Diettrich [mailto:drdiettri...@aol.com] >wrote:
>
> > I just encountered a nasty problem:
> >
> > When I have multiple Lazarus installations (trunk, branches, snapshot...),
>
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE)
directory first, and only into the common directory when no config can
be found there.
Well, definitely not on Unix. On unix, the EXE directory should never
contain config files.
I dare to
On 30/03/2011 12:16, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE)
directory first, and only into the common directory when no config
can be found there.
Well, definitely not on Unix. On unix, the EXE director
On 30/03/2011 14:23, Mattias Gaertner wrote:
Zaher Dirkey hat am 30. März 2011 um 14:26
geschrieben:
On Wed, Mar 30, 2011 at 12:00 PM, Hans-Peter Diettrich
mailto:drdiettri...@aol.com>> wrote:
I just encountered a nasty problem:
When I have multiple Lazarus installations (trun
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE) directory
first, and only into the common directory when no config can be found
there.
Well, definitely not on Unix. On unix, the EXE direc
On 30/03/2011 14:49, michael.vancann...@wisa.be wrote:
Don't try to force Windows habits on Unix users.
Beware!
It's more a single user versus multi user mindset. And it is a memory
optimization, by having the same executable on disk, and in memory, for
multiple users.
It has also the downs
Maybe Lazarus should simply come with a sh script and a batch script,
which would do:
./startlazarus --pcp=./config
and
startlazarus.exe --pcp=config
They could be called: singleuserlazarus.sh and singleuserlazarus.bat
--
Felipe Monteiro de Carvalho
--
___
Felipe Monteiro de Carvalho hat am 30. März
2011 um 16:20 geschrieben:
> Maybe Lazarus should simply come with a sh script and a batch script,
> which would do:
>
> ./startlazarus --pcp=./config
>
> and
>
> startlazarus.exe --pcp=config
>
> They could be called: singleuserlazarus.sh and sing
Mattias Gaertner schrieb:
Where does the IDE look for the configuration?
If no --pcp is given it uses
Under windows:
PrimaryConfigPath:=
ExtractFilePath(ChompPathDelim(SysToUTF8(GetAppConfigDir(False +
'lazarus';
all other:
~/.lazarus
This will be the common configuration,
2011/3/30 Mattias Gaertner :
> It's not only for single user.
>
> Maybe better localconfiglazarus?
Indeed, that's a better name.
--
Felipe Monteiro de Carvalho
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freep
Hans-Peter Diettrich hat am 30. März 2011 um 17:29
geschrieben:
>[...]
> What's the purpose of specifying a Lazarus directory, other than the one
> with the IDE?
I guess, with 'IDE' you mean the lazarus executable.
This executable may be in the config directory, when the Lazarus directory
i
michael.vancann...@wisa.be wrote:
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE)
directory first, and only into the common directory when no config
can be found there.
Well, definitely no
On Wed, 30 Mar 2011, Mark Morgan Lloyd wrote:
michael.vancann...@wisa.be wrote:
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE)
directory first, and only into the common directory when no
On Wed, Mar 30, 2011 at 03:17:36PM +0100, Paulo Costa wrote:
> It's more a single user versus multi user mindset. And it is a memory
> optimization, by having the same executable on disk, and in memory, for
> multiple users.
> It has also the downside that, for it to be effective, it forces all t
On Wed, 30 Mar 2011 11:02:04 +0100
Martin wrote:
> On 30/03/2011 10:56, Andreas Schneider wrote:
>[...]
> The problem is many users install a 2nd copy, but do not know
>
> My idea (but I havent got the time) would be:
> - lazarus remembers it's own exe-path in the enviroments-options.xml
> -
Martin schrieb:
But that is only where to search:
- That is: IF there was a config in the local director, then yes maybe
it would be good to use this local config
That's what I want.
- Except: people who had lazarus for a long time, and kept upgrading,
may still have an old 0.9.24 config th
michael.vancann...@wisa.be schrieb:
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE)
directory first, and only into the common directory when no config
can be found there.
Well, definitel
Paulo Costa schrieb:
On 30/03/2011 14:49, michael.vancann...@wisa.be wrote:
Don't try to force Windows habits on Unix users.
Beware!
It's more a single user versus multi user mindset.
Right, and Lazarus is in what category???
In a multi-user environment (company network) an administrator
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
michael.vancann...@wisa.be schrieb:
IMO the IDE should look for a configuration in the current (EXE)
directory first, and only into the common directory
You all repeat another discuses, while the end user like me, still have
problem to share him config espicialy for IDE.
The real question, without using command line how to share config file
between Windows and Linux at the same computer, (export/import it is bad
idea).
Let me point where is my con
On Wed, 30 Mar 2011, Zaher Dirkey wrote:
You all repeat another discuses, while the end user like me, still have problem
to share him config espicialy for IDE.
The real question, without using command line how to share config file between
Windows and Linux at the same computer, (export/impo
On Thu, Mar 31, 2011 at 12:17 AM, Michael Van Canneyt <
mich...@freepascal.org> wrote:
>
>
> On Wed, 30 Mar 2011, Zaher Dirkey wrote:
>
> You all repeat another discuses, while the end user like me, still have
>> problem to share him config espicialy for IDE.
>>
>> The real question, without usin
On 3/30/2011 09:49, michael.vancann...@wisa.be wrote:
On Wed, 30 Mar 2011, Hans-Peter Diettrich wrote:
I dare to disagree. A SVN checkout is writeable, and this is where the EXE is
stored, along with the related source files. Consequently the config should be
stored there as well.
No, no and
On 3/31/11, Zaher Dirkey wrote:
> I already have this answer before. this command line params, that mean i
> must make shortcut for it, and i am not sure if lazarus will take it when
> rebuild packages and restart.
I use Lazarus with the --pcp=SomePath from a Desktop Shortcut under
Windows (and L
On Thu, 31 Mar 2011 10:17:07 +0200
Bart wrote:
> On 3/31/11, Zaher Dirkey wrote:
> > I already have this answer before. this command line params, that mean i
> > must make shortcut for it, and i am not sure if lazarus will take it when
> > rebuild packages and restart.
>
> I use Lazarus with th
Michael Van Canneyt schrieb:
Well, definitely not on Unix. On unix, the EXE directory should
never contain config files.
I dare to disagree. A SVN checkout is writeable, and this is where
the EXE is stored, along with the related source files. Consequently
the config should be stored there a
Vincent Snijders schrieb:
2011/3/30 Hans-Peter Diettrich :
Can somebody please clarify the intended procedure for configuring multiple
parallel Lazarus installations?
Always specify the primary config directory, if you have multiple
parallel Lazarus installations.
That's only the very last
Michael Van Canneyt schrieb:
The only point I was trying to make is that on UNIX (and only on Unix)
looking by default in the directory where the binary is, goes against
long-standing unix practise and recommendations.
Depends on what you consider UNIX. I understand that ParamStr[0] may get
Zaher Dirkey schrieb:
You all repeat another discuses, while the end user like me, still have
problem to share him config espicialy for IDE.
IMO the current config is not shareable, due to the many absolute pathes
in it.
The real question, without using command line how to share config file
On 31/03/2011 12:15, Hans-Peter Diettrich wrote:
Michael Van Canneyt schrieb:
No unix tool does this. Not even when it is freshly (re)built from
sources. And neither should Lazarus.
I claimed no more, no less.
I never said that Lazarus should *break* that convention.
If the convention is to
On 31/03/2011 12:22, Hans-Peter Diettrich wrote:
Try compiling different versions of any unix application - this is where
repository checkouts enter the scene. And then try to use all these
versions in parallel...
I do this often, and have no problems. Why? Because the apps I use (in
this exa
Hans-Peter Diettrich hat am 31. März 2011 um 13:50
geschrieben:
>[...]
> > http://wiki.freepascal.org/Multiple_Lazarus#The_config_directory
>
> Thanks for this link - as is, it fully supports my opinions :-]
>
> >>
> The config directory
> [...]
> The config directory can be shared betwee
On Thu, Mar 31, 2011 at 12:50:05PM +0200, Hans-Peter Diettrich wrote:
> > problem to share him config espicialy for IDE.
>
> IMO the current config is not shareable, due to the many absolute pathes
> in it.
Interesting. How did you test this? Did you try the lazarus-dir parameter
approach? IIRC
On Thursday, March 31, 2011 12:22 Hans-Peter Diettrich wrote:
> Right, but this is only a workaround, that requires much care in making
> it work. Did you ever notice the many error messages and warnings, at
> the first start of a another Lazarus installation, when it tries to
> initialize itself
Martin hat am 31. März 2011 um 13:22 geschrieben:
>[...]
> This whole discussion seems to mix 2 issues into one:
> - problems caused by using the wrong config due to none awareness (imho
> the main issue)
+1
> - convenience of using multiply configs.
>
> Searching for config files in the
On 31/03/2011 13:09, Mattias Gaertner wrote:
Martin hat am 31. März 2011 um 13:22 geschrieben:
>[...]
> This whole discussion seems to mix 2 issues into one:
> - problems caused by using the wrong config due to none awareness (imho
> the main issue)
+1
> - convenience of using multiply confi
On 31/03/2011 13:02, Andreas Schneider wrote:
> Sorry, but a newbie shouldn't juggle with a bunch of lazarus
> installations of different versions in the first place. Either you
> know what you are doing, or you don't. In the latter case: stay away
> from it until you do :D
>
What
Martin schrieb:
This whole discussion seems to mix 2 issues into one:
- problems caused by using the wrong config due to none awareness (imho
the main issue)
- convenience of using multiply configs.
The first problem disappears as soon as a config resides in the Lazarus
directory, next the
On 31/03/2011 21:09, Hans-Peter Diettrich wrote:
Martin schrieb:
This whole discussion seems to mix 2 issues into one:
- problems caused by using the wrong config due to none awareness
(imho the main issue)
- convenience of using multiply configs.
The first problem disappears as soon as a c
Graeme Geldenhuys schrieb:
Try compiling different versions of any unix application - this is where
repository checkouts enter the scene. And then try to use all these
versions in parallel...
I do this often, and have no problems. Why? Because the apps I use (in
this example Mozilla Firefox),
Mattias Gaertner schrieb:
> Searching for config files in the exe dir (even if done) doesn't solve
> the first issue, as there may not be any config files in that directory
> to start with.
Then the IDE creates defaults.
Where is that default config created, in the primary or secondary
Martin schrieb:
> Searching for config files in the exe dir (even if done) doesn't solve
> the first issue, as there may not be any config files in that directory
> to start with.
Then the IDE creates defaults.
No. This is:
- if a search in the exe-dir is added, (so the the behaviour will
Marco van de Voort schrieb:
On Thu, Mar 31, 2011 at 12:50:05PM +0200, Hans-Peter Diettrich wrote:
problem to share him config espicialy for IDE.
IMO the current config is not shareable, due to the many absolute pathes
in it.
Interesting. How did you test this?
It bites me whenever I try to
Hans-Peter Diettrich hat am 1. April 2011 um 05:46
geschrieben:
>[...]
> Where is that default config created, in the primary or secondary config
> path?
It seems you don't know what the secondary configs are.
The secondary configs are templates for the primary configs. The installers and
ad
Hans-Peter Diettrich hat am 1. April 2011 um 06:23
geschrieben:
>[...]
> If a global config is found, but is invalid/incompatible, a local config
> should be created.
Define invalid.
>[...]
>
> About primary and secondary config paths:
> At least on my Windows the Lazarus directory
On 01/04/2011 10:27, Hans-Peter Diettrich wrote:
> Marco van de Voort schrieb:
>> On Thu, Mar 31, 2011 at 12:50:05PM +0200, Hans-Peter Diettrich wrote:
problem to share him config espicialy for IDE.
>>> IMO the current config is not shareable, due to the many absolute pathes in
>>> it.
>>
>>
On 01/04/2011 05:23, Hans-Peter Diettrich wrote:
Martin schrieb:
> Searching for config files in the exe dir (even if done) doesn't
solve
> the first issue, as there may not be any config files in that
directory
> to start with.
Then the IDE creates defaults.
No. This is:
- if a search i
On Fri, 01 Apr 2011 11:32:11 +0200
Hans-Peter Diettrich wrote:
> You possibly forget that then you'll have to initialize all those added
> configs, and when you want to change something, for all installations,
> every single config has to be edited - a maintenance nightmare :-(
Maintenance nigh
On 01/04/11 15:55, Reimar Grabowski wrote:
On Fri, 01 Apr 2011 11:32:11 +0200
Hans-Peter Diettrich wrote:
You possibly forget that then you'll have to initialize all those added
configs, and when you want to change something, for all installations,
every single config has to be edited - a main
Martin schrieb:
If a global config is found, but is invalid/incompatible, a local
config should be created.
sounds good at first, but is actually worse.
Because this behaviour is unpredictable from the end users view.
Unpredictable why?
Currently the results are unpredictable, when the IDE
Mattias Gaertner schrieb:
> If a global config is found, but is invalid/incompatible, a local
config should be created.
Define invalid.
That's up to the (already existing) IDE code.
> About primary and secondary config paths:
> At least on my Windows the Lazarus directory is listed
Mattias Gaertner schrieb:
>[...]
> Where is that default config created, in the primary or secondary config
> path?
It seems you don't know what the secondary configs are.
That's why I'm asking ;-)
The secondary configs are templates for the primary configs. The
installers and adminis
Martin schrieb:
...let me explain a bit more what I tried to explain before (and had in
my last mail too)
It would only help, if you totally abandon all global config. don't even
look for a global anymore, only check the exe folder, nowhere else.
Why that?
When multiple directories are in
On Sat, 02 Apr 2011 00:45:56 +0200
Hans-Peter Diettrich wrote:
> Mattias Gaertner schrieb:
>
> > > If a global config is found, but is invalid/incompatible, a local
> > config should be created.
> >
> > Define invalid.
>
> That's up to the (already existing) IDE code.
Already existing: file
On Sat, 02 Apr 2011 02:48:06 +0200
Hans-Peter Diettrich wrote:
> Mattias Gaertner schrieb:
> > >[...]
> > The secondary configs are templates for the primary configs. The
> > installers and administrators can create templates.
>
> There exist other opinions as well :-(
I explained how it is i
On 02/04/2011 00:45, Hans-Peter Diettrich wrote:
Martin schrieb:
If a global config is found, but is invalid/incompatible, a local
config should be created.
sounds good at first, but is actually worse.
Because this behaviour is unpredictable from the end users view.
Unpredictable why?
Bec
On 02/04/2011 04:33, Hans-Peter Diettrich wrote:
Martin schrieb:
...let me explain a bit more what I tried to explain before (and had
in my last mail too)
It would only help, if you totally abandon all global config. don't
even look for a global anymore, only check the exe folder, nowhere el
Mattias Gaertner schrieb:
BTW, my experiments indicate that putting an environmentoptions.xml into
the Lazarus directory (scp) will make the IDE use these settings, but
only if there exists no config in the default location. The full config
then is written back to the *default* location (pcp),
Martin schrieb:
On 02/04/2011 00:45, Hans-Peter Diettrich wrote:
Martin schrieb:
If a global config is found, but is invalid/incompatible, a local
config should be created.
sounds good at first, but is actually worse.
Because this behaviour is unpredictable from the end users view.
Unpred
Mattias Gaertner schrieb:
Where can I find the documentation for the templates?
There is not much to know:
The secondary have obviously the same format as the primary configs.
The values depends on version. They are human readable xml and you
should not edit them manually. Use the IDE to creat
Martin schrieb:
When multiple directories are in a search path, the search stops on
the first item (file...) found. That's common practice, isn't it?
I explained below, but I do again.
In order for that to work, WITHOUT the user needing to be aware of doing
anything. EVERY lazarus must come
On Sat, 02 Apr 2011 14:15:22 +0200
Hans-Peter Diettrich wrote:
> Mattias Gaertner schrieb:
>
> >> BTW, my experiments indicate that putting an environmentoptions.xml into
> >> the Lazarus directory (scp) will make the IDE use these settings, but
> >> only if there exists no config in the defau
On Sat, 02 Apr 2011 16:17:25 +0200
Hans-Peter Diettrich wrote:
> Mattias Gaertner schrieb:
>
> >> Where can I find the documentation for the templates?
> >
> > There is not much to know:
> > The secondary have obviously the same format as the primary configs.
> > The values depends on version.
Mattias Gaertner schrieb:
Where can I find the documentation for the templates?
There is not much to know:
The secondary have obviously the same format as the primary configs.
The values depends on version. They are human readable xml and you
should not edit them manually. Use the IDE to create
Mattias Gaertner schrieb:
BTW, my experiments indicate that putting an environmentoptions.xml into
the Lazarus directory (scp) will make the IDE use these settings, but
only if there exists no config in the default location. The full config
then is written back to the *default* location (pcp),
74 matches
Mail list logo