Menu > Package > Instal/Uninstall Packages ...Thank you @paweld please watch this to the end else no one will believe me: Lazarus IDE Startup and Rebuild Issues (https://youtu.be/NlQLYsop3Fg) most of the errors are of my own doing and does not prevent me from coding but is a nuisance now. The building of the IDE I have no clue why it does that and chokes like that?
Find package "NewComponent1" on the left list, select them ad click "Uninstall selection"
next click "Build IDE"
Problem with non-existent packages will solve with a full rebuild of lazarus in the “Clean and Build All” profile: Menu > Tools > Configure “Build Lazarus” ... > set “Profile to build” to “Clean and build all” > press “Build”Alright, thanks once again. I will try to figure out how to solve the clocal.ppu missing error.
BUT before that you have to solve the error with missing file “clocale.ppu” - for this you need to compile FPC
"Checksum Changed" for an FPC/RTL unit usually means you have more than one version of that ppu in the unit/ppu seach path. This may be in your lazarus config, the project config, or the fpc.cfg config.@Martin_frI I have honestly lost count of the number of Lazarus installations I have. I know they are definitely more than 4. The very first one I started with a 2.2.* something then I upgraded to another 2.8.* something then I remembered I used the deb's and installed an RC4.0 then I cloned the gitlab repo and did compile and built FPC so could be any one of those things. In between doing those I was trying my own experiments with the IDE. I also have 3.*.* lying around.... it is a royal mess but so far I have managed to work with it :)
Or you have a 2nd file called clocale. (E.g. a copy or modified copy of that file). Such a 2nd pas file would cause a 2nd ppu file.
It can also happen, if you did compile FPC yourself, and did not compile with -Ur (not sure maybe -UR ?? => search: compile unit for release).
First of all, clocale is FPC => so versions of FPC.Ok, good to know. I did not know this. Thank you.
Then, I take it from your anwer you did not make any copies of clocale.pas (or .pp)? Good.'I' did not make copies but when I search using *find* ths iis what I see:
Are the fpc (if more than one) all installed from official installer?No only the first two were installed using the offical installer after that I started experimenting.. I stayed away from fpcupdeluxe even though many people regard it highly as some reviews had horror stories. Once I undesratnd enough about how things work under the hood I guess I may try fpcupdeluxe at this moment uh-uh.
If they are from fpcupdeluxe, are they wrapped in the script provided by fpcupdeluxe?
On Linux, having more than one fpc may require some attention, because they all want to use /etc/fpc.cfg (or the fpc.cfg somewhere in the home dir...).Using linux *find* agian I get this:
So if you installed (rpm/dep/...) a newer fpc, then the older may give errors.I use Linux Debian so they were *.deb's
Though usually that would be an error about ppu version... Strange.'I' was doing 'strange' experiments so most probably I broke something? Or did something I am not supposed to do like change the name of a project folder while working on /that/ folder whic initially had me climbing the wall but now I fix like it is nothing. Experience is the best teacher I guess :)
Make sure that in your Lazarus and your project dir (and any package used by lazarus) there is no clocale.ppu anywhere. That must only exist in the fpc installation.I will check again...
And the path to 3.2.2 in the error is the path of your fpc install, that you are using?I cloned and built from the source the fpc so I am not dead certain. Let me check and verify then report back ?
I probably wont be able to give you a definite answer. But...
It is normal that there are sources for different OS. But only one would have been build and installed as ppu. And it is ppu that matters. At that time the compiler should not have access to the sources of the rtl.
=> Yet strangely, in your error it says "recompiling" and does not give an error that it did not find the source.
Either the error is just filtered out, or there is a further issue...
If you have any setup that compiles fpc units from within the Lazarus IDE => you will have trouble (there are cases / stuff that can be done, but it needs some more understanding, so lets just say: don't compile fpc sources from lazarus)
If you can get the error with a small(er) project (e.g. maybe just "uses clocale") and you compile it with
-va
If inside the IDE, the IDE will hide many messages, and you need to do "copy all".
So maybe do that from outside the IDE.
It will tell you every file the compiler tried to access, and if it found it or not.
So,
if you know
- what fpc you are using,
- and where that fpc should have its ppu,
- and that the source files should not be found by fpc
then you can go through that list, and check for what happens for clocale.* (and units right before).
Its a lot of work (and I wont be able to do it for you, even if you upload the entire log / sorry limited time).
You will also see what fpc.cfg it accesses, and you can check inside of them what search path are used, and if they match where that fpc should be installed.
The upside, after that, you have a better understanding how all of this works.
make bigideThis build mode helps you get Lazarus up and running, but note that it does not include any additionally installed components. Next rebuilding Lazarus from Menu > Tools > Build Lazarus with Profile: ... will reattach all the components you previously installed, and you may again have problems with yours test components.
Hi! Yes, you were right. I learned that the hard way! But this time, I also managed to find a fix. The fix I found was to delete or remove all the package files that might be causing issues, and then rebuild the IDE from scratch.Quote from: Aruna"make bigideThis build mode helps you get Lazarus up and running, but note that it does not include any additionally installed components. Next rebuilding Lazarus from Menu > Tools > Build Lazarus with Profile: ... will reattach all the components you previously installed, and you may again have problems with yours test components.
I'm thinking, maybe when I have a bit of time, I’ll write a little how-to guide — something like “how to break the Lazarus IDE and how to fix it again”! 😄By far the easiest solution to 'fix' the IDE in case having installed a component that breaks things is by reverting back to the backup version of the executable (which should be generated automatically). A clean startup can be done by either removing/clearing the configuration directory (pcp) or set it to another directory (which is empty)
Agreed @Tron the thing is this... if 'I' went and renamed the package file and many other things one does not normally to do in the quest for knowledge is it not entirely possible another person may do exactly the same and get stuck? I just do not want them to spend months searching for a fix like 'I' did is all :) I am thinking of taking RC4 for a test drive so what should I do and what should I not to make each lazIDE co-exist peacefully?I'm thinking, maybe when I have a bit of time, I’ll write a little how-to guide — something like “how to break the Lazarus IDE and how to fix it again”! 😄By far the easiest solution to 'fix' the IDE in case having installed a component that breaks things is by reverting back to the backup version of the executable (which should be generated automatically). A clean startup can be done by either removing/clearing the configuration directory (pcp) or set it to another directory (which is empty)
Agreed @Tron the thing is this... if 'I' went and renamed the package file and many other things one does not normally to do in the quest for knowledge is it not entirely possible another person may do exactly the same and get stuck?True, but if you follow those unwritten rules you should be able to fix any such issue in a jiffy.
I just do not want them to spend months searching for a fix like 'I' did is all :)Fair enough.
I am thinking of taking RC4 for a test drive so what should I do and what should I not to make each lazIDE co-exist peacefully?For Lazarus things are quite simple, do:
Agreed @Tron the thing is this... if 'I' went and renamed the package file and many other things one does not normally to do in the quest for knowledge is it not entirely possible another person may do exactly the same and get stuck?True, but if you follow those unwritten rules you should be able to fix any such issue in a jiffy.
https://wiki.freepascal.org/Multiple_Lazarus#Using_lazarus.cfg_fileThank you @Martin_fr. I just went through the history of that article and was very surprised to see that is your work? You started that.. and way back in August of 2013. Wow!
https://wiki.freepascal.org/Multiple_Lazarus#Using_lazarus.cfg_fileWith the small warning that I don't know with which exact version the lazarus.cfg file support was introduced so that for older versions that don't support it you have to fall-back to making either a script or a shortcut that passes the pcp option.
My apologies that screenshot was attached by mistake and I do not know how to remove it? Maybe a forum admin can?Login, modify your post then look at the bottom at attachments section. Each individual attachment in a post can be removed by pressing a button (the same way you can add additional attachments). When done, save the post. The attachment should then be gone.
My apologies that screenshot was attached by mistake and I do not know how to remove it? Maybe a forum admin can?
With the small warning that I don't know with which exact version the lazarus.cfg file support was introduced so that for older versions that don't support it you have to fall-back to making either a script or a shortcut that passes the pcp option.
I do have a question though:I've never encountered the ability to choose the size, can you show it?
When you're adding a custom control for the first time, Lazarus lets you specify icons in 24x24, 26x36, and 48x48 sizes — and I tested this, it works great. But let’s say later on, after the component is already installed, I want to change the icon… how on earth do you do that? I’ve tried everything and so far no luck. 😅