Recent

Author Topic: Lazarus 2.2.0: Major installation issues  (Read 4880 times)

wmeyer

  • New Member
  • *
  • Posts: 26
Lazarus 2.2.0: Major installation issues
« on: January 07, 2022, 09:51:52 pm »
Tried to install over 2.1.12. After installation, went to install packages, and found that there were numerous issues, which I was unable to resolve.

Uninstalled completely. Installed again. Similar problems.

Uninstalled again. Cleaned registry. Deleted folders. Installed fresh. On running, was informed that package Cairo is missing.

Windows 10 64 bit. Installation folder: E:\lazarus. Available space >2TB. System RAM: 64GB.

Is there anywhere a document of the steps to accomplish a complete uninstall and clean?
« Last Edit: January 07, 2022, 10:05:37 pm by wmeyer »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Lazarus 2.2.0: Major installation issues
« Reply #1 on: January 07, 2022, 10:09:09 pm »
After installation, went to install packages, and found that there were numerous issues, which I was unable to resolve.
Please install the extra packages one by one and see which package causes the problems.
Cairo should not be needed for the standard installation on Windows.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

wmeyer

  • New Member
  • *
  • Posts: 26
Re: Lazarus 2.2.0: Major installation issues
« Reply #2 on: January 07, 2022, 10:14:13 pm »
To be sure I understand, do I need to remove from the list all packages that are not required? Or only those which appear to be missing? Sorry, but if I am to work through it by hand, I want to be sure I am doing precisely what you are asking.

wmeyer

  • New Member
  • *
  • Posts: 26
Re: Lazarus 2.2.0: Major installation issues
« Reply #3 on: January 07, 2022, 10:25:50 pm »
Added AnchorDocking to the list and initiated the package build. Got error in ZDbcCache:
  {$IFNDEF FPC}
  if NullPtr^ = {$IFDEF WIN64}false{$ELSE}0{$ENDIF} then  //M.A. if NullPtr^ = 0 then
  {$ELSE}
  if NullPtr^ = 0 then // on this line
  {$ENDIF}
    IZDataSet(Ptr^) := nil
  else
    Ptr^ := nil; 

Message says:
ZDbcCache.pas(4429,13) Error: Incompatible types: got "Boolean" expected "Int64"

And for whatever reason, can't copy the selected message from that window, but had to type it in notepad.

balazsszekely

  • Guest
Re: Lazarus 2.2.0: Major installation issues
« Reply #4 on: January 07, 2022, 10:28:51 pm »
@wmayer
1. Delete your config directory(make a backup first).  On windows is typically located in:
   c:\Users\%USERNAME%\AppData\Local\lazarus\
2. Delete your Lazarus folder
3. Reinstall everything

Unfortunately you will have to reinstall every package.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Lazarus 2.2.0: Major installation issues
« Reply #5 on: January 07, 2022, 10:29:17 pm »
To be sure I understand, do I need to remove from the list all packages that are not required? Or only those which appear to be missing? Sorry, but if I am to work through it by hand, I want to be sure I am doing precisely what you are asking.
I assume that Lazarus after installation works. It then includes the standard set of packages (build target "bigide").
I guess you have the old configuration with more packages. Unfortunately you must remove them from the list of installed packages, then install one by one, to find out the problematic ones.
Which packages are missing?

You can also delete or rename the local config folder to start from a default clean configuration. Then install packages one by one.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 2.2.0: Major installation issues
« Reply #6 on: January 07, 2022, 10:41:32 pm »
I don't think you need to delete your entire config. Most of it should be fine.
But, if some path to old stuff is stored there, one way would be to backup the folder, and restore it file by file to see which file causes any trouble.

Since this is about packages, I suspect:
includelinks.xml
packagefiles.xml
staticpackages.inc







Added AnchorDocking to the list and initiated the package build. Got error in ZDbcCache:
So you got "Zeos" installed.

And the Zeos version you have does not work with the new IDE. 

I don't use Zeos myself, but I expect they have a newer version that will work.
If you used OPM, maybe it can be updated via OPM. => I don't know if the OPM registry has the latest updates already included. (Afaik, It is maintained separately from the release).

wmeyer

  • New Member
  • *
  • Posts: 26
Re: Lazarus 2.2.0: Major installation issues
« Reply #7 on: January 07, 2022, 10:59:55 pm »
@wmayer
1. Delete your config directory(make a backup first).  On windows is typically located in:
   c:\Users\%USERNAME%\AppData\Local\lazarus\
2. Delete your Lazarus folder
3. Reinstall everything

Unfortunately you will have to reinstall every package.

OK, that allowed me to get to a properly functional installation. I will deal with installing packages when the need arises.

I started with AnchorDocking and the DockedFormEditor.
« Last Edit: January 07, 2022, 11:01:41 pm by wmeyer »

wp

  • Hero Member
  • *****
  • Posts: 11915
Re: Lazarus 2.2.0: Major installation issues
« Reply #8 on: January 07, 2022, 11:09:27 pm »
I will deal with installing packages when the need arises.
That's a good attitude. Do not install packages ahead just to "have them". Every unnecessary package is an unnecessary risk to end up with an unstable IDE.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Lazarus 2.2.0: Major installation issues
« Reply #9 on: January 07, 2022, 11:10:15 pm »
If this code line gave an error
Code: Pascal  [Select][+][-]
  1. if NullPtr^ = 0 then // on this line

then the message makes no sense as 0 is an integer, not a boolean.
Quote
Error: Incompatible types: got "Boolean" expected "Int64"
I don't know details of Zeos. Maybe it does something tricky with types.

Quote
And for whatever reason, can't copy the selected message from that window, but had to type it in notepad.
Strange. The copy from message window feature was improved. Now you can select many lines and copy them all.
Does it work for other people?
« Last Edit: January 07, 2022, 11:12:00 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

wmeyer

  • New Member
  • *
  • Posts: 26
Re: Lazarus 2.2.0: Major installation issues
« Reply #10 on: January 07, 2022, 11:37:08 pm »
If this code line gave an error
Code: Pascal  [Select][+][-]
  1. if NullPtr^ = 0 then // on this line

then the message makes no sense as 0 is an integer, not a boolean.

Made no sense to me, either. I just report what I see.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Lazarus 2.2.0: Major installation issues
« Reply #11 on: January 08, 2022, 01:56:30 am »
Hello,
If this code line gave an error
Code: Pascal  [Select][+][-]
  1. if NullPtr^ = 0 then // on this line

then the message makes no sense as 0 is an integer, not a boolean.

Made no sense to me, either. I just report what I see.

it seems that you haven't the last version of Zeos 7.2.14 (may be you have the 7.2.12 or 7.2.10 version)

in version 7.2.14 of ZdbcCache.pas :
Code: Pascal  [Select][+][-]
  1. procedure TZRowAccessor.SetDataSet(ColumnIndex: Integer; const Value: IZDataSet);
  2. var
  3.   Ptr: PPointer;
  4.   NullPtr: PByte;
  5. begin
  6. {$R-}
  7. {$IFNDEF DISABLE_CHECKING}
  8.   CheckColumnIndex(ColumnIndex);
  9.   if not (FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] = stDataSet) then begin
  10.     raise EZSQLException.Create(
  11.       Format(SCanNotAccessBlobRecord,
  12.       [ColumnIndex, DefineColumnTypeName(FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}])]));
  13.   end;
  14. {$ENDIF}
  15.  
  16.   Ptr := PPointer(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] + 1]);
  17.   NullPtr := PByte(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}]]);
  18.   {$IFDEF RangeCheckEnabled}{$R+}{$ENDIF}
  19.  
  20.   if NullPtr^ = 0 then
  21.     IZDataSet(Ptr^) := nil
  22.   else
  23.     Ptr^ := nil;

in version 7.2.12 :
Code: Pascal  [Select][+][-]
  1. procedure TZRowAccessor.SetDataSet(ColumnIndex: Integer; const Value: IZDataSet);
  2. var
  3.   Ptr: PPointer;
  4.   NullPtr: {$IFDEF WIN64}PBoolean{$ELSE}PByte{$ENDIF};
  5. begin
  6. {$R-}
  7. {$IFNDEF DISABLE_CHECKING}
  8.   CheckColumnIndex(ColumnIndex);
  9.   if not (FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] = stDataSet) then begin
  10.     raise EZSQLException.Create(
  11.       Format(SCanNotAccessBlobRecord,
  12.       [ColumnIndex, DefineColumnTypeName(FColumnTypes[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}])]));
  13.   end;
  14. {$ENDIF}
  15.  
  16.   Ptr := PPointer(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] + 1]);
  17.   NullPtr := {$IFDEF WIN64}PBoolean{$ELSE}PByte{$ENDIF}(@FBuffer.Columns[FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}]]);
  18.   {$IFDEF RangeCheckEnabled}{$R+}{$ENDIF}
  19.  
  20.   {$IFNDEF FPC}
  21.   if NullPtr^ = {$IFDEF WIN64}false{$ELSE}0{$ENDIF} then  //M.A. if NullPtr^ = 0 then
  22.   {$ELSE}
  23.   if NullPtr^ = 0 then
  24.   {$ENDIF}
  25.     IZDataSet(Ptr^) := nil
  26.   else
  27.     Ptr^ := nil;

NullPtr is a PBoolean if you compile on Win64 in this version (no condition on FPC)

Friendly, J.P
« Last Edit: January 08, 2022, 02:06:09 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

wmeyer

  • New Member
  • *
  • Posts: 26
Re: Lazarus 2.2.0: Major installation issues
« Reply #12 on: January 08, 2022, 07:19:36 pm »
Quote
it seems that you haven't the last version of Zeos 7.2.14 (may be you have the 7.2.12 or 7.2.10 version)

Not any more! Ripping away folders -- including the AppData\Local\lazarus folder -- then re-installing seems to have eliminated the oddities.

And for what it is worth to anyone here, LazProfiler seems to have issues. Being very cautious in installing things, even to the extent of installing dependencies one by one, and LazProfiler made problems when I installed it.

dsiders

  • Hero Member
  • *****
  • Posts: 1079
Re: Lazarus 2.2.0: Major installation issues
« Reply #13 on: January 08, 2022, 08:42:25 pm »
Quote
it seems that you haven't the last version of Zeos 7.2.14 (may be you have the 7.2.12 or 7.2.10 version)

Not any more! Ripping away folders -- including the AppData\Local\lazarus folder -- then re-installing seems to have eliminated the oddities.

And for what it is worth to anyone here, LazProfiler seems to have issues. Being very cautious in installing things, even to the extent of installing dependencies one by one, and LazProfiler made problems when I installed it.

I've had issues when installing things from OPM that were previously installed in another non-per-user location, and vice-versa. Was that your issue? Or is something actually broken with LazProfiler?
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018