Recent

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

Raf20076

  • Full Member
  • ***
  • Posts: 128
    • 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: 7729
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 »
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

Raf20076

  • Full Member
  • ***
  • Posts: 128
    • 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: 2405
  • 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.

 

TinyPortal © 2005-2018