[jira] [Updated] (NETBEANS-6192) Netbeans 11.0 very slow performance on RHEL 7

2021-11-15 Thread satendra gupta (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

satendra gupta updated NETBEANS-6192:
-
Priority: Blocker  (was: Major)

> Netbeans 11.0 very slow performance on RHEL 7
> -
>
> Key: NETBEANS-6192
> URL: https://issues.apache.org/jira/browse/NETBEANS-6192
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.0
>Reporter: satendra gupta
>Priority: Blocker
>
> i recently migrated from RHEL6 to RHEL7 and i observe very slow performance 
> on RHEL7. i am using Netbeans 11.0 with JDK 8



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



[jira] [Commented] (NETBEANS-4245) Cannot start Glass Fish 5 server

2021-11-15 Thread Manikantan Narender Nath (Jira)


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

Manikantan Narender Nath commented on NETBEANS-4245:


Confirmed: Works with GF61 + Java 11.

> Cannot start Glass Fish 5 server 
> -
>
> Key: NETBEANS-4245
> URL: https://issues.apache.org/jira/browse/NETBEANS-4245
> Project: NetBeans
>  Issue Type: Bug
>  Components: serverplugins - GlassFish
>Affects Versions: 12.0
> Environment: Product Version: Apache NetBeans IDE 12.0-beta3
> Java: 11.0.6; OpenJDK 64-Bit Server VM 11.0.6+10
> Runtime: OpenJDK Runtime Environment 11.0.6+10
> System: Mac OS X version 10.15.3 running on x86_64; UTF-8; en_IN (nb)
>Reporter: Manikantan Narender Nath
>Assignee: Josh Juneau
>Priority: Major
>  Labels: netcat
> Attachments: cannot-start-gf510-server.m4v
>
>
> Steps
>  # Start NetBeans with clean user dir
>  # Activate Java SE and Java WEb & EE plugins
>  # Switch to services tab
>  # RMB on Servers Tab
>  # Select Glassfish from list of server types
>  # Select a folder which does not have Glassfish (so that we can install 
> fresh)
>  # Select Glassfish 510 from drop down & accept license agreement
>  # Click download button (wait for it to complete)
>  # Complete the wizard steps
>  # Verify that Glassfish is added to the Servers node
>  # Right click newly added Glassfish server and click Start server
> *Expected result* 
> Glassfish should start
> *Actual Result*
> Dialog displays with message "Cannot start glassfish with default Java 
> platform" (see attachment Cannot-start-gf10.m4v)
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



[jira] [Assigned] (NETBEANS-5896) Missing "com.sun.tools.javac.comp.Enter.unenter" with vanilla javac

2021-11-15 Thread Jaroslav Tulach (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jaroslav Tulach reassigned NETBEANS-5896:
-

Assignee: Jan Lahoda

> Missing "com.sun.tools.javac.comp.Enter.unenter" with vanilla javac
> ---
>
> Key: NETBEANS-5896
> URL: https://issues.apache.org/jira/browse/NETBEANS-5896
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler
>Affects Versions: 12.4
> Environment: Java 11.0.11 on Windows 10 on NetBeans 12.4 with vanilla 
> javac (nb-javac _not_ installed)
>Reporter: Eirik Bakke
>Assignee: Jan Lahoda
>Priority: Major
>
> Working with Compile-on-Save enabled on a Maven-based NetBeans Platform 
> project, with vanilla javac (nb-javac _not_ installed), I frequently get the 
> following stack trace:
> {noformat}
> java.lang.NoSuchMethodException: 
> com.sun.tools.javac.comp.Enter.unenter(com.sun.tools.javac.tree.JCTree$JCCompilationUnit,
>  com.sun.tools.javac.tree.JCTree)
>   at java.base/java.lang.Class.getDeclaredMethod(Class.java:2475)
>   at 
> org.netbeans.api.java.source.TreeUtilities.unenter(TreeUtilities.java:927)
>   at 
> org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:916)
>   at 
> org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:845)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$1.run(DeclarativeHintsParser.java:502)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$1.run(DeclarativeHintsParser.java:477)
>   at 
> org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:60)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>   at 
> org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:357)
>   at 
> org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:340)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>   at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>   at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>   at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>   at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
>   at 
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:311)
>   at 
> org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:431)
>   at 
> org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:423)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser.resolve(DeclarativeHintsParser.java:477)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser.access$000(DeclarativeHintsParser.java:83)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$Impl.parseCondition(DeclarativeHintsParser.java:311)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$Impl.parseConditions(DeclarativeHintsParser.java:258)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$Impl.parseRule(DeclarativeHintsParser.java:215)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$Impl.parseInput(DeclarativeHintsParser.java:184)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser$Impl.access$200(DeclarativeHintsParser.java:90)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintsParser.parse(DeclarativeHintsParser.java:395)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintRegistry.parseHints(DeclarativeHintRegistry.java:263)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintRegistry.parseHintFile(DeclarativeHintRegistry.java:239)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintRegistry.readHints(DeclarativeHintRegistry.java:128)
>   at 
> org.netbeans.modules.java.hints.declarative.DeclarativeHintRegistry.computeHints(DeclarativeHintRegistry.java:111)
>   at 
> org.netbeans.modules.java.hints.spiimpl.RulesManagerImpl.readHints(RulesManagerImpl.java:139)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:133)
>   at 
> 

[jira] [Closed] (NETBEANS-4641) Code auto formatting for try-with-resources statements

2021-11-15 Thread Bernd Michaely (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bernd Michaely closed NETBEANS-4641.

Resolution: Information Provided

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting  Indentation, java - Editor
>Affects Versions: 12.0
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



[jira] [Commented] (NETBEANS-3042) can't see loggers (log4j2) created from apps deployed on Payara servers

2021-11-15 Thread Cole H Little (Jira)


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

Cole H Little commented on NETBEANS-3042:
-

[~FiruzzZ]  you are right, that does fix the issue.  I had the pattern with %d 
on the RollingFile appender as well. When I removed that I started seeing the 
logs.

> can't see loggers (log4j2) created from apps deployed on Payara servers
> ---
>
> Key: NETBEANS-3042
> URL: https://issues.apache.org/jira/browse/NETBEANS-3042
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Logger
>Affects Versions: 11.0, 12.0, 11.1, 11.2, 11.3, 12.1, 12.5
> Environment: Windows 10, jdk 1.8, CentOS 7.x with AdoptOpenJDK 8 and 
> 11, Windows 10 with AdoptOpenJDK 8 and 11.
>Reporter: jose luis romero
>Assignee: Robert Hoffmann
>Priority: Major
> Attachments: screenshot-1.png
>
>
> I can't see the logs (log4j2) generated by my apps deployed in Payara, they 
> are always empty.
> Tried to make a clean re-installation (no cache, no import config) but didn't 
> work
> Initially, I thought that I messed up some config file so I made a post 
> [https://stackoverflow.com/questions/57679272/i-cant-see-logs-from-apps-on-payara-4-1-just-on-netbeans-console-tab|stackOverflow]
>  but no, it is a Netbeans issue introduced in 11.1 version + payara 5



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



[jira] [Assigned] (NETBEANS-6212) netbeans installation on windows 10 stops at 10%

2021-11-15 Thread Alessandro Cappelli (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alessandro Cappelli reassigned NETBEANS-6212:
-

Assignee: Alessandro Cappelli

> netbeans installation on windows 10 stops at 10% 
> -
>
> Key: NETBEANS-6212
> URL: https://issues.apache.org/jira/browse/NETBEANS-6212
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - installer
>Affects Versions: 12.5
>Reporter: Alessandro Cappelli
>Assignee: Alessandro Cappelli
>Priority: Blocker
>
> I am trying to install netbeans 12.5 (but i also tried 12) on my windows 10 
> but it stops with the progress bar at 10% all the times and i have to kill 
> the process



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



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

2021-11-15 Thread Petr Pisl (Jira)


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

Petr Pisl edited comment on NETBEANS-6068 at 11/15/21, 6:25 PM:


When i replace the `${platform.home}` with `\{jdk.home}` in 
`nbproject\groovy-build.xml` line 26 in my case, then the execution works. At 
least for me. 

``

->

``

Or you can set `platform.home` in `nbproject\project.properties`

I'm talking about ant based project. 


was (Author: petricius):
When i replace the `${platform.home}` with `\{jdk.home}` in 
`nbproject\groovy-build.xml` line 26 in my case, then the execution works. At 
least for me. 

``

->

``

I'm talking about ant based project. 

> 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: Blocker
>  Labels: pull-request-available
> Fix For: 12.6
>
> Attachments: groovyclassescreated.jpg, 
> image-2021-10-08-12-57-24-831.png, image-2021-10-08-12-58-24-619.png, 
> image-2021-10-08-12-59-50-283.png, image-2021-10-08-13-00-25-440.png, 
> image-2021-10-08-13-01-27-408.png, image-2021-10-08-13-02-31-076.png, 
> image-2021-10-08-13-03-45-465.png, image-2021-10-08-13-04-54-754.png, 
> image-2021-10-08-13-05-56-717.png, image-2021-10-08-13-08-23-947.png, 
> image-2021-10-08-14-13-26-696.png, image-2021-10-08-14-14-41-061.png, 
> image-2021-10-08-14-16-57-710.png, mavenproject.jpg, sourcecretaed.jpg
>
>  Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> 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 *
>  encoding="UTF-8"?> settings 1.0//EN" 
> "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> version="1.0">   class="org.netbeans.modules.jshell.editor.ConsoleEditor"/>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.20.1#820001)


[jira] [Created] (NETBEANS-6212) netbeans installation on windows 10 stops at 10%

2021-11-15 Thread Alessandro Cappelli (Jira)
Alessandro Cappelli created NETBEANS-6212:
-

 Summary: netbeans installation on windows 10 stops at 10% 
 Key: NETBEANS-6212
 URL: https://issues.apache.org/jira/browse/NETBEANS-6212
 Project: NetBeans
  Issue Type: Bug
  Components: platform - installer
Affects Versions: 12.5
Reporter: Alessandro Cappelli


I am trying to install netbeans 12.5 (but i also tried 12) on my windows 10 but 
it stops with the progress bar at 10% all the times and i have to kill the 
process



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



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

2021-11-15 Thread Petr Pisl (Jira)


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

Petr Pisl commented on NETBEANS-6068:
-

When i replace the `${platform.home}` with `\{jdk.home}` in 
`nbproject\groovy-build.xml` line 26 in my case, then the execution works. At 
least for me. 

``

->

``

I'm talking about ant based project. 

> 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: Blocker
>  Labels: pull-request-available
> Fix For: 12.6
>
> Attachments: groovyclassescreated.jpg, 
> image-2021-10-08-12-57-24-831.png, image-2021-10-08-12-58-24-619.png, 
> image-2021-10-08-12-59-50-283.png, image-2021-10-08-13-00-25-440.png, 
> image-2021-10-08-13-01-27-408.png, image-2021-10-08-13-02-31-076.png, 
> image-2021-10-08-13-03-45-465.png, image-2021-10-08-13-04-54-754.png, 
> image-2021-10-08-13-05-56-717.png, image-2021-10-08-13-08-23-947.png, 
> image-2021-10-08-14-13-26-696.png, image-2021-10-08-14-14-41-061.png, 
> image-2021-10-08-14-16-57-710.png, mavenproject.jpg, sourcecretaed.jpg
>
>  Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> 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 *
>  encoding="UTF-8"?> settings 1.0//EN" 
> "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> version="1.0">   class="org.netbeans.modules.jshell.editor.ConsoleEditor"/>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.20.1#820001)

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

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



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

2021-11-15 Thread Petr Pisl (Jira)


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

Petr Pisl edited comment on NETBEANS-6068 at 11/15/21, 5:58 PM:


I have run in this as well a month ago (issue NETBEANS-6141). The creating new 
Groovy class failed, because the Groovy wizard is looking for `Groovy` source 
path, which was not provided by the project. 

I have tried it today over the master branch, and it looks like I'm able to 
create new Groovy files (classes and scripts). The execution doesn't work for 
me as well. 

 

The Groovy compiller is called with ${platform.home} property, but this 
property is not set.  When I set this property it looks like that I can run the 
script. 


was (Author: petricius):
I have run in this as well a month ago (issue NETBEANS-6141). The creating new 
Groovy class failed, because the Groovy wizard is looking for `Groovy` source 
path, which was not provided by the project. 

I have tried it today over the master branch, and it looks like I'm able to 
create new Groovy files (classes and scripts). The execution doesn't work for 
me as well. 

 

The Groovy compiller is called with ${platform.home} property, but this 
property is not set. 

> 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: Blocker
>  Labels: pull-request-available
> Fix For: 12.6
>
> Attachments: groovyclassescreated.jpg, 
> image-2021-10-08-12-57-24-831.png, image-2021-10-08-12-58-24-619.png, 
> image-2021-10-08-12-59-50-283.png, image-2021-10-08-13-00-25-440.png, 
> image-2021-10-08-13-01-27-408.png, image-2021-10-08-13-02-31-076.png, 
> image-2021-10-08-13-03-45-465.png, image-2021-10-08-13-04-54-754.png, 
> image-2021-10-08-13-05-56-717.png, image-2021-10-08-13-08-23-947.png, 
> image-2021-10-08-14-13-26-696.png, image-2021-10-08-14-14-41-061.png, 
> image-2021-10-08-14-16-57-710.png, mavenproject.jpg, sourcecretaed.jpg
>
>  Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> 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 *
>  encoding="UTF-8"?> settings 1.0//EN" 
> "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> version="1.0">   class="org.netbeans.modules.jshell.editor.ConsoleEditor"/>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 

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

2021-11-15 Thread Petr Pisl (Jira)


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

Petr Pisl edited comment on NETBEANS-6068 at 11/15/21, 5:55 PM:


I have run in this as well a month ago (issue NETBEANS-6141). The creating new 
Groovy class failed, because the Groovy wizard is looking for `Groovy` source 
path, which was not provided by the project. 

I have tried it today over the master branch, and it looks like I'm able to 
create new Groovy files (classes and scripts). The execution doesn't work for 
me as well. 

 

The Groovy compiller is called with ${platform.home} property, but this 
property is not set. 


was (Author: petricius):
I have run in this as well a month ago (issue NETBEANS-6141). The creating new 
Groovy class failed, because the Groovy wizard is looking for `Groovy` source 
path, which was not provided by the project. 

I have tried it today over the master branch, and it looks like I'm able to 
create new Groovy files (classes and scripts). The execution doesn't work for 
me as well. 

> 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: Blocker
>  Labels: pull-request-available
> Fix For: 12.6
>
> Attachments: groovyclassescreated.jpg, 
> image-2021-10-08-12-57-24-831.png, image-2021-10-08-12-58-24-619.png, 
> image-2021-10-08-12-59-50-283.png, image-2021-10-08-13-00-25-440.png, 
> image-2021-10-08-13-01-27-408.png, image-2021-10-08-13-02-31-076.png, 
> image-2021-10-08-13-03-45-465.png, image-2021-10-08-13-04-54-754.png, 
> image-2021-10-08-13-05-56-717.png, image-2021-10-08-13-08-23-947.png, 
> image-2021-10-08-14-13-26-696.png, image-2021-10-08-14-14-41-061.png, 
> image-2021-10-08-14-16-57-710.png, mavenproject.jpg, sourcecretaed.jpg
>
>  Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> 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 *
>  encoding="UTF-8"?> settings 1.0//EN" 
> "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> version="1.0">   class="org.netbeans.modules.jshell.editor.ConsoleEditor"/>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: 

[jira] [Created] (NETBEANS-6211) The Gui Designer creates deprecated constructors for primitive properties new Long(long)

2021-11-15 Thread Jira
Jürgen Simon created NETBEANS-6211:
--

 Summary: The Gui Designer creates deprecated constructors for 
primitive properties new Long(long)
 Key: NETBEANS-6211
 URL: https://issues.apache.org/jira/browse/NETBEANS-6211
 Project: NetBeans
  Issue Type: Improvement
  Components: guibuilder - Code
Affects Versions: 12.5, 12.4, 12.3, 12.2, 12.0.1, 12.1
Reporter: Jürgen Simon


When GUI Designer processes components that contain properties of type Long, 
Integer, Double etc. the value is set in the deprecated form new Long(long).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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



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

2021-11-15 Thread Petr Pisl (Jira)


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

Petr Pisl commented on NETBEANS-6068:
-

I have run in this as well a month ago (issue NETBEANS-6141). The creating new 
Groovy class failed, because the Groovy wizard is looking for `Groovy` source 
path, which was not provided by the project. 

I have tried it today over the master branch, and it looks like I'm able to 
create new Groovy files (classes and scripts). The execution doesn't work for 
me as well. 

> 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: Blocker
>  Labels: pull-request-available
> Fix For: 12.6
>
> Attachments: groovyclassescreated.jpg, 
> image-2021-10-08-12-57-24-831.png, image-2021-10-08-12-58-24-619.png, 
> image-2021-10-08-12-59-50-283.png, image-2021-10-08-13-00-25-440.png, 
> image-2021-10-08-13-01-27-408.png, image-2021-10-08-13-02-31-076.png, 
> image-2021-10-08-13-03-45-465.png, image-2021-10-08-13-04-54-754.png, 
> image-2021-10-08-13-05-56-717.png, image-2021-10-08-13-08-23-947.png, 
> image-2021-10-08-14-13-26-696.png, image-2021-10-08-14-14-41-061.png, 
> image-2021-10-08-14-16-57-710.png, mavenproject.jpg, sourcecretaed.jpg
>
>  Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> 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 *
>  encoding="UTF-8"?> settings 1.0//EN" 
> "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> version="1.0">   class="org.netbeans.modules.jshell.editor.ConsoleEditor"/>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.20.1#820001)

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

For further information 

[netbeans] branch master updated: [NETBEANS-5799]: Pattern Matching for Switch hints (preview) (#3156)

2021-11-15 Thread akhileshsingh
This is an automated email from the ASF dual-hosted git repository.

akhileshsingh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new e1b1b10  [NETBEANS-5799]: Pattern Matching for Switch hints (preview) 
(#3156)
e1b1b10 is described below

commit e1b1b10656a7914f3f5e79ff695756bc03f5bfd6
Author: Sandeep Mishra <72914639+mishrasand...@users.noreply.github.com>
AuthorDate: Mon Nov 15 17:10:16 2021 +0530

[NETBEANS-5799]: Pattern Matching for Switch hints (preview) (#3156)

* Added hints and test cases for pattern matching for switch
---
 .../jdk/ConvertToSwitchPatternInstanceOf.java  | 178 -
 .../jdk/ConvertToSwitchPatternInstanceOfTest.java  | 424 -
 .../netbeans/modules/java/source/TreeShims.java|  11 +
 .../modules/java/source/builder/TreeFactory.java   |   1 +
 4 files changed, 585 insertions(+), 29 deletions(-)

diff --git 
a/java/java.hints/src/org/netbeans/modules/java/hints/jdk/ConvertToSwitchPatternInstanceOf.java
 
b/java/java.hints/src/org/netbeans/modules/java/hints/jdk/ConvertToSwitchPatternInstanceOf.java
index 85e22bd..3777b88 100644
--- 
a/java/java.hints/src/org/netbeans/modules/java/hints/jdk/ConvertToSwitchPatternInstanceOf.java
+++ 
b/java/java.hints/src/org/netbeans/modules/java/hints/jdk/ConvertToSwitchPatternInstanceOf.java
@@ -1,5 +1,3 @@
-package org.netbeans.modules.java.hints.jdk;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,8 @@ package org.netbeans.modules.java.hints.jdk;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.netbeans.modules.java.hints.jdk;
+
 import com.sun.source.tree.BlockTree;
 import com.sun.source.tree.CaseTree;
 import com.sun.source.tree.ExpressionStatementTree;
@@ -45,6 +45,7 @@ import javax.lang.model.type.TypeMirror;
 import org.netbeans.api.java.source.CompilationInfo;
 import org.netbeans.api.java.source.TreeMaker;
 import org.netbeans.api.java.source.WorkingCopy;
+import org.netbeans.modules.java.source.TreeShims;
 import org.netbeans.spi.editor.hints.ErrorDescription;
 import org.netbeans.spi.editor.hints.Fix;
 import org.netbeans.spi.java.hints.ErrorDescriptionFactory;
@@ -81,14 +82,15 @@ public class ConvertToSwitchPatternInstanceOf {
 return null;
 }
 Tree ifPath = ctx.getPath().getLeaf();
-Name expr0 = ((IdentifierTree) 
ctx.getVariables().get("$expr0").getLeaf()).getName();
+String expr0 = null;
+expr0 = ctx.getVariables().get("$expr0").getLeaf().toString();
 int matchVarIndex = 1;
 while (ifPath != null && ifPath.getKind() == Tree.Kind.IF) {
 matchVarIndex++;
 IfTree it = (IfTree) ifPath;
 if (MatcherUtilities.matches(ctx, new TreePath(ctx.getPath(), 
it.getCondition()), "($expr" + matchVarIndex + " instanceof $typeI" + 
matchVarIndex + ")", true)
 && MatcherUtilities.matches(ctx, new 
TreePath(ctx.getPath(), it.getThenStatement()), "{ $typeV" + matchVarIndex + " 
$var" + matchVarIndex + " = ($typeC" + matchVarIndex + ") $expr" + 
matchVarIndex + "; $other" + matchVarIndex + "$;}", true)) {
-if (!((IdentifierTree) ctx.getVariables().get("$expr" + 
matchVarIndex).getLeaf()).getName().equals(expr0)) {
+if (!ctx.getVariables().get("$expr" + 
matchVarIndex).getLeaf().toString().equals(expr0)) {
 return null;
 }
 for (TreePath tp : ctx.getMultiVariables().get("$other" + 
matchVarIndex + "$")) {
@@ -155,12 +157,105 @@ public class ConvertToSwitchPatternInstanceOf {
 StatementTree thenBlock = removeFirst ? 
wc.getTreeMaker().removeBlockStatement((BlockTree) bt, 0) : bt;
 
caseBindPattern.add(wc.getTreeMaker().BindingPattern(wc.getTreeMaker().Variable(wc.getTreeMaker().Modifiers(EnumSet.noneOf(Modifier.class)),
 var.getName().toString(), iot.getType(), null)));
 BlockTree blockTree = (BlockTree) thenBlock;
+Tree statementTree = blockTree.getStatements().size() == 1 && 
isValidCaseTree(blockTree.getStatements().get(0))? 
blockTree.getStatements().get(0) : thenBlock;
+CaseTree caseMultipleSwitchPatterns = 
wc.getTreeMaker().CasePatterns(caseBindPattern, statementTree);
+ctl.add(caseMultipleSwitchPatterns);
+}
+List caseDefaultLabel = new LinkedList<>();
+caseDefaultLabel.add(wc.getTreeMaker().Identifier("default"));
+BlockTree elseTree = (BlockTree) ifPath;
+if (elseTree == null) {
+elseTree = wc.getTreeMaker().Block(new ArrayList<>(), false);
+}
+
+Tree defaultTree = elseTree.getStatements().size() == 1 && 

[netbeans] branch master updated: LSP: Organize imports action added. (#3317)

2021-11-15 Thread dbalek
This is an automated email from the ASF dual-hosted git repository.

dbalek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 4a4528e  LSP: Organize imports action added. (#3317)
4a4528e is described below

commit 4a4528e5089acd6a74157964ef1067b2f508fcae
Author: Dusan Balek 
AuthorDate: Mon Nov 15 11:31:20 2021 +0100

LSP: Organize imports action added. (#3317)
---
 .../ChangeMethodParametersRefactoring.java |   2 +-
 .../lsp/server/protocol/CodeActionsProvider.java   |  35 ++-
 .../lsp/server/protocol/ConstructorGenerator.java  | 103 ++---
 .../server/protocol/DelegateMethodGenerator.java   | 202 +
 .../server/protocol/EqualsHashCodeGenerator.java   |  87 
 .../ExtractSuperclassOrInterfaceRefactoring.java   |   4 +-
 .../lsp/server/protocol/GetterSetterGenerator.java | 135 ++-
 .../protocol/ImplementOverrideMethodGenerator.java | 118 +-
 .../java/lsp/server/protocol/LoggerGenerator.java  |  50 +++--
 .../java/lsp/server/protocol/MoveRefactoring.java  |   4 +-
 .../server/protocol/OrganizeImportsCodeAction.java |  87 
 .../lsp/server/protocol/PullUpRefactoring.java |   2 +-
 .../lsp/server/protocol/PushDownRefactoring.java   |   2 +-
 .../modules/java/lsp/server/protocol/Server.java   |  40 +++-
 .../java/lsp/server/protocol/SurroundWithHint.java |  14 +-
 .../server/protocol/TextDocumentServiceImpl.java   |  45 +++-
 .../lsp/server/protocol/ToStringGenerator.java | 106 -
 .../lsp/server/protocol/WorkspaceServiceImpl.java  |  21 +-
 .../java/lsp/server/protocol/ServerTest.java   | 246 +
 java/java.lsp.server/vscode/package.json   |  28 +++
 java/java.lsp.server/vscode/src/extension.ts   |   2 +-
 21 files changed, 857 insertions(+), 476 deletions(-)

diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ChangeMethodParametersRefactoring.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ChangeMethodParametersRefactoring.java
index 849b4b6..157fdce 100644
--- 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ChangeMethodParametersRefactoring.java
+++ 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ChangeMethodParametersRefactoring.java
@@ -108,7 +108,7 @@ public final class ChangeMethodParametersRefactoring 
extends CodeRefactoring {
 }
 QuickPickItem elementItem = new QuickPickItem(createLabel(info, 
element, true));
 elementItem.setUserData(new ElementData(element));
-return 
Collections.singletonList(createCodeAction(Bundle.DN_ChangeMethodParams(), 
CHANGE_METHOD_PARAMS_REFACTORING_KIND, 
CHANGE_METHOD_PARAMS_REFACTORING_COMMAND, Utils.toUri(elementSource), 
elementItem));
+return 
Collections.singletonList(createCodeAction(Bundle.DN_ChangeMethodParams(), 
CHANGE_METHOD_PARAMS_REFACTORING_KIND, null, 
CHANGE_METHOD_PARAMS_REFACTORING_COMMAND, Utils.toUri(elementSource), 
elementItem));
 }
 
 @Override
diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/CodeActionsProvider.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/CodeActionsProvider.java
index db57677..5ea0ec7 100644
--- 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/CodeActionsProvider.java
+++ 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/CodeActionsProvider.java
@@ -20,7 +20,10 @@ package org.netbeans.modules.java.lsp.server.protocol;
 
 import com.sun.source.tree.LineMap;
 import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.Objects;
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
@@ -47,26 +50,44 @@ import org.netbeans.modules.parsing.api.ResultIterator;
 public abstract class CodeActionsProvider {
 
 public static final String CODE_GENERATOR_KIND = "source.generate";
+public static final String CODE_ACTIONS_PROVIDER_CLASS = "providerClass";
+public static final String DATA = "data";
 protected static final String ERROR = ""; //NOI18N
 
 public abstract List getCodeActions(ResultIterator 
resultIterator, CodeActionParams params) throws Exception;
 
-public abstract Set getCommands();
+public CompletableFuture resolve(NbCodeLanguageClient client, 
CodeAction codeAction, Object data) {
+return CompletableFuture.completedFuture(codeAction);
+}
 
-public abstract CompletableFuture 
processCommand(NbCodeLanguageClient client, String command, List 
arguments);
+public Set getCommands() {
+return Collections.emptySet();
+}
 
-protected static int getOffset(CompilationInfo info, Position pos) {
-LineMap lm = info.getCompilationUnit().getLineMap();
- 

[jira] [Created] (NETBEANS-6210) Exception caught

2021-11-15 Thread Gregory (Jira)
Gregory created NETBEANS-6210:
-

 Summary: Exception caught
 Key: NETBEANS-6210
 URL: https://issues.apache.org/jira/browse/NETBEANS-6210
 Project: NetBeans
  Issue Type: Bug
Reporter: Gregory


INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=com.sun.istack.internal.FinalArrayList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.xml.internal.org.jvnet.mimepull.FinalArrayList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.javafx.fxml.builder.ProxyBuilder$ArrayListWrapper ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=com.sun.codemodel.internal.JCommentPart ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=sun.swing.BakedArrayList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=com.sun.xml.internal.ws.api.message.HeaderList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=sun.net.www.http.KeepAliveStreamCleaner ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.javafx.scene.control.ReadOnlyUnbackedObservableList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.javafx.scene.control.SelectedItemsReadOnlyObservableList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.javafx.collections.ElementObservableListDecorator ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=sun.awt.util.IdentityLinkedList ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.org.apache.xalan.internal.xsltc.compiler.util.StringStack ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.corba.se.impl.interceptors.PIHandlerImpl$RequestInfoStack ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=com.sun.corba.se.impl.util.RepositoryIdPool ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=com.sun.javafx.collections.ObservableListWrapper 
]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; 
sigs=com.sun.javafx.collections.ObservableSequentialListWrapper ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=jdk.nashorn.internal.objects.Global ]
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
/Users/gregorygraham/Library/Application 
Support/NetBeans/12.5/var/log/DataModelTest_26.dump
WARNING [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Javac returned startpos: 38,695 > endpos: -1
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=CLASS; sigs=jdk.nashorn.internal.objects.Global ]
INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for 
kind = CLASS
INFO 

[jira] [Commented] (NETBEANS-2842) Using of deprecated pack200 tool in nbm packaging

2021-11-15 Thread Peter Firmstone (Jira)


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

Peter Firmstone commented on NETBEANS-2842:
---

Hi Eric,

The pack200 tests are jtreg tests, so require the jtreg test library 
from OpenJDK.  You'll need to set the JT_HOME environment variable.  
Best run in a Unix shell environment.

Both the jtreg tests and jtreg are GPL2.0 licenses, however the Harmony 
source code doesn't depend on it.

https://github.com/pfirmstone/Pack200.net/tree/trunk/test

Regards,

Peter.



> Using of deprecated pack200 tool in nbm packaging
> -
>
> Key: NETBEANS-2842
> URL: https://issues.apache.org/jira/browse/NETBEANS-2842
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Plugin Manager
>Affects Versions: 11.3
>Reporter: Benjamin Graf
>Priority: Critical
>
> Netbeans plugins are mostly compressed in size by the JDK internal pack200 
> tool which is deprecated since JDK 11 ([https://openjdk.java.net/jeps/336]). 
> It should be thought about an alternative as it might get removed in next JDK 
> releases.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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