GoClipse / goclipse

Eclipse IDE for the Go programming language:
http://goclipse.github.io/
Eclipse Public License 1.0
840 stars 287 forks source link

Outline missing, due to error `CommonException: Invalid line, out of bounds.` #156

Closed bruno-medeiros closed 9 years ago

bruno-medeiros commented 9 years ago

Source:

package xpto

import (
    "io"
)

type Receiver interface {
    io.WriteCloser 
}

Outline breaks, with log error after the oracle describe operation:

!ENTRY com.googlecode.goclipse.core 2 0 2015-09-19 18:58:58.440
!MESSAGE Error parsing oracle describe result, for source structure update. 
!STACK 0
melnorme.utilbox.core.CommonException: Invalid line, out of bounds.
    at melnorme.lang.tooling.ops.util.SourceLinesInfo.getValidatedOffset(SourceLinesInfo.java:76)
    at com.googlecode.goclipse.tooling.oracle.OraclePackageDescribeParser.parseSourceRange(OraclePackageDescribeParser.java:202)
    at com.googlecode.goclipse.tooling.oracle.OraclePackageDescribeParser.parseStructureElement(OraclePackageDescribeParser.java:129)