[Lazarus] Lazarus config woes
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Mar 31 14:09:35 CEST 2011
Martin <lazarus at mfriebe.de> 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 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.
> In this case the unaware user is still screwed.
Why do you think he is screwed?
> And even if there are config files there, the unaware user, may just
> have started a 2nd build (with different set of installed packages), by
> copying another lazarus dir, and moved config files into the new dir,
> which have values pointing back to the old dir, causing problems again.
Since 0.9.29 packages in the Lazarus directory are stored relative. Changing the
Lazarus directory will load the lpk files of the new Lazarus directory.
lpk files outside are used from the old positions.
> Only checking, if the config files match the current installation can
> solve that.
> AFAIK Mattias added a version check.
I added a check for the ide/version.inc.
Configs from another version are quietly loaded and updated.
Maybe a check could be added to warn if the environmentoptions.xml is from a
future Lazarus with two options: Quit and continue.
> IMHO for example any error about installed/not found packages at start
> up, could also offer to run the setup dialog again (and point out which
> config is used / warn about a potential conflict)
Yes.
> Only when the user is aware of the need to properly set up several
> config dirs, the convenience of using them comes into play.
Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110331/b946fd40/attachment-0003.html>
More information about the Lazarus
mailing list