You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Benjamin Asbach (Jira)" <ji...@apache.org> on 2021/09/28 20:49:00 UTC

[jira] [Commented] (NETBEANS-6068) Groovy broken in 12.5

    [ https://issues.apache.org/jira/browse/NETBEANS-6068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421782#comment-17421782 ] 

Benjamin Asbach commented on NETBEANS-6068:
-------------------------------------------

{quote}Create new project
{quote}

Which project type you're using?


> Groovy broken in 12.5
> ---------------------
>
>                 Key: NETBEANS-6068
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6068
>             Project: NetBeans
>          Issue Type: Bug
>          Components: groovy - Editor
>    Affects Versions: 12.5
>         Environment: Windows 10
> JDK 17
>  
>            Reporter: Mike
>            Priority: Major
>
> Easy to replicate.
> On a clean install of NB 12.5 using numerous JDK versions. 
> Install JDK
> Install NB 12.5
> Enable Groovy plugin
> Create new project
> Create 'demo' package space in project
> Create new template groovy script in package.
>  * Fails to create file *
> <?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"><settings version="1.0">  <instance class="org.netbeans.modules.jshell.editor.ConsoleEditor"/></settings>ALL [null]: Class: class org.netbeans.modules.jshell.editor.ConsoleEditorALL [null]: Source: MultiFileObject@634c9c14[Windows2Local/Components/JShellEditor.settings]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 4 msINFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 31 binary roots took: 3,452 msINFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Temp\g4\test took: 2 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Temp\g4\src took: 215 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 source roots took: 217 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]SEVERE [global]java.lang.IllegalArgumentException: No folders selected at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:95) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:74) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:49) at org.netbeans.modules.groovy.support.wizard.AbstractFileWizard.createPanels(AbstractFileWizard.java:99) at org.netbeans.modules.groovy.support.wizard.AbstractFileWizard.initialize(AbstractFileWizard.java:71) at org.netbeans.modules.groovy.support.wizard.AbstractGroovyWizard.initialize(AbstractGroovyWizard.java:61)
>  
> If you click through the error if creates the template script. However, trying to run the file give this error;
>  
> ant -f C:\\Temp\\g4 -Djavac.includes=demo/newGroovyScript.groovy -Drun.class=demo.newGroovyScript run-single
> init:
> Deleting: C:\Temp\g4\build\built-jar.properties
> deps-jar:
> Updating property file: C:\Temp\g4\build\built-jar.properties
> compile-single:
> run-single:
> Error: Could not find or load main class demo.newGroovyScript
> Caused by: java.lang.ClassNotFoundException: demo.newGroovyScript
> C:\Temp\g4\nbproject\build-impl.xml:1341: The following error occurred while executing this line:
> C:\Temp\g4\nbproject\build-impl.xml:936: Java returned: 1
> BUILD FAILED (total time: 0 seconds)
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists