Griffon JavaFX sample app can't compile

315 Views Asked by At

I can't run the sample app from aalmiray's blog "The Griffon Trove: dialogs and JavaFX".

[griffonc] Compiling 1 source file to C:\Users\foo.griffon\1.0.1\projects\sample\classes\main Compilation error: BUG! exception in phase 'semantic analysis' in source unit 'C:\Users\foo\sample\griffon-app\views\sample\DialogView.groovy' Invalid index

Commenting the import javafx.geometry.Insets helps by compiling.

Groovy Version: 1.8.5 JVM: 1.6.0_24 Vendor: Sun Microsystems Inc.
OS: Windows 7 x64
Griffon Version: 1.0.1
JavaFX Version: 2.1 Runtime

Link is here.

1

There are 1 best solutions below

2
On

It looks to me you're being affected by http://jira.codehaus.org/browse/GRIFFON-517. If this is the case then please make sure you're running latest versions of the JavaFX and GroovyFX plugins. You can quickly check if a plugin requires updates by invoking griffon list-plugin-updates.

You can also check http://artifacts.griffon-framework.org for updates.