IDEA 13: problems running a groovy script

I'm just trying out IDEA 13 and noticed that I cannot run groovy scripts that I used to be able to run in IDEA 12 on the same machine, with the same configuration. Looking at the run configuration, the parts that instantiate groovy look very different, and it now appears to use a jet brains class to actually start the groovy runner. Below I attach two class paths, the first is from IDEA 12 where the script runs up without problems, the second is from IDEA 13 where the script fails to start. In order to reproduce this try adding a java.net groovychart snapshot into a project and attempting to run the examples.

Idea version is the V13 release version for Linux 133.193.
OS: Fedora 19.

Where latest in groovy below is:
lrwxrwxrwx. 1 root root   13 Oct 26 13:31 latest -> groovy-2.1.8/

Idea 12 working example:
========================
/usr/java/jdk1.7.0_45/bin/java -Dtools.jar=/usr/java/jdk1.7.0_45/lib/tools.jar -Dgroovy.home=/usr/local/groovy/latest -Dgroovy.starter.conf=/usr/local/groovy/latest/conf/groovy-starter.conf -Didea.launcher.port=7532 -Didea.launcher.bin.path=/usr/local/idea/idea-IU-129.1359/bin -Dfile.encoding=UTF-8 -classpath /usr/local/groovy/latest/lib/groovy-2.1.8.jar:/usr/local/idea/idea-IU-129.1359/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.groovy.tools.GroovyStarter --conf /usr/local/groovy/latest/conf/groovy-starter.conf --main groovy.ui.GroovyMain --classpath /home/dave/IdeaProjects/jmstest/out/production/groovychart:/usr/local/groovy/latest/lib/groovy-jsr223-2.1.8.jar:/usr/local/groovy/latest/lib/commons-logging-1.1.1.jar:/usr/local/groovy/latest/lib/groovy-swing-2.1.8.jar:/usr/local/groovy/latest/lib/asm-tree-4.0.jar:/usr/local/groovy/latest/lib/jcommander-1.27.jar:/usr/local/groovy/latest/lib/ant-junit-1.8.4.jar:/usr/local/groovy/latest/lib/groovy-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-console-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-ant-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-servlet-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-test-2.1.8.jar:/usr/local/groovy/latest/lib/ant-antlr-1.8.4.jar:/usr/local/groovy/latest/lib/groovy-templates-2.1.8.jar:/usr/local/groovy/latest/lib/antlr-2.7.7.jar:/usr/local/groovy/latest/lib/groovy-groovysh-2.1.8.jar:/usr/local/groovy/latest/lib/jansi-1.6.jar:/usr/local/groovy/latest/lib/groovy-bsf-2.1.8.jar:/usr/local/groovy/latest/lib/ant-1.8.4.jar:/usr/local/groovy/latest/lib/jline-1.0.jar:/usr/local/groovy/latest/lib/groovy-jmx-2.1.8.jar:/usr/local/groovy/latest/lib/gpars-1.0.0.jar:/usr/local/groovy/latest/lib/groovy-docgenerator-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-json-2.1.8.jar:/usr/local/groovy/latest/lib/asm-4.0.jar:/usr/local/groovy/latest/lib/junit-4.11.jar:/usr/local/groovy/latest/lib/qdox-1.12.1.jar:/usr/local/groovy/latest/lib/groovy-groovydoc-2.1.8.jar:/usr/local/groovy/latest/lib/xstream-1.4.2.jar:/usr/local/groovy/latest/lib/testng-6.8.jar:/usr/local/groovy/latest/lib/jsr166y-1.7.0.jar:/usr/local/groovy/latest/lib/asm-analysis-4.0.jar:/usr/local/groovy/latest/lib/groovy-xml-2.1.8.jar:/usr/local/groovy/latest/lib/ivy-2.2.0.jar:/usr/local/groovy/latest/lib/commons-cli-1.2.jar:/usr/local/groovy/latest/lib/groovy-testng-2.1.8.jar:/usr/local/groovy/latest/lib/ant-launcher-1.8.4.jar:/usr/local/groovy/latest/lib/bsf-2.4.0.jar:/usr/local/groovy/latest/lib/asm-commons-4.0.jar:/usr/local/groovy/latest/lib/hamcrest-core-1.3.jar:/usr/local/groovy/latest/lib/servlet-api-2.4.jar:/usr/local/groovy/latest/lib/groovy-sql-2.1.8.jar:/usr/local/groovy/latest/lib/xmlpull-1.1.3.1.jar:/usr/local/groovy/latest/lib/jsp-api-2.0.jar:/usr/local/groovy/latest/lib/asm-util-4.0.jar:/home/dave/dev/gchart-trunk/trunk/source/extlib/jcommon-1.0.16.jar:/home/dave/dev/gchart-trunk/trunk/source/extlib/jfreechart-1.0.13.jar /home/dave/dev/gchart-trunk/trunk/source/test/BarChartDemo.groovy

Idea 13 broken example:
=======================
/usr/java/jdk1.7.0_45/bin/java -Dtools.jar=/usr/java/jdk1.7.0_45/lib/tools.jar -Dgroovy.home=/usr/local/groovy/latest -Dgroovy.starter.conf=/usr/local/groovy/latest/conf/groovy-starter.conf -Didea.launcher.port=7532 -Didea.launcher.bin.path=/usr/local/idea/idea-IU-133.193/bin -Dfile.encoding=UTF-8 -classpath /usr/local/groovy/latest/lib/groovy-2.1.8.jar:.:/home/dave/IdeaProjects/jmstest/out/production/groovychart:/usr/local/groovy/latest/lib/groovy-jsr223-2.1.8.jar:/usr/local/groovy/latest/lib/commons-logging-1.1.1.jar:/usr/local/groovy/latest/lib/groovy-swing-2.1.8.jar:/usr/local/groovy/latest/lib/asm-tree-4.0.jar:/usr/local/groovy/latest/lib/jcommander-1.27.jar:/usr/local/groovy/latest/lib/ant-junit-1.8.4.jar:/usr/local/groovy/latest/lib/groovy-console-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-ant-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-servlet-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-test-2.1.8.jar:/usr/local/groovy/latest/lib/ant-antlr-1.8.4.jar:/usr/local/groovy/latest/lib/groovy-templates-2.1.8.jar:/usr/local/groovy/latest/lib/antlr-2.7.7.jar:/usr/local/groovy/latest/lib/groovy-groovysh-2.1.8.jar:/usr/local/groovy/latest/lib/jansi-1.6.jar:/usr/local/groovy/latest/lib/groovy-bsf-2.1.8.jar:/usr/local/groovy/latest/lib/ant-1.8.4.jar:/usr/local/groovy/latest/lib/jline-1.0.jar:/usr/local/groovy/latest/lib/groovy-jmx-2.1.8.jar:/usr/local/groovy/latest/lib/gpars-1.0.0.jar:/usr/local/groovy/latest/lib/groovy-docgenerator-2.1.8.jar:/usr/local/groovy/latest/lib/groovy-json-2.1.8.jar:/usr/local/groovy/latest/lib/asm-4.0.jar:/usr/local/groovy/latest/lib/junit-4.11.jar:/usr/local/groovy/latest/lib/qdox-1.12.1.jar:/usr/local/groovy/latest/lib/groovy-groovydoc-2.1.8.jar:/usr/local/groovy/latest/lib/xstream-1.4.2.jar:/usr/local/groovy/latest/lib/testng-6.8.jar:/usr/local/groovy/latest/lib/jsr166y-1.7.0.jar:/usr/local/groovy/latest/lib/asm-analysis-4.0.jar:/usr/local/groovy/latest/lib/groovy-xml-2.1.8.jar:/usr/local/groovy/latest/lib/ivy-2.2.0.jar:/usr/local/groovy/latest/lib/commons-cli-1.2.jar:/usr/local/groovy/latest/lib/groovy-testng-2.1.8.jar:/usr/local/groovy/latest/lib/ant-launcher-1.8.4.jar:/usr/local/groovy/latest/lib/bsf-2.4.0.jar:/usr/local/groovy/latest/lib/asm-commons-4.0.jar:/usr/local/groovy/latest/lib/hamcrest-core-1.3.jar:/usr/local/groovy/latest/lib/servlet-api-2.4.jar:/usr/local/groovy/latest/lib/groovy-sql-2.1.8.jar:/usr/local/groovy/latest/lib/xmlpull-1.1.3.1.jar:/usr/local/groovy/latest/lib/jsp-api-2.0.jar:/usr/local/groovy/latest/lib/asm-util-4.0.jar:/home/dave/dev/gchart-trunk/trunk/source/extlib/jcommon-1.0.16.jar:/home/dave/dev/gchart-trunk/trunk/source/extlib/jfreechart-1.0.13.jar:/usr/local/idea/idea-IU-133.193/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.groovy.tools.GroovyStarter --conf /usr/local/groovy/latest/conf/groovy-starter.conf --main groovy.ui.GroovyMain /home/dave/dev/gchart-trunk/trunk/source/test/BarChartDemo.groovy

Caught: groovy.lang.MissingMethodException: No signature of method: com.thecoderscorner.groovychart.chart.ChartBuilder.barchart() is applicable for argument types: (java.util.LinkedHashMap, BarChartDemo$_run_closure1) values: [[title:This is a title, categoryAxisLabel:category, ...], ...]
groovy.lang.MissingMethodException: No signature of method: com.thecoderscorner.groovychart.chart.ChartBuilder.barchart() is applicable for argument types: (java.util.LinkedHashMap, BarChartDemo$_run_closure1) values: [[title:This is a title, categoryAxisLabel:category, ...], ...]
 at BarChartDemo.run(BarChartDemo.groovy:17)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Process finished with exit code 1

Please sign in to leave a comment.