#22 =cut breaks Outline/subroutine list

v0.1.0
closed
Jochen Ruehl
None
5
2003-09-04
2003-07-26
Zak Burke
No

Using =cut comments causes all subroutines after the
current one to disappear from the Outline pane's
"Subroutines" list.

The problem occurs on WinXP Pro with JDK 1.3.1_07 and
J2SDK 1.4.2; Eclipse 2.1.0 and 3.0M2, ActiveState Perl
5.6.1 (build 635).

Discussion

  • Jochen Ruehl
    Jochen Ruehl
    2003-07-27

    • assigned_to: nobody --> luelljoc
     
  • Logged In: NO

    could we increase the priority for this bug? it is making
    eclipse useless for perl

     
  • Jochen Ruehl
    Jochen Ruehl
    2003-08-02

    Logged In: YES
    user_id=274815

    Couldn't verify the problem.
    An example code would be useful.

     
  • Zak Burke
    Zak Burke
    2003-08-12

    POD invalidates subroutine list

     
    Attachments
  • Zak Burke
    Zak Burke
    2003-08-12

    Logged In: YES
    user_id=831260

    See attached file with simple POD and no subs listed under
    the Subroutines list.

     
  • Jochen Ruehl
    Jochen Ruehl
    2003-08-12

    Logged In: YES
    user_id=274815

    Tried your code and it works for me (see image sub_bad_2.png).
    I've no idea what the problem might be.
    Could you please attach a code snipped as text file and I will recheck with
    this code snipped.

     
  • Jochen Ruehl
    Jochen Ruehl
    2003-08-12

     
    Attachments
  • Zak Burke
    Zak Burke
    2003-08-12

    Logged In: YES
    user_id=831260

    This appears to be a Windows problem -- I installed Eclipse
    2.1.1 on a Mac OS X box and it works fine. I don't have
    access to test on a Linux box, but that appears to be your
    test environment. FWIW, I tried upgrading Perl from 5.6.1 to
    5.8.0 but that didn't fix the problem.

     
  • Logged In: NO

    I've the same problem with eclipse2.1.1, Windows 2000,
    ActiveState Perl 5.6.1 (build 629), J2SDK 1.3.1_09 (Sun),
    J2SDK 1.4.2 (Sun) und IBM Devevoper Kit 1.3.

    Thomas

     
  • Will Roethel
    Will Roethel
    2003-08-20

    Logged In: YES
    user_id=848172

    I've had the same problem (on windows and linux, when
    looking at files created in windows). I've found two things:

    1) In linux (or windows) the outline/subroutine list
    disappears when I introduce a space (or any other character
    - like a tab) after the "=cut" command - like "=cut "

    2) Files created in windows have a trailing carrige return
    (try cat -A file.pl under linux or windows/cywin to have the
    hidden characters displayed as "^M").

    So I guess these trailing hidden characters (or space?)
    cause some problems with the recognizion of pod commands (on
    any system). If you have cygwin and the dos2unix command
    installed you can try dos2unix file.pl and you should see
    the the problem disappear - temporarily at least (or better
    go to your package directory and run dos2unix *.pl). Is this
    something that can be changed in epic(?).

    (Funny enough - once touched with dos2unix the trailing
    CR's do not seem to reappear when you edit files in windows.
    Maybe someone has an answer to that? Not important though).

     
  • Jochen Ruehl
    Jochen Ruehl
    2003-08-21

    Logged In: YES
    user_id=274815

    Please check out the new version
    (org.epic.perleditor_0.1.0_alpha_20030820).

    This should (hopefully) fix the bug.

     
  • Logged In: NO

    Thanx. :-) The new version is o.k.

    Thomas

     
  • Jochen Ruehl
    Jochen Ruehl
    2003-09-04

    • status: open --> closed