Sign in Join

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

Mailing lists / lazarus / 2013-04

Code navigation sometimes doesn't work

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Lubos Pintes

Hi,
I opened lcl.lpk package. Located some unit and opened it. I am on Windows so am interested in Windows stuff.
So for example I opened win32\interfaces.pp and tried to find implementation for CreateWidgetSet. I was placed somewhere in some uses section of some unit. Why?
Also for DebugLn, or PEventHandler. But switching between interface and implementation of class TWin32WidgetSet worked fine. Why is that?

Reply by email

Mattias Gaertner
to Lubos Pintes
Show quoted text 9 lines
Lubos Pintes hat am 5. April 2013 um 11:19 geschrieben: Hi, I opened lcl.lpk package. Located some unit and opened it. I am on Windows so am interested in Windows stuff. So for example I opened win32\interfaces.pp and tried to find implementation for CreateWidgetSet. I was placed somewhere in some uses section of some unit. Why?

The reason is shown in the Messages window.

Also for DebugLn, or PEventHandler. But switching between interface and implementation of class TWin32WidgetSet worked fine. Why is that?

To jump between declaration and body codetools only need to scan the unit.

Mattias

Reply by email

Lubos Pintes
to Mattias Gaertner

OK, I finally managed how to set the FPC source directory. Everything now seems to work. But I was a bit confused. I saw a message like "Cannot find unit FPImage".
The unit was totally unrelated with what I searched for. So probably the process stopped after first error?

D?a 5. 4. 2013 11:30 Mattias Gaertner wrote / nap?sal(a):

Show quoted text 24 lines
> Lubos Pintes hat am 5. April 2013 um 11:19 geschrieben: > > > Hi, > I opened lcl.lpk package. Located some unit and opened it. I am on > Windows so am interested in Windows stuff. > So for example I opened win32\interfaces.pp and tried to find > implementation for CreateWidgetSet. I was placed somewhere in some uses > section of some unit. Why? The reason is shown in the Messages window. > Also for DebugLn, or PEventHandler. But switching between interface and > implementation of class TWin32WidgetSet worked fine. > Why is that? To jump between declaration and body codetools only need to scan the unit. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Lubos Pintes
Show quoted text 7 lines
Lubos Pintes hat am 5. April 2013 um 12:38 geschrieben: OK, I finally managed how to set the FPC source directory. Everything now seems to work. But I was a bit confused. I saw a message like "Cannot find unit FPImage". The unit was totally unrelated with what I searched for.

Codetools can not know that an used unit is not relevant for a search until it has parsed it.

So probably the process stopped after first error?

Yes.

Mattias

Reply by email