Sign in Join

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

Mailing lists / lazarus / 2012-04

RemoveDir: Error: Identifier not found

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Jürgen Hestermann

If I hit Alt+Up on "RemoveDir" within my program I am moved to D:\Programme\lazarus\fpc\2.6.1\source\rtl\objpas\sysutils\diskh.inc(21,10) with the function header declaration but when doing this again on "RemoveDir" within this file to see the implementation I get:

Error: identifier not found: RemoveDir

Is this a bug or some kind of limitation?

Reply by email

patspiper
to Jürgen Hestermann
J?rgen Hestermann wrote 9 lines
If I hit Alt+Up on "RemoveDir" within my program I am moved to D:\Programme\lazarus\fpc\2.6.1\source\rtl\objpas\sysutils\diskh.inc(21,10) with the function header declaration but when doing this again on "RemoveDir" within this file to see the implementation I get: Error: identifier not found: RemoveDir Is this a bug or some kind of limitation?

Seems to be a bug depsite Alt+up being 'find declaration'

Try ctrl+shift+down instead.

Stephano

Reply by email

Jürgen Hestermann
to patspiper
Show quoted text 14 lines
On 25/04/12 19:17, J?rgen Hestermann wrote: > If I hit Alt+Up on "RemoveDir" within my program I am moved to > D:\Programme\lazarus\fpc\2.6.1\source\rtl\objpas\sysutils\diskh.inc(21,10) > > with the function header declaration but when doing this again > on "RemoveDir" within this file to see the implementation I get: > > Error: identifier not found: RemoveDir > > Is this a bug or some kind of limitation? Seems to be a bug depsite Alt+up being 'find declaration' Try ctrl+shift+down instead.

Yepp, this works!
Thanks!
Though I will have a hard time to train myself
when to use Alt+Up and when Ctrl+Shift+Down.

Reply by email

Mattias Gaertner
to Jürgen Hestermann
Show quoted text 19 lines
patspiper schrieb: > On 25/04/12 19:17, J?rgen Hestermann wrote: >> If I hit Alt+Up on "RemoveDir" within my program I am moved to >> D:\Programme\lazarus\fpc\2.6.1\source\rtl\objpas\sysutils\diskh.inc(21,10) >> >> with the function header declaration but when doing this again >> on "RemoveDir" within this file to see the implementation I get: >> >> Error: identifier not found: RemoveDir >> >> Is this a bug or some kind of limitation? > Seems to be a bug depsite Alt+up being 'find declaration' > > Try ctrl+shift+down instead. > Yepp, this works! Thanks! Though I will have a hard time to train myself when to use Alt+Up and when Ctrl+Shift+Down.

Ctrl+Shift+Down jumps from method/procedure declaration to the the body and back.
Find declaration searches the next declaration. For example if RenameDir would be an "override" method it would take you to the method in the ancestor.
You can also use Find declaration to find out if the declaration hides another declaration.

Mattias

Reply by email