Sign in Join

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

Mailing lists / lazarus / 2010-02

include file not found

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Bernd Kreuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to do something that might be done in a completely different way but I have no idea how. I'm trying to fix a bug in JCF2, the code formatting tool of lazarus.

I thought the best way to do this is make the changes to these files, recompile the IDE and see if it is fixed.

Therefore I started lazarus (a recent svn version that works just fine with all my other projects), opened the lazarus project lazarus.lpi and then in an editor window opened the file
"C:\lazarus\components\jcf2\IdePlugin\JcfIdeMain.pas" as a starting point to find my way through this big bunch of code to find all the other parts of this puzzle. Since JCf2 is part of the IDE and compiled in, all of its files should belong to the project, right? Wrong!

Whenever I try to do any "find definition" in this file I immediately get the following error:

C:\lazarus\components\jcf2\IdePlugin\JcfIdeMain.pas(34,5) Error: include
file not found "JcfGlobal.inc"

I have tried to use the project/compiler options to add include paths, i have tried the project inspector to add the file *itself*, i have tried almost any of the dozens of paths all across the project and IDE configuration dialogs but it just won't find this file.

What am I doing wrong?

1) where does it search for files when I do a "find declaration" and how can I influence this? Are there any documents I should read? Are there any documents at all?

2) what would be the correct way of doing what I am trying to do?

Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLdmyJxT6R4jlFoh0RAijpAJ9vBEk+d24nO9P3y3c5CP6XCg2etACffLVI ql/SjQNNmIL9Xcn4rBicggw=
=5BHA
-----END PGP SIGNATURE-----

Reply by email

Mattias Gaertner
to Bernd Kreuss
Show quoted text 9 lines
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to do something that might be done in a completely different way but I have no idea how. I'm trying to fix a bug in JCF2, the code formatting tool of lazarus. I thought the best way to do this is make the changes to these files, recompile the IDE and see if it is fixed.

Yes.

Show quoted text 7 lines
Therefore I started lazarus (a recent svn version that works just fine with all my other projects), opened the lazarus project lazarus.lpi and then in an editor window opened the file "C:\lazarus\components\jcf2\IdePlugin\JcfIdeMain.pas" as a starting point to find my way through this big bunch of code to find all the other parts of this puzzle. Since JCf2 is part of the IDE and compiled in, all of its files should belong to the project, right? Wrong!

Very wrong!
JCF2 is part of the package jcfidelazarus, so all its files should belong to this package.

Show quoted text 5 lines
Whenever I try to do any "find definition" in this file I immediately get the following error: C:\lazarus\components\jcf2\IdePlugin\JcfIdeMain.pas(34,5) Error: include file not found "JcfGlobal.inc"

Not here. Here it works.

Check if you have the package jcfidelazarus installed.

Show quoted text 10 lines
I have tried to use the project/compiler options to add include paths, i have tried the project inspector to add the file *itself*, i have tried almost any of the dozens of paths all across the project and IDE configuration dialogs but it just won't find this file. What am I doing wrong? 1) where does it search for files when I do a "find declaration" and how can I influence this? Are there any documents I should read? Are there any documents at all?

There are lots of docs in the wiki.
About packages in general:
http://wiki.lazarus.freepascal.org/Lazarus_Packages

The lazarus.lpi is somewhat special, because it appears to be only the basic IDE without any extra packages. Do not change any setting there. First check the package.

2) what would be the correct way of doing what I am trying to do?

Check that you are in the right directory and that the environment options show the correct paths.

Mattias

Reply by email

Bernd Kreuss
to Mattias Gaertner

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mattias Gaertner wrote
Very wrong! JCF2 is part of the package jcfidelazarus, so all its files should belong to this package.

Yes, I didn't use any custom packages before or did anything with seems I have now figured out the correct way:

leave lazarus.lpi completely alone and instead make a fresh project to test the IDE with, open the package (view code) and from the auto-generated main unit that opens in the editor quickly find and open all the other units I am interested in via "find declaration" which then seems to work)

now make the changes -> compile package -> install package (rebuild IDE)

I even managed to find and fix the bug in JCF2 now (see my other post) :-)

Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLdqolxT6R4jlFoh0RAmgXAJ40y2q1a+FYP8MmcQw3W/+g++8AlgCfUqFo 8G4uTOr1t5ai+FCPhhQVGzo=
=4/P1
-----END PGP SIGNATURE-----

Reply by email