History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRVY-1580
Type: Exception Exception
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Normal Normal
Assignee: Ilya Sergey
Reporter: Groovy Plugin Reporter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Groovy

java.lang.IndexOutOfBoundsException: Wrong offset: 971

Created: 20 Jun 08 23:44   Updated: 16 Aug 08 14:55
Component/s: Plugin Reports
Affects Version/s: None
Fix Version/s: jetgroovy 1.6

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
Idea build #7757
Revision: 15946
Build: 1.5.15946


 Description  « Hide
I downloaded the latest openjfx-compiler and installed the javafx plugin in my idea and restarted it.
I then set the plugin javafx path to the lib dir in openjfx-compiler.
Then created the demo file HelloCompiledJvaFX.fx shown below.
When attempting to do anything in the java fx file this error occurs.
I am sad that I need to switch back to Eclipse to write my javaFX so I hope you can fix this.

/*

  • HelloCompiledJavaFX.fx - A "Hello World" style, but slightly more
  • sophisticated, compiled JavaFX Script example
    *
  • Developed 2008 by James L. Weaver (jim.weaver at lat-inc.com)
  • to serve as a compiled JavaFX Script example.
    */
    package mypackage;

import javafx.ui.*;
import javafx.ui.canvas.*;

Frame {
title: "Hello Rich Internet Applications!"
width: 550
height: 200
background: Color.WHITE
visible: true
content:
BorderPanel {
top:
FlowPanel {
content:
Button {
text: "Click Me"
action:
function():Void {
MessageDialog { title: "JavaFX Script Rocks!" // This string has a newline in the source code message: "JavaFX Script is Simple, Elegant, and Leverages the Power of Java" visible: true }
}
}
}
center:
Canvas {
content:
Text {
font:
Font { faceName: "Sans Serif" style: FontStyle.BOLD size: 24 }
x: 20
y: 40
stroke: Color.BLUE
fill: Color.BLUE
content: "JavaFX Script Makes RIA Development Easy"
}
}
}
}

java.lang.IndexOutOfBoundsException: Wrong offset: 971
	at com.intellij.openapi.editor.ex.util.SegmentArray.findSegmentIndex(SegmentArray.java:86)
	at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter$HighlighterIteratorImpl.<init>(LexerEditorHighlighter.java:1)
	at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.createIterator(LexerEditorHighlighter.java:115)
	at com.intellij.openapi.editor.impl.IterationState.<init>(IterationState.java:152)
	at com.intellij.openapi.editor.impl.EditorImpl$EditorSizeContainer.a(EditorImpl.java:30)
	at com.intellij.openapi.editor.impl.EditorImpl$EditorSizeContainer.getContentSize(EditorImpl.java:64)
	at com.intellij.openapi.editor.impl.EditorImpl.j(EditorImpl.java:962)
	at com.intellij.openapi.editor.impl.EditorImpl.getPreferredSize(EditorImpl.java:881)
	at com.intellij.openapi.editor.impl.EditorImpl.validateSize(EditorImpl.java:1019)
	at com.intellij.openapi.editor.impl.EditorImpl.b(EditorImpl.java:455)
	at com.intellij.openapi.editor.impl.EditorImpl.access$9100(EditorImpl.java:67)
	at com.intellij.openapi.editor.impl.EditorImpl$EditorDocumentAdapter.documentChanged(EditorImpl.java:2)
	at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:185)
	at com.intellij.openapi.editor.impl.DocumentImpl.access$100(DocumentImpl.java:22)
	at com.intellij.openapi.editor.impl.DocumentImpl$3.afterChangedUpdate(DocumentImpl.java:2)
	at com.intellij.openapi.editor.impl.CharArray.insert(CharArray.java:27)
	at com.intellij.openapi.editor.impl.DocumentImpl.insertString(DocumentImpl.java:186)
	at com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaret(EditorModificationUtil.java:97)
	at com.intellij.openapi.editor.EditorModificationUtil.typeInStringAtCaretHonorBlockSelection(EditorModificationUtil.java:312)
	at com.intellij.openapi.editor.actionSystem.TypedAction$Handler.execute(TypedAction.java:64)
	at com.intellij.codeInsight.editorActions.TypedHandler.execute(TypedHandler.java:481)
	at com.intellij.codeInsight.template.impl.TemplateManagerActions$SpaceHandler.execute(TemplateManagerActions.java:1)
	at com.intellij.codeInsight.lookup.impl.TypedHandler.execute(TypedHandler.java:27)
	at org.jetbrains.plugins.groovy.lang.editor.actions.GroovyTypedHandler.execute(GroovyTypedHandler.java:116)
	at org.jetbrains.plugins.grails.lang.gsp.editor.actions.GspTypedHandler.execute(GspTypedHandler.java:229)
	at com.intellij.openapi.editor.actionSystem.TypedAction$1$1.run(TypedAction.java:108)
	at com.intellij.openapi.application.impl.ApplicationImpl$13.compute(ApplicationImpl.java:1)
	at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:174)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:171)
	at com.intellij.openapi.editor.actionSystem.TypedAction$1.run(TypedAction.java:103)
	at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:103)
	at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:89)
	at com.intellij.openapi.editor.actionSystem.TypedAction.actionPerformed(TypedAction.java:121)
	at com.intellij.openapi.editor.impl.EditorImpl.a(EditorImpl.java:1099)
	at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:789)
	at com.intellij.openapi.editor.impl.EditorImpl$7.keyTyped(EditorImpl.java:7)
	at java.awt.Component.processKeyEvent(Component.java:5996)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2799)
	at java.awt.Component.processEvent(Component.java:5818)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
	at java.awt.Component.dispatchEventImpl(Component.java:4285)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
	at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:172)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.