Menu

#226 Parser Java: Intending comments

closed-fixed
1
2005-09-12
2002-11-19
No

Using Eclipse if it matters in this.

When have multiline comments inside java file Jalopy
has started to intend differently. I think change came in
b10.

- when writing comments first time correctly it works
- if have comment so that have to add tabs to beginning
of line to get *:s aligned next formatting moves * way
back.
- if then correct formatting by removing extra spaces
then next formatting doesn't change it anymore

Also it seems that even I have "Use tabs to intend"
enabled these comment lines are intended with spaces.
Normal code lines seem to get tab intendition.

Discussion

  • Marco Hunsicker

    Marco Hunsicker - 2002-11-19

    Logged In: YES
    user_id=44430

    I need more information to be able to investigate. Please read
    the FAQ entry about submitting bug reports:
    http://jalopy.sf.net/faq.html

    Thanks.

     
  • Jari Kujansuu

    Jari Kujansuu - 2002-11-19

    java source files showing how comments move

     
  • Jari Kujansuu

    Jari Kujansuu - 2002-11-19

    jalopy preferences

     
  • Jari Kujansuu

    Jari Kujansuu - 2002-11-19

    Logged In: YES
    user_id=648801

    It seems that it worked differently than I tought.

    Attached source files showing how comments move.
    1) original file before any formatting
    2) first format, parts of comments have moved to beginning
    of line
    3) corrected formatting manually
    4) second format, corrected lines have moved to original
    place + whitespace manually added

    Also attached my jalopy preferences.

    I have Jalopy b10 and using WSAD 5.0 (Eclipse 2.0.1) on XP.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-25
    • priority: 5 --> 1
    • assigned_to: nobody --> marcohu
    • status: open --> open-fixed
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-25

    Logged In: YES
    user_id=44430

    The problem occurs because of mixed line separators. Your
    original file uses "\r\n" for the code and "\n" for the
    comment lines. Currently Jalopy expects all separators in
    just one flavor. I will change the logic to handle all
    flavors with the next version.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-30
    • labels: 466637 --> Parser Java
    • summary: Intending comments --> Parser Java: Intending comments
     
  • S

    S - 2005-09-12
    • milestone: --> Archive_pre_jalopy_1.5_bugs
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.