Recent

Author Topic: problems with install of 3.6 and opening the design view  (Read 3357 times)

ronhud

  • Jr. Member
  • **
  • Posts: 96
problems with install of 3.6 and opening the design view
« on: December 22, 2024, 03:27:04 pm »
I recently decided to upgrade my Lazarus installation.   I downloaded and installed version 3.6 over my existing installation.  I am struggling with the following problem which has appeared after the upgrade.

 I open a project which was created in my earlier version.    When I hit F12 to view the form in design view I get a longish message which tells me to install package AnchorDocking and package Weblaz first.  I go to the package manager and both packages are in the 'Installed' window but when I click on them their status is 'selected for  installation,not installed,RunAndDesignTime'  I have tried compiling the packages and rebuilding the IDE but no change.

Although the message has a 'continue without installing' option and choosing this does display the design view I feel I need to get a resolution to the package problem

2.   

wp

  • Hero Member
  • *****
  • Posts: 12592
Re: problems with install of 3.6 and opening the design view
« Reply #1 on: December 22, 2024, 03:50:33 pm »
I go to the package manager and both packages are in the 'Installed' window but when I click on them their status is 'selected for  installation,not installed,RunAndDesignTime'
This indicates that you did not install them. I know you wrote that you did, but since you are installing over an existing installation, maybe not everything was compiled. Go to "Tools" > "Configure Build Lazarus" > In the "Clean up" box check "clean all" and "Switch after building to automatically" > "Build". After a while, when the compilation of the IDE is finished the issue should be gone. If not, find out the location of your user config directory in "View" > "IDE Internals" > "About IDE" > "Primary config directory", exit the IDE and rename this directory (so that it will not be found under its old name but can be restored if needed). When you restart the IDE, new default settings will be created, you will have to redo all your settings and package installations - but this definitely will work.

ronhud

  • Jr. Member
  • **
  • Posts: 96
Re: problems with install of 3.6 and opening the design view
« Reply #2 on: December 22, 2024, 09:21:44 pm »
Thank you for your help.   I tried the two options you suggested but AnchorDocking and Weblaz are still showing in the Package Manager as reported above.   I mentione eqarlier that I had installed version 3.6 over the earlier version.  I am minded to go back to that version and I did zip up everthing from the Lazarus folder including all sub directories.  Do you know if it will be ok to uninstall this latest version and the just unzip the earier one?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10797
  • Debugger - SynEdit - and more
    • wiki
Re: problems with install of 3.6 and opening the design view
« Reply #3 on: December 22, 2024, 09:28:23 pm »
OS?  And Lazarus installed to a write protected folder?

On Linux, you may have a shadow lazarus executable somewhere in ~/.lazarus (some nested folder).

Maybe that is incorrectly started (even though a rebuild should have replaced it. But if the old install was write protected, and the new was not .... maybe ....


If you rebuild lazarus, find the lazarus / lazarus.exe executable and check its date, then run that (without using startlazarus). If that works, then there is an old lazarus some where else



Most important is to backup your config.

~/.lazarus  or %APPDATA%/local/lazarus (or similar)
Look at menu: View > IDE Internals > About IDE => and find "primary config path".

n7800

  • Full Member
  • ***
  • Posts: 235
Re: problems with install of 3.6 and opening the design view
« Reply #4 on: December 29, 2024, 08:37:22 am »
And is the rebuild successful? Have you already done this with a "new installation"? Are other packages installed?

I recently decided to upgrade my Lazarus installation.   I downloaded and installed version 3.6 over my existing installation.

What exactly does "over my existing installation" mean? You should always install Lazarus in a new folder (or delete all the old folder first). Several versions of the IDE can work in parallel, and even be launched simultaneously. You can read more about it on the wiki. Or use fpcupdeluxe. On Windows, you can simply uncheck the "Secondary installation" checkbox during installation.

If you installed directly into the same folder without deleting the old version, then this is wrong. In such cases, even the "clean build" that @wp mentioned may not help.

I am minded to go back to that version and I did zip up everthing from the Lazarus folder including all sub directories.  Do you know if it will be ok to uninstall this latest version and the just unzip the earier one?

If you really did a full backup of the old version, then yes, just unzip it back (and yes, delete/rename the current folder first so there are no files from the new version left).

But it's safer to install the new one first, and when it works, you can definitely delete the old one.

If you rebuild lazarus, find the lazarus / lazarus.exe executable and check its date, then run that (without using startlazarus). If that works, then there is an old lazarus some where else

Good question, are you running via lazarus.exe or startlazarus.exe? The latter is needed to automatically launch the correct version. But if this does not work, then try manually finding the new rebuilt version of "lazarus.exe", as @Martin_fr described.

 

TinyPortal © 2005-2018