Menu

#1803 JavaSideKick Properties parser: fails to parse files that do not end with a newline

None
closed-fixed
None
5
2014-11-17
2014-11-08
Alan Ezust
No

If the last line of a property file is a key=value but missing a newline on the end, does that make the whole file invalid? Because property parser fails to show me anything in the tree when such files are parsed in sidekick.

Discussion

  • Alan Ezust

    Alan Ezust - 2014-11-09

    Ticket moved from /p/jedit/bugs/3894/

     
  • Dale Anson

    Dale Anson - 2014-11-09
    • assigned_to: Dale Anson
    • Group: minor bug -->
     
  • Dale Anson

    Dale Anson - 2014-11-16
    • status: open --> closed-fixed
     
  • Dale Anson

    Dale Anson - 2014-11-16

    Fixed in revision 23735.

     
  • Alan Ezust

    Alan Ezust - 2014-11-16

    now it parses, but the last line does not show up in the sidekick tree.

     
  • Alan Ezust

    Alan Ezust - 2014-11-16

    Also, if you parse the HelpServer.props file from HelpServer plugin, you get a weird error message in the ErrorList:
    /home/ezust/workspace/jedit/plugins/HelpServer/HelpServer.props
    3:Array index out of range: 33

     
  • Alan Ezust

    Alan Ezust - 2014-11-16
    • status: closed-fixed --> pending
     
  • Dale Anson

    Dale Anson - 2014-11-17

    There was an off-by-one error in the line end column calculation that should be fixed in revision 23737. Please give it a try and let me know.

     
  • Alan Ezust

    Alan Ezust - 2014-11-17

    Looks good to me now.

     
  • Alan Ezust

    Alan Ezust - 2014-11-17
    • status: pending --> closed-fixed
     
  • Dale Anson

    Dale Anson - 2014-11-17

    A better fix is in revision 23738 -- I'd forgotten to apply the same fix to multi-line properties so folding was off a line.

     

Log in to post a comment.