Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-12

Packages with IDE integration

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

I am trying to make a package out of Bart's PO checker application. I want to integrate it to Tools menu like LeakView or LazSVN packages are. I don't know why it is so difficult.
This new PoChecker package compiles fine but gives an error when I try to build Lazarus with it. I have compared every detail of it with LeakView package which works and I don't see problems. The error is:

pochecker.pas(76,12) Fatal: Can't find unit PoChecker used by Lazarus

The file contents are copied below. The error comes at RegisterPackage line where the parameter refers to the unit name itself. How can it not find a unit while it is compiling the exact same unit?

To be sure, I have renamed directories that contain files with same names, so they can't be found from a wrong place.
I have done "Clean All + Build" for Lazarus.

Juha

---------
{ This file was automatically created by Lazarus. Do not edit! This source is only used to compile and install the package. }

unit PoChecker;
interface
uses
  ResultDlg, PoFamilies, main, SimplePoFiles, LazarusPackageIntf;
implementation
procedure Register;
begin
  RegisterUnit('main', @main.Register);
end;
initialization
  RegisterPackage('PoChecker', @Register);    <-- error here
end.

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 17 lines
I am trying to make a package out of Bart's PO checker application. I want to integrate it to Tools menu like LeakView or LazSVN packages are. I don't know why it is so difficult. This new PoChecker package compiles fine but gives an error when I try to build Lazarus with it. I have compared every detail of it with LeakView package which works and I don't see problems. The error is: pochecker.pas(76,12) Fatal: Can't find unit PoChecker used by Lazarus The file contents are copied below. The error comes at RegisterPackage line where the parameter refers to the unit name itself. How can it not find a unit while it is compiling the exact same unit? To be sure, I have renamed directories that contain files with same names, so they can't be found from a wrong place. I have done "Clean All + Build" for Lazarus.

There is already a unit "main" in the IDE itself.

Mattias

Reply by email

Juha Manninen
to Mattias Gaertner

2011/12/23, Mattias Gaertner :

There is already a unit "main" in the IDE itself.

Right, the error message was little misleading.

BTW, where does the list of available packages come originally? Now i managed to install the package and then I uninstalled it, and it shows in the available list.
Before any packages are compiled, where does the list come from?

Juha

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 9 lines
2011/12/23, Mattias Gaertner : > There is already a unit "main" in the IDE itself. Right, the error message was little misleading. BTW, where does the list of available packages come originally? Now i managed to install the package and then I uninstalled it, and it shows in the available list. Before any packages are compiled, where does the list come from?

See View / IDE Internals / Package links

Mattias

Reply by email