Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#604 PerlValidator.underlineError exception

open
nobody
Editor (234)
5
2010-10-15
2010-10-15
Anonymous
No

Using stable version 0.5.46 on a virgin install of IDE for Java Developers Version: Helios Service Release 1 Build id: 20100917-0705.
Using cygwin perl (set up properly in EPIC settings). Created a Perl project, entered some trivial code, ran a debug session everything worked fine.
Upon deliberately putting a syntax error in the code and saving, the validator threw an exception (stack trace from error log follows):

!SESSION 2010-10-15 18:12:33.218 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: javaCommentTaskTags in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: codeAssist in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: matchingBracketsHighlightColor2 in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: findScopeColor2 in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: linkedPositionColor2 in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: linkColor2 in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS unused message: synchronizeOnCursor in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS missing message: completionInserts in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.eclipse.osgi 2 1 2010-10-15 18:13:47.062
!MESSAGE NLS missing message: completionOverwrites in: org.epic.perleditor.preferences.PreferencesMessages

!ENTRY org.epic.perleditor 4 0 2010-10-15 18:21:42.218
!MESSAGE Unexpected exception in PerlValidator.underlineError: /first/first.pl, lineNo: 38; report it as bug in plug-in org.epic.perleditor
!STACK 0
org.eclipse.jface.text.BadLocationException
at org.eclipse.jface.text.ListLineTracker.getLineOffset(ListLineTracker.java:201)
at org.eclipse.jface.text.AbstractLineTracker.getLineOffset(AbstractLineTracker.java:169)
at org.eclipse.jface.text.AbstractDocument.getLineOffset(AbstractDocument.java:922)
at org.epic.perleditor.editors.util.PerlValidatorBase.underlineError(PerlValidatorBase.java:298)
at org.epic.perleditor.editors.util.PerlValidatorBase.validate(PerlValidatorBase.java:131)
at org.epic.perleditor.editors.PerlSyntaxValidationThread.runImpl(PerlSyntaxValidationThread.java:84)
at org.epic.perleditor.editors.PerlSyntaxValidationThread.run(PerlSyntaxValidationThread.java:67)

Discussion