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

Svatopluk Dedic commented on NETBEANS-6068:
-------------------------------------------

What is 
{quote}Create 'demo' package space in project
{quote}
?

Please help me to reproduce the defect, as I cannot reproduce it with either 
master or the pristine 12.5 release. 
 * Start NetBeans on the project that does not work, verify the creation still 
does not work
 * Note the *exact steps* taken from the start of the IDE. If using context 
(right-click) actions, note the node / place where it was invoked
 * After veryfing the defect exists:
 ** ZIP the project folder, attach here.
 ** attach *var/log/messages.log* from your userdir - mainly the startup part, 
so I can see what modules were enabled and the runtime config

This is what is happening on my machine:
 * maven project created
 * demo package created
 * wizard started creating Groovy Class (the groovy sources is created during 
the wizard)
 * source created

No exceptions.

!mavenproject.jpg!   !groovyclassescreated.jpg!!sourcecretaed.jpg!

> 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
>            Assignee: Svatopluk Dedic
>            Priority: Major
>         Attachments: groovyclassescreated.jpg, mavenproject.jpg, 
> sourcecretaed.jpg
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to