Recent

Author Topic: chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef  (Read 1638 times)

Raf20076

  • Full Member
  • ***
  • Posts: 173
    • https://github.com/Raf20076
Hi Guys

I want to install JPLib component from https://github.com/jackdp/JPLib and I got error

Update it happens when I try install any component.

chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef

My Lazarus IDE is 2.0.10 FPC 3.2.0 SVN 63526 is fresh installed without any extra components.

This error reffers to chmreader unit,

line 80 function  FindBlocksFromUnCompressedAddr(var ResetTableEntry: TPMGListChunkEntry;

Have you got any idea what happens? It happens during installation (rebuilding IDE)

I have found this solution but it doesn't work https://bugs.freepascal.org/view.php?id=35721

Thanks
« Last Edit: November 22, 2020, 10:27:17 am by Raf20076 »

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef
« Reply #1 on: November 22, 2020, 11:16:24 am »
I cannot present you a solution for how to fix this unit not found issue, but a workaround. Looking at the package units in the package editor I see that none of them shows the green triangle, i.e. none of them contains registration code. This means that it is not necessary to "install" the package, just opening it in the package editor (and maybe compiling) is enough so that the IDE knows where the package is located.
« Last Edit: November 22, 2020, 11:35:20 am by wp »

Raf20076

  • Full Member
  • ***
  • Posts: 173
    • https://github.com/Raf20076
Re: chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef
« Reply #2 on: November 22, 2020, 11:49:10 am »
I have found solution

https://forum.lazarus.freepascal.org/index.php/topic,50528.0.html https://forum.lazarus.freepascal.org/index.php/topic,50528.msg368954.html#msg368954

In Lazarus IDE -> Package -> Open Package File (.lpk) -> Choose (C:\lazarus\components\sparta\generics\sparta_genericks.lpk)

Then click source/generic..pas files and tick off all of them in Use unit in File Properties at the bottom of window.

Close window and save changes. Then remove folder lib in C:\lazarus\components\sparta\generics\lib

So there is a bug and it should be fixed. https://bugs.freepascal.org/view.php?id=35721 The problem keeps going unsolved yet. It supposed to be fixed in Lazarus 2.0.10 but it's not.


Thanks
« Last Edit: November 22, 2020, 11:59:12 am by Raf20076 »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef
« Reply #3 on: November 22, 2020, 12:31:10 pm »
So there is a bug and it should be fixed. https://bugs.freepascal.org/view.php?id=35721 The problem keeps going unsolved yet. It supposed to be fixed in Lazarus 2.0.10 but it's not.

It's fixed in Lazarus trunk. As Juha wrote in the other thread there were merge conflicts when trying to merge it to fixes, thus this will stay a known problem until 2.2 is released.

folkeu08

  • Full Member
  • ***
  • Posts: 106
Re: chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef
« Reply #4 on: February 27, 2021, 12:22:06 pm »
Hi,
the problem is still present under the new version 2.0.12.
Thanks

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef
« Reply #5 on: February 27, 2021, 03:01:03 pm »
the problem is still present under the new version 2.0.12

As the Dragon wrote, the fix will be incorporated for release 2.2.0 so it won't be in any 2.0.xx fixes release. You (and everyone else) will have to wait, probably, about 6 months (around late summer, early autumn), though even that is not (yet) written in stone.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018