Sign in Join

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

Mailing lists / lazarus / 2013-07

v1.0.8 - why would code navigation stop working?

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

What would cause code navigation (Ctrl+Click) to stop working in Lazarus IDE. I have the correct FPC source path, compiler path, packages etc. Compiling my projects work fine, but for the life of me I don't know why code navigation stopped working.

I even tried switching between FPC 2.6.2 and 2.7.1 (compiler and source path), but that made no difference to Lazarus IDE.

Lazarus 0.9.30.1 in the same Windows 2000 VM works fine, but my installed Lazarus 1.0.8 doesn't.

Maybe related to the above problem.... If I press Ctrl+Space to prompt code insight (list of available methods to an object) then Lazarus IDE *always* jumps to a code unit in fpGUI, and always to the 'contnrs' unit in the interface's uses clause. Yet, there is NO coding errors because the project compiles fine.

Regards,
- Graeme -

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 23 lines
Graeme Geldenhuys hat am 3. Juli 2013 um 16:11 geschrieben: Hi, What would cause code navigation (Ctrl+Click) to stop working in Lazarus IDE. I have the correct FPC source path, compiler path, packages etc. Compiling my projects work fine, but for the life of me I don't know why code navigation stopped working. I even tried switching between FPC 2.6.2 and 2.7.1 (compiler and source path), but that made no difference to Lazarus IDE. Lazarus 0.9.30.1 in the same Windows 2000 VM works fine, but my installed Lazarus 1.0.8 doesn't. Maybe related to the above problem.... If I press Ctrl+Space to prompt code insight (list of available methods to an object) then Lazarus IDE *always* jumps to a code unit in fpGUI, and always to the 'contnrs' unit in the interface's uses clause. Yet, there is NO coding errors because the project compiles fine.

Is there an error message? Which one?

Have you tried Tools / Rescan FPC source directory?

Check if the FPC source directory points to the directory containing the 'rtl' and 'packages' directory.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote
Is there an error message? Which one?

It seems the Windows version of Lazarus doesn't output anything to a console - I guess that is normal for -WG compiled apps.

Have you tried Tools / Rescan FPC source directory?

Ah, that seems to have done the trick. I don't know that menu option existed, that is why I tried switching the FPC source path - thinking it would trigger a source directory rescan (but seems it didn't).

Thanks for your quick help.

Regards,
- Graeme -

Reply by email

Marcos Douglas
to Graeme Geldenhuys: What would cause code navigation (Ctrl+Click) to stop working in Lazarus IDE. I have the…
Graeme Geldenhuys wrote 19 lines
Hi, What would cause code navigation (Ctrl+Click) to stop working in Lazarus IDE. I have the correct FPC source path, compiler path, packages etc. Compiling my projects work fine, but for the life of me I don't know why code navigation stopped working. I even tried switching between FPC 2.6.2 and 2.7.1 (compiler and source path), but that made no difference to Lazarus IDE. Lazarus 0.9.30.1 in the same Windows 2000 VM works fine, but my installed Lazarus 1.0.8 doesn't. Maybe related to the above problem.... If I press Ctrl+Space to prompt code insight (list of available methods to an object) then Lazarus IDE *always* jumps to a code unit in fpGUI, and always to the 'contnrs' unit in the interface's uses clause. Yet, there is NO coding errors because the project compiles fine.

Works for me using Lazarus 1.1 r41983 FPC 2.6.2 i386-win32-win32/win64

Marcos Douglas

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: It seems the Windows version of Lazarus doesn't output anything to a console - I guess…
Show quoted text 10 lines
Graeme Geldenhuys hat am 3. Juli 2013 um 16:37 geschrieben: On 2013-07-03 15:24, Mattias Gaertner wrote: > > Is there an error message? Which one? It seems the Windows version of Lazarus doesn't output anything to a console - I guess that is normal for -WG compiled apps.

I meant the error message when the IDE jump to fpgui to the 'contnrs'.

Show quoted text 6 lines
> Have you tried Tools / Rescan FPC source directory? Ah, that seems to have done the trick. I don't know that menu option existed, that is why I tried switching the FPC source path - thinking it would trigger a source directory rescan (but seems it didn't).

The IDE caches the results of the scans. When you update the directory (e.g. svn update), then you have to trigger a rescan.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote
I meant the error message when the IDE jump to fpgui to the 'contnrs'.

"Find find the unit 'contnrs' used in fpg_base.pas"

[error message from memory, seeing as I can't reproduce it now because the original issue is fixed]

The IDE caches the results of the scans. When you update the directory (e.g. svn update), then you have to trigger a rescan.

Where does it store the cache? I had Lazarus 0.9.30.1 installed from the setup.exe I downloaded from SourceForge [done about a year ago]. Earlier this year I downloaded the install for v1.0.8. I first renamed the old c:\lazarus directory (so I have a backup), then installed the new version.

For this Windows VM, I don't install Lazarus from any source code repository.

Regards,
G.

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 6 lines
On 2013-07-03 16:00, Mattias Gaertner wrote: > > I meant the error message when the IDE jump to fpgui to the 'contnrs'. "Find find the unit 'contnrs' used in fpg_base.pas"

Does not compute.

[error message from memory, seeing as I can't reproduce it now because the original issue is fixed]

With the right error message I could improve it. Maybe the next time.

> The IDE caches the results of the scans. When you update the directory (e.g. svn > update), then you have to trigger a rescan. Where does it store the cache?

In the ~/.lazarus/fpcdefines.xml

Show quoted text 8 lines
I had Lazarus 0.9.30.1 installed from the setup.exe I downloaded from SourceForge [done about a year ago]. Earlier this year I downloaded the install for v1.0.8. I first renamed the old c:\lazarus directory (so I have a backup), then installed the new version. For this Windows VM, I don't install Lazarus from any source code repository.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote
Does not compute.

Good - that was the worst case of finger trouble I have even experienced. :-/

My apologies, the error message should have read...

"Can not find unit contnrs used by fpg_base."

Regards,
G.

Reply by email