Forum > General

[SOLVED] How to copy/convert the Lazarus-config-folder to a new version?

(1/2) > >>

Hartmut:
In the past, when I had installed a new Lazarus version, I copied the complete Lazarus-config-folder from the older version over the newer version, because of
 - not to loose all the uncounted changes which I had made in the old Lazarus Options
 - not to loose all the changed file-encodings of my sourcefiles (which are stored in inputhistory.xml)
 - not to loose all the *.lps files which are stored in the subfolder "projectsessions"
 
I did this a couple of times (on Windows and Ubuntu) from Lazarus 1.4.4 ... 2.0.6 and until now never noticed any problems (at the 1st start of Lazarus after this copy there always came a dialog to Upgrade the config folder and another dialog to adapt some path's for Lazarus).

But today I saw by random that file "idemake.cfg" contains a lot of path's which should be wrong after that copy action. So I assume that it was very dangerous what I did...

So please I want to know:
 - which config files must/may I copy without danger, that I don't loose all the uncounted changes which I had made in the old Lazarus Options?
 - may I copy inputhistory.xml without danger?
 - are there more files than "idemake.cfg" which may not be copied?
 
Thanks a lot in advance.

Hartmut:
Hmm, not even 1 answer after 1 week... I'm rather sure that this forum has some experts which have the necessary knowledge... Maybe I asked in the wrong subforum? Which would be the best subforum for this question?

Is it possible to ask an "admin" to move my question into another subforum? How could I do that?

Thanks for any help.

wp:

--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - not to loose all the uncounted changes which I had made in the old Lazarus Options
--- End quote ---
I have have more than 20 installations on my desktop (plus some more in virtual machines), and I started all from zero. The time to setup a new configuration is nothing compared to finding the error when bugs are propagated from one installation to the other because an error is copied from config to config. I just don't make too many changes...


--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - not to loose all the changed file-encodings of my sourcefiles (which are stored in inputhistory.xml)
--- End quote ---
I never change the file encoding, I always use files as they are created by Lazarus. Import from Delphi? I convert the file to utf8 first. I event don't know that inputhistory.xml stores file encodings, I always thought it stores the "recently used files".


--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - not to loose all the *.lps files which are stored in the subfolder "projectsessions"

--- End quote ---
I store session files in the project directory along with the other project files.


--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - which config files must/may I copy without danger, that I don't loose all the uncounted changes which I had made in the old Lazarus Options?
--- End quote ---
I think there was a recent answer by Martin_fr to a similar question.

Hartmut:
Hello wp again, thanks for your answers.


--- Quote from: wp on January 14, 2020, 03:29:06 pm ---
--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - not to loose all the uncounted changes which I had made in the old Lazarus Options
--- End quote ---
I have have more than 20 installations on my desktop (plus some more in virtual machines), and I started all from zero. The time to setup a new configuration is nothing compared to finding the error when bugs are propagated from one installation to the other because an error is copied from config to config. I just don't make too many changes...

--- End quote ---
During the years I made a lot of changes to the options of Lazarus to make it as comfortable as possible for my personal needs. And it bothers me extremely, if I stumble over that one Lazarus does not act/react like all the others, because than I can't work quickly and fatigue-proof. Especially a couple of Hotkeys which I changed/added or a couple of Code Templates which I changed/added, just to give 2 examples.
But of course you are right, if copying Lazarus config files causes (hard to find) errors, that's not worth it.
Until now I had no problems, but what I recently saw in "idemake.cfg" gave me a warning. That's the reason I wrote this topic in the hope to learn, which Lazarus config files I may copy and which not.


--- Quote from: wp on January 14, 2020, 03:29:06 pm ---
--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - not to loose all the changed file-encodings of my sourcefiles (which are stored in inputhistory.xml)
--- End quote ---
I never change the file encoding, I always use files as they are created by Lazarus. Import from Delphi? I convert the file to utf8 first. I event don't know that inputhistory.xml stores file encodings, I always thought it stores the "recently used files".

--- End quote ---
My Pascal sources started with Turbo Pascal 3..6 and I live in Germany, where we have special characters (Ä Ö Ü ä ö ü ß). So all these sources had CP850. Mostly I wrote console programs for Windows. The console of Windows 95, XP and Windows 7 on my German PC's had as well CP850. So when I started later with FPC (and even later with Lazarus), it was the easiest to stay my sources with CP850, because then I had to change nothing (I had enough other problems converting my old sources to FPC/Lazarus which were more important to me). From this history all my sources now have CP850. Maybe this decision was not the best for all future, because recently I started with Linux and there is UTF8. But if I would convert all my sources to UTF8, they would show wrong in the console of Windows 7. But all this is one of my smaller problems, I woun't solve it in the near future...


--- Quote from: wp on January 14, 2020, 03:29:06 pm ---
--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - not to loose all the *.lps files which are stored in the subfolder "projectsessions"

--- End quote ---
I store session files in the project directory along with the other project files.

--- End quote ---
I started having an own folder for each project, but found it cumbersome (too much up and down jumping folders from one source to another), especially for my console programs, where a "project" mostly consists only of 2 files (1x lpi and 1x pas). So I have only a couple of folders including the most of my "projects" (with a few exceptions, when a project needs an amount of additional files) and there I find it better to have the *.lps files "out of the way".


--- Quote from: wp on January 14, 2020, 03:29:06 pm ---
--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - which config files must/may I copy without danger, that I don't loose all the uncounted changes which I had made in the old Lazarus Options?
--- End quote ---
I think there was a recent answer by Martin_fr to a similar question.

--- End quote ---
I searched for posts of Martin_fr and the only 2 I found dealing with Lazarus configurations are:
 - https://forum.lazarus.freepascal.org/index.php/topic,47005.0.html
 - https://forum.lazarus.freepascal.org/index.php/topic,46088.0.html
Did you mean one of them?

Have a good night...

wp:

--- Quote from: Hartmut on January 14, 2020, 09:02:42 pm ---
--- Quote from: wp on January 14, 2020, 03:29:06 pm ---
--- Quote from: Hartmut on January 07, 2020, 06:08:54 pm --- - which config files must/may I copy without danger, that I don't loose all the uncounted changes which I had made in the old Lazarus Options?
--- End quote ---
I think there was a recent answer by Martin_fr to a similar question.

--- End quote ---
I searched for posts of Martin_fr and the only 2 I found dealing with Lazarus configurations are:
 - https://forum.lazarus.freepascal.org/index.php/topic,47005.0.html
 - https://forum.lazarus.freepascal.org/index.php/topic,46088.0.html

--- End quote ---
I think it was this one: https://forum.lazarus.freepascal.org/index.php/topic,47480.msg340134.html#msg340134 although I remembered it differentyl. Some config files are mentioned there, but Martin warned that environmentoptions (which contains most of your requests) will make trouble because it contains the FPC path.

Ideally somebody should write a program and make it available which copies these files and makes path adjustments if required. The post https://forum.lazarus.freepascal.org/index.php/topic,46436.msg331534.html#msg331534 refers to a program for creation of a portable Lazarus version, but it must also copy config files and should contain much to learn from.

Navigation

[0] Message Index

[#] Next page

Go to full version