Menu

#472 subs that start with "tr_" break the Outline

v0.5.x
closed-fixed
nobody
Outline (28)
5
2008-02-10
2008-02-06
Anonymous
No

EPIC fails to see subroutines in a module the begin with "tr_", or that come after a subroutine that begins with "tr_".

Actually, they break whatever mechanism feeds the Outline, as attempts to go to any subroutine defined after the "tr_..." subroutine via the 'Open Declaration' command will fail.

Observed in version 0.5.42

Discussion

  • Nobody/Anonymous

    sample module

     
  • Nobody/Anonymous

    Logged In: NO

    Well that was awesome. After many failed attempts to submit that while being logged in, it also attached the wrong version of the file. The version of the file that will actually show the bug looks like this:

    (sorry, I don't see a way to correct the attachment)

    package EpicTRBug;

    # demonstrate a bug with the EPIC plug-in
    # for Eclipse, wherein subroutines that start
    # with 'tr_' throw off the file parser and
    # result in all subs from that point on being
    # hidden from EPIC. (they don't show in the
    # Outline and you cannot navigate to them with
    # 'Open Declaration' [default keybinding: F3])

    #-------------------------------------------------------------------------

    sub foo {
    return "foo";
    }

    #-------------------------------------------------------------------------

    sub tr_bar {
    return "bar";
    }

    #-------------------------------------------------------------------------

    sub baz {
    return "baz";
    }

    #-------------------------------------------------------------------------

    1;

     
  • Jan Ploski

    Jan Ploski - 2008-02-10

    Logged In: YES
    user_id=86907
    Originator: NO

    Fixed in 0.5.43/0.6.20.

     
  • Jan Ploski

    Jan Ploski - 2008-02-10
    • status: open --> closed-fixed
     

Log in to post a comment.