Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Not A Bug
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.x+
-
Component/s: Windows
-
Labels:None
-
Environment:The problem is platform independent, it occures when having \r\n as a line delimiter. Those usually appear when creating/editing files under Windows.
-
Number of attachments :
Description
When working with a Ruby code file that contains \r\n as line delimiters, the position of ast-nodes at the end of a line have incorrect position information. Namely the position includes the \r which is in fact one character too much.
The position error origins in the wrappedRead() method of the LexerSource. There the a \r with following \n is jumped and the position increased, which results in a position that exceeds the actual position by one.
Proposed solution is not to skip the \r. Return it as result of wrappedRead() it then should be treated like a white space.
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | JRuby 0.9.9 [ 13280 ] |
Charles Oliver Nutter
made changes -
| Assignee | Thomas E Enebo [ enebo ] |
Ola Bini
made changes -
| Assignee | Thomas E Enebo [ enebo ] | Ola Bini [ olagus ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Thomas E Enebo
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Ola Bini
made changes -
| Assignee | Ola Bini [ olagus ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 0.9.9 [ 13280 ] | |
| Fix Version/s | JRuby 1.0.0 [ 13070 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.0.0RC1 [ 13070 ] | |
| Fix Version/s | JRuby 1.0.0 [ 13457 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.0.0 [ 13502 ] | |
| Fix Version/s | JRuby 1.0.0RC2 [ 13457 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.x [ 13421 ] | |
| Fix Version/s | JRuby 1.0.0RC3 [ 13502 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.1.0 [ 13534 ] | |
| Fix Version/s | JRuby 1.x [ 13421 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.1 [ 13820 ] | |
| Fix Version/s | JRuby 1.1b1 [ 13534 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.1RC2 [ 13820 ] | |
| Fix Version/s | JRuby 1.1 [ 13990 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.1 [ 13990 ] | |
| Fix Version/s | JRuby 1.1+ [ 13421 ] |
Charles Oliver Nutter
made changes -
| Component/s | Windows [ 13600 ] | |
| Component/s | Parser [ 12229 ] |
Charles Oliver Nutter
made changes -
| Resolution | Not A Bug [ 6 ] | |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Assignee | Charles Oliver Nutter [ headius ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Fix seems good, and have been applied. Thanks Thomas.