[jira] [Commented] (NETBEANS-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-5344:
-

Indeed, however, you are not doing yourself a favor: the way developers usually 
work with JavaFX is via Maven or Gradle and not via Ant.

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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-4496) [Usability] "Open Project" dialog shouldn't ever just do nothing when I hit "Open Project" confirm button

2021-02-08 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-4496:
---

Have you ever checked the Window > Favorites view where you can add whatever 
folder you like?

> [Usability] "Open Project" dialog shouldn't ever just do nothing when I hit 
> "Open Project" confirm button
> -
>
> Key: NETBEANS-4496
> URL: https://issues.apache.org/jira/browse/NETBEANS-4496
> Project: NetBeans
>  Issue Type: Improvement
> Environment: Product Version: Apache NetBeans IDE 12.0
> Java: 11.0.7; OpenJDK 64-Bit Server VM 11.0.7+10
> Runtime: OpenJDK Runtime Environment 11.0.7+10
> System: Linux version 5.6.19-300.fc32.x86_64 running on amd64; UTF-8; en_US 
> (nb) - Fedora 32
>Reporter: ell1e
>Priority: Major
>
> Right now, when I browse to my git repo and choose that as a folder in the 
> "Open Project" dialog, and I hit "Open Project" confirm button, it just does 
> nothing. I assume this is because no recognized project file is detected, but 
> it's not like NetBeans is telling me.
> I suggest that ideally, NetBeans should ask me if I am trying to import an 
> existing project in an unknown format, and offer me as a shortcut to create a 
> new NetBeans project in this folder consisting of the files already present. 
> However, I think as a minimum, it should pop up any sort of message 
> explaining why nothing is happening when I am clicking "Open Project".



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

-
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-4496) [Usability] "Open Project" dialog shouldn't ever just do nothing when I hit "Open Project" confirm button

2021-02-08 Thread ell1e (Jira)


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

ell1e commented on NETBEANS-4496:
-

>  if the folder is not detected as a project folder.

Basically, I think this conceptually is just impossible. With LSP netbeans 
cannot know if I am looking at something that might be recognized by an LSP 
plugin as a project to work on or not. So I don't see the point of trying this. 
While of course it may not be a netbeans project yet, importing should be easy 
which could be done with the suggestions above: let me open anything, don't 
limit to "detected" things, whatever that means.

> [Usability] "Open Project" dialog shouldn't ever just do nothing when I hit 
> "Open Project" confirm button
> -
>
> Key: NETBEANS-4496
> URL: https://issues.apache.org/jira/browse/NETBEANS-4496
> Project: NetBeans
>  Issue Type: Improvement
> Environment: Product Version: Apache NetBeans IDE 12.0
> Java: 11.0.7; OpenJDK 64-Bit Server VM 11.0.7+10
> Runtime: OpenJDK Runtime Environment 11.0.7+10
> System: Linux version 5.6.19-300.fc32.x86_64 running on amd64; UTF-8; en_US 
> (nb) - Fedora 32
>Reporter: ell1e
>Priority: Major
>
> Right now, when I browse to my git repo and choose that as a folder in the 
> "Open Project" dialog, and I hit "Open Project" confirm button, it just does 
> nothing. I assume this is because no recognized project file is detected, but 
> it's not like NetBeans is telling me.
> I suggest that ideally, NetBeans should ask me if I am trying to import an 
> existing project in an unknown format, and offer me as a shortcut to create a 
> new NetBeans project in this folder consisting of the files already present. 
> However, I think as a minimum, it should pop up any sort of message 
> explaining why nothing is happening when I am clicking "Open Project".



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

-
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-4496) [Usability] "Open Project" dialog shouldn't ever just do nothing when I hit "Open Project" confirm button

2021-02-08 Thread ell1e (Jira)


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

ell1e commented on NETBEANS-4496:
-

That seems like outdated UX to me. Why can't I just open any folder I like and 
use it as a project? All modern IDEs allow "open as folder" and don't force to 
go through some manual "New project" dialog - which is particularly nonsensical 
for an LSP IDE where you may not even ship a useful template for something I 
want to just use some LSP plugin with. So why not just let me open anything, 
and offer to just dump in a Netbeans project file after the fact (with a prompt 
if you like, if you're worried about people accidentally opening the wrong 
folder and turning it into a project) instead of having the dialog somehow 
pretend it can't be done and making me chase for other buttons when the intent 
is clear.

> [Usability] "Open Project" dialog shouldn't ever just do nothing when I hit 
> "Open Project" confirm button
> -
>
> Key: NETBEANS-4496
> URL: https://issues.apache.org/jira/browse/NETBEANS-4496
> Project: NetBeans
>  Issue Type: Improvement
> Environment: Product Version: Apache NetBeans IDE 12.0
> Java: 11.0.7; OpenJDK 64-Bit Server VM 11.0.7+10
> Runtime: OpenJDK Runtime Environment 11.0.7+10
> System: Linux version 5.6.19-300.fc32.x86_64 running on amd64; UTF-8; en_US 
> (nb) - Fedora 32
>Reporter: ell1e
>Priority: Major
>
> Right now, when I browse to my git repo and choose that as a folder in the 
> "Open Project" dialog, and I hit "Open Project" confirm button, it just does 
> nothing. I assume this is because no recognized project file is detected, but 
> it's not like NetBeans is telling me.
> I suggest that ideally, NetBeans should ask me if I am trying to import an 
> existing project in an unknown format, and offer me as a shortcut to create a 
> new NetBeans project in this folder consisting of the files already present. 
> However, I think as a minimum, it should pop up any sort of message 
> explaining why nothing is happening when I am clicking "Open Project".



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

-
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-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Gi Pak (Jira)


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

Gi Pak commented on NETBEANS-5344:
--

I actually uninstalled NetBeans 12 and installed version 8 instead and it 
worked. Thank you for your help. 

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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-3391) Support PSR-12 valid formatting rules

2021-02-08 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-3391:


[~Kacer] I'll add the required options for PSR-12. It's duplicate.

> Support PSR-12 valid formatting rules
> -
>
> Key: NETBEANS-3391
> URL: https://issues.apache.org/jira/browse/NETBEANS-3391
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Formatting & Indentation
>Affects Versions: 12.0, 11.1, 11.2
>Reporter: Johannes
>Assignee: Junichi Yamamoto
>Priority: Trivial
>
> Please add options to allow for PSR-12 valid formatting. (PRS-12:[ 
> https://www.php-fig.org/psr/psr-12/)|https://www.php-fig.org/psr/psr-12/]
> Currently there is no way to get netbeans accept the following code format:
>   
> {code:php}
> $array = ['a','b','c'];
> foreach(
> array_filter($array, function ($a) {
> return $a === 'b';
> }) as $data
> ) {
> //code
> }
> {code}
> Formatting the code removes the required indent:
> {code:php}
> $array = ['a','b','c'];
> foreach(
> array_filter($array, function ($a) {
> return $a === 'b';
> }) as $data
> ) {
> //code
> }
> {code}
> PSR-12 Rules:
>  - PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine
>  - PSR12.ControlStructures.ControlStructureSpacing.LineIndent



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

-
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



[netbeans] branch delivery updated: [NETBEANS-5161] Prevent IAE when resolving composite project dependencies

2021-02-08 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 38f7417  [NETBEANS-5161] Prevent IAE when resolving composite project 
dependencies
38f7417 is described below

commit 38f7417d00cddd197dcd84e81f41edb7e1db6a19
Author: Laszlo Kishalmi 
AuthorDate: Sat Dec 19 21:45:44 2020 -0800

[NETBEANS-5161] Prevent IAE when resolving composite project dependencies
---
 .../modules/gradle/GradleModuleFileCache21.java|  2 +-
 .../modules/gradle/api/GradleBaseProject.java  |  9 ++---
 .../gradle/api/GradleBaseProjectBuilder.java   | 38 ++
 .../modules/gradle/api/GradleConfiguration.java|  6 ++--
 .../modules/gradle/api/GradleDependency.java   | 16 ++---
 5 files changed, 32 insertions(+), 39 deletions(-)

diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/GradleModuleFileCache21.java 
b/extide/gradle/src/org/netbeans/modules/gradle/GradleModuleFileCache21.java
index 86dc596..8ced737 100644
--- a/extide/gradle/src/org/netbeans/modules/gradle/GradleModuleFileCache21.java
+++ b/extide/gradle/src/org/netbeans/modules/gradle/GradleModuleFileCache21.java
@@ -247,7 +247,7 @@ public final class GradleModuleFileCache21 {
 int firstColon = gav.indexOf(':');
 int lastColon = gav.lastIndexOf(':');
 if (firstColon == -1 || firstColon == lastColon) {
-throw new IllegalArgumentException("Invalig GAV format: " + gav);
+throw new IllegalArgumentException("Invalid GAV format: " + gav); 
//NOI18N
 }
 return new String[] {
 gav.substring(0, firstColon),
diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java 
b/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
index 49a4f14..3c2cd03 100644
--- a/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
+++ b/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
@@ -32,7 +32,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import org.netbeans.api.project.Project;
-import org.openide.filesystems.FileUtil;
+import org.netbeans.modules.gradle.GradleModuleFileCache21;
 
 /**
  * This object holds the basic information of the Gradle project.
@@ -255,11 +255,8 @@ public final class GradleBaseProject implements 
Serializable, ModuleSearchSuppor
 }
 
 @Override
-public Set findModules(String gav) {
-String parts[] = GradleDependency.gavSplit(gav);
-if (parts.length != 3) {
-throw new IllegalArgumentException("Invalid gav filter: "  + gav);
-}
+public Set findModules(String gav) 
throws IllegalArgumentException {
+String parts[] = GradleModuleFileCache21.gavSplit(gav);
 String groupId = parts[0].isEmpty() ? null : parts[0];
 String artifactId = parts[1].isEmpty() ? null : parts[1];
 String ver = parts[2].isEmpty() ? null : parts[2];
diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProjectBuilder.java
 
b/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProjectBuilder.java
index 1519aea..ede038d 100644
--- 
a/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProjectBuilder.java
+++ 
b/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProjectBuilder.java
@@ -196,8 +196,13 @@ class GradleBaseProjectBuilder implements 
ProjectInfoExtractor.Result {
 conf.modules.add(dep);
 } else {
 dep = resolveModuleDependency(gradleUserHome, c);
-components.put(c, dep);
-conf.modules.add(dep);
+if (dep != null) {
+components.put(c, dep);
+conf.modules.add(dep);
+} else {
+   // NETBEANS-5161: This could happen on 
composite projects
+   // TODO: Implement composite project module 
dependency
+}
 }
 }
 }
@@ -259,19 +264,24 @@ class GradleBaseProjectBuilder implements 
ProjectInfoExtractor.Result {
 
 private ModuleDependency resolveModuleDependency(File gradleUserHome, 
String c) {
 GradleModuleFileCache21 moduleCache = 
GradleModuleFileCache21.getGradleFileCache(gradleUserHome.toPath());
-GradleModuleFileCache21.CachedArtifactVersion artVersion = 
moduleCache.resolveModule(c);
-Set binaries = artifactSore.getBinaries(c);
-if (((binaries == null) || binaries.isEmpty()) && 
(artVersion.getBinary() != null)) {
-binaries = 
Collections.singleton(artVersion.getBinary().getPath().toFile());
-}

[netbeans] branch delivery updated: [NETBEANS-5340] Prevent NPE on TaskNode when opening Gradle Projects

2021-02-08 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 77a0647  [NETBEANS-5340] Prevent NPE on TaskNode when opening Gradle 
Projects
77a0647 is described below

commit 77a064767653c23a111f6fd1e2277f1bc00d31ad
Author: Laszlo Kishalmi 
AuthorDate: Sat Feb 6 21:23:23 2021 -0800

[NETBEANS-5340] Prevent NPE on TaskNode when opening Gradle Projects
---
 .../org/netbeans/modules/gradle/execute/navigator/TasksPanel.java  | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/execute/navigator/TasksPanel.java
 
b/extide/gradle/src/org/netbeans/modules/gradle/execute/navigator/TasksPanel.java
index 39bb2ad..b2fbe31 100644
--- 
a/extide/gradle/src/org/netbeans/modules/gradle/execute/navigator/TasksPanel.java
+++ 
b/extide/gradle/src/org/netbeans/modules/gradle/execute/navigator/TasksPanel.java
@@ -260,6 +260,7 @@ public class TasksPanel extends javax.swing.JPanel 
implements ExplorerManager.Pr
 private final ChangeListener listener;
 
 public FavoritesChildren() {
+assert currentP != null;
 FavoriteTaskManager fvm = getFavoriteTaskManager();
 listener = (e) -> {
 Set favs = fvm.getFavoriteTasks();
@@ -271,7 +272,11 @@ public class TasksPanel extends javax.swing.JPanel 
implements ExplorerManager.Pr
 
 @Override
 protected Node[] createNodes(GradleTask key) {
-return new Node[] {new TaskNode(currentP, key)};
+// NETBEANS-5340 It might happen that the currentP is null, but 
the listener
+// still active on the previous project.
+return currentP != null ? 
+new Node[] {new TaskNode(currentP, key)} :
+new Node[0];
 }
 
 }


-
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



[netbeans-jackpot30] branch master updated (e84bb49 -> 8e13d9a)

2021-02-08 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jackpot30.git.


from e84bb49  Preparing a possible 12.2 release, and improving 
compatibility with JDK 16
 add 8e13d9a  A plugin to show desugared and decompiled code produced by 
javac.

No new revisions were added by this update.

Summary of changes:
 extra/java.debugjavac/.gitignore   |   1 +
 extra/java.debugjavac/pom.xml  | 217 ++
 .../modules/java/debugjavac/Bundle.properties  |  29 +-
 .../java/debugjavac/CompilerDescription.java   | 229 ++
 .../modules/java/debugjavac/DJavaDataObject.java   |  57 +++
 .../modules/java/debugjavac/DecompileToolbar.form  | 123 ++
 .../modules/java/debugjavac/DecompileToolbar.java  | 334 +++
 .../modules/java/debugjavac/DecompiledTab.java | 474 +
 .../modules/java/debugjavac/Decompiler.java| 128 ++
 .../java/debugjavac/DecompilerDescription.java |  56 +++
 .../modules/java/debugjavac/TopLevelLexer.java |  88 
 .../modules/java/debugjavac/TopLevelTokenId.java   |  75 
 .../modules/java/debugjavac/Utilities.java | 110 +
 .../debugjavac/impl/DesugarDecompilerImpl.java | 120 ++
 .../java/debugjavac/impl/JavapDecompilerImpl.java  | 129 ++
 .../modules/java/debugjavac/impl/Main.java |  65 +++
 .../modules/java/debugjavac/impl/Utilities.java|  72 
 extra/java.debugjavac/src/main/nbm/manifest.mf |   3 +
 .../modules/java/debugjavac/Bundle.properties  |  26 +-
 19 files changed, 2298 insertions(+), 38 deletions(-)
 create mode 100644 extra/java.debugjavac/.gitignore
 create mode 100644 extra/java.debugjavac/pom.xml
 copy .travis.yml => 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/Bundle.properties
 (53%)
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/CompilerDescription.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/DJavaDataObject.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/DecompileToolbar.form
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/DecompileToolbar.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/DecompiledTab.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/Decompiler.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/DecompilerDescription.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/TopLevelLexer.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/TopLevelTokenId.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/Utilities.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/impl/DesugarDecompilerImpl.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/impl/JavapDecompilerImpl.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/impl/Main.java
 create mode 100644 
extra/java.debugjavac/src/main/java/org/netbeans/modules/java/debugjavac/impl/Utilities.java
 create mode 100644 extra/java.debugjavac/src/main/nbm/manifest.mf
 copy .travis.yml => 
extra/java.debugjavac/src/main/resources/org/netbeans/modules/java/debugjavac/Bundle.properties
 (53%)


-
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



[netbeans-jackpot30] branch master updated: Preparing a possible 12.2 release, and improving compatibility with JDK 16

2021-02-08 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new e84bb49  Preparing a possible 12.2 release, and improving 
compatibility with JDK 16
e84bb49 is described below

commit e84bb49e63957c9a654336a9d8621bd29c3ebeca
Author: Jan Lahoda 
AuthorDate: Mon Feb 8 22:21:56 2021 +0100

Preparing a possible 12.2 release, and improving compatibility with JDK 16
---
 .travis.yml|  4 +--
 cmdline/README.md  |  4 +--
 cmdline/build.xml  |  2 +-
 cmdline/lib/nbproject/project.properties   |  1 +
 .../modules/jackpot30/cmdline/lib/Utils.java   | 32 ++
 cmdline/maven/pom.xml  |  2 +-
 .../modules/jackpot30/maven/RunJackpot30Test.java  |  2 +-
 .../maven/tests/sl-17/src/main/java/test/App.java  |  1 +
 .../maven/tests/sl-18/src/main/java/test/App.java  |  1 +
 cmdline/tool/scripts/pom.xml   |  2 +-
 .../netbeans/modules/jackpot30/cmdline/Main.java   | 12 +++-
 .../modules/jackpot30/cmdline/ProcessorImpl.java   | 13 -
 .../jackpot30/cmdline/CreateToolProcessorTest.java |  7 -
 .../modules/jackpot30/cmdline/MainTest.java| 19 ++---
 .../jackpot30/cmdline/ProcessorImplTest.java   | 16 +--
 15 files changed, 81 insertions(+), 37 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 32d137f..e46bd23 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,8 +24,8 @@ addons:
 jdk:
   - openjdk11
 before_script:
-  - wget 
'https://archive.apache.org/dist/netbeans/netbeans/11.3/netbeans-11.3-bin.zip' 
-O /tmp/netbeans-11.3-bin.zip
-  - (cd $HOME; unzip /tmp/netbeans-11.3-bin.zip)
+  - wget 
'https://archive.apache.org/dist/netbeans/netbeans/12.2/netbeans-12.2-bin.zip' 
-O /tmp/netbeans-12.2-bin.zip
+  - (cd $HOME; unzip /tmp/netbeans-12.2-bin.zip)
   - unset _JAVA_OPTIONS
 script:
   - export JDK11=$JAVA_HOME
diff --git a/cmdline/README.md b/cmdline/README.md
index 146db79..c5ede07 100644
--- a/cmdline/README.md
+++ b/cmdline/README.md
@@ -27,7 +27,7 @@ This tool allows to run NetBeans Java code checker without 
the NetBeans IDE. Thi
 
  To Build
 
-* Apache NetBeans 12.0
+* Apache NetBeans 12.2
 * JDK 8 and JDK 11
 * bash
 * Apache ant 1.9.9 or above
@@ -42,7 +42,7 @@ This tool allows to run NetBeans Java code checker without 
the NetBeans IDE. Thi
 Build using:
 
 ```
-$ ant -DNETBEANS_PLATFORM= -DJDK11= 
build-and-test
+$ ant -DNETBEANS_PLATFORM= -DJDK11= 
build-and-test
 ```
 
 The built product is in tool/build/jackpot.
diff --git a/cmdline/build.xml b/cmdline/build.xml
index 6358c97..40d1a45 100644
--- a/cmdline/build.xml
+++ b/cmdline/build.xml
@@ -52,7 +52,7 @@
 
 
 
-
+
 
 
 
diff --git a/cmdline/lib/nbproject/project.properties 
b/cmdline/lib/nbproject/project.properties
index 3ff4e3b..20a0642 100644
--- a/cmdline/lib/nbproject/project.properties
+++ b/cmdline/lib/nbproject/project.properties
@@ -17,3 +17,4 @@ is.autoload=true
 javac.source=1.8
 javac.compilerargs=-Xlint -Xlint:-serial
 spec.version.base=1.16.0
+cp.extra=${tools.jar}
diff --git 
a/cmdline/lib/src/org/netbeans/modules/jackpot30/cmdline/lib/Utils.java 
b/cmdline/lib/src/org/netbeans/modules/jackpot30/cmdline/lib/Utils.java
index 36ecc04..ceb220c 100644
--- a/cmdline/lib/src/org/netbeans/modules/jackpot30/cmdline/lib/Utils.java
+++ b/cmdline/lib/src/org/netbeans/modules/jackpot30/cmdline/lib/Utils.java
@@ -18,18 +18,29 @@
  */
 package org.netbeans.modules.jackpot30.cmdline.lib;
 
+import com.sun.source.util.JavacTask;
 import java.io.File;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.io.StringWriter;
 import java.lang.reflect.InvocationTargetException;
 import java.net.MalformedURLException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.URL;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.regex.Pattern;
+import javax.tools.ForwardingJavaFileManager;
+import javax.tools.JavaCompiler;
+import javax.tools.JavaCompiler.CompilationTask;
+import javax.tools.JavaFileManager;
+import javax.tools.JavaFileManager.Location;
+import javax.tools.ToolProvider;
 import org.netbeans.api.annotations.common.NonNull;
 import org.netbeans.api.java.classpath.ClassPath;
 import org.netbeans.modules.java.hints.providers.spi.HintDescription;
@@ -157,4 +168,25 @@ public class Utils {
 jrtRoot :
 modules;
 }
+
+public static void addExports() {
+class CurrentClassLoaderFM extends 
ForwardingJavaFileManager {
+public CurrentClassLoaderFM(JavaFileManager delegate) {

[jira] [Commented] (NETBEANS-4506) Nette DI container type inference

2021-02-08 Thread Jira


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

Tomáš Procházka commented on NETBEANS-4506:
---

This issue can be solved by using generics proposed in NETBEANS-4872.

> Nette DI container type inference
> -
>
> Key: NETBEANS-4506
> URL: https://issues.apache.org/jira/browse/NETBEANS-4506
> Project: NetBeans
>  Issue Type: New Feature
>  Components: php - Nette
>Affects Versions: 12.0
>Reporter: Tomáš Procházka
>Assignee: Tomáš Procházka
>Priority: Major
>
> It would be helpful for usage of Nette DI container 
> (https://github.com/nette/di) to suppport type inference for 
> {{\Nette\DI\Container::getByType()}} and 
> {{\Nette\DI\Container::createInstance()}} methods.
> These methods return object with same instance as their first parameter.
> Following example demonstrates expected behavior.
> For both variables {{$builder}} and {{$builder2}} can NetBeans "know" from 
> first parameter that their type is {{MyBuilder}} and offer method 
> {{build()}}. Currently methods from {{\Nette\DI\Container}} are offered.
> {code:php}
>  class MyBuilder {
> public function build() {  }
> }
> 
> $container = new \Nette\DI\Container();
> $builder = $container->getByType( MyBuilder::class );
> $builder-> // Method build() is offered.
> $builder2 = $container->createInstance( MyBuilder::class );
> $builder2-> // Method build() is offered.
> {code}



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

-
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-3391) Support PSR-12 valid formatting rules

2021-02-08 Thread Jira


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

Tomáš Procházka commented on NETBEANS-3391:
---

[~lobzek] I created NETBEANS-5342 related to parameter wrapping.

[~junichi11] This issue is just about formatting {{foreach}} or do you plan 
implement all other PSR-12 rules? I'm asking to be sure that NETBEANS-5342 is 
not duplicate to this issue.


> Support PSR-12 valid formatting rules
> -
>
> Key: NETBEANS-3391
> URL: https://issues.apache.org/jira/browse/NETBEANS-3391
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Formatting & Indentation
>Affects Versions: 12.0, 11.1, 11.2
>Reporter: Johannes
>Assignee: Junichi Yamamoto
>Priority: Trivial
>
> Please add options to allow for PSR-12 valid formatting. (PRS-12:[ 
> https://www.php-fig.org/psr/psr-12/)|https://www.php-fig.org/psr/psr-12/]
> Currently there is no way to get netbeans accept the following code format:
>   
> {code:php}
> $array = ['a','b','c'];
> foreach(
> array_filter($array, function ($a) {
> return $a === 'b';
> }) as $data
> ) {
> //code
> }
> {code}
> Formatting the code removes the required indent:
> {code:php}
> $array = ['a','b','c'];
> foreach(
> array_filter($array, function ($a) {
> return $a === 'b';
> }) as $data
> ) {
> //code
> }
> {code}
> PSR-12 Rules:
>  - PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine
>  - PSR12.ControlStructures.ControlStructureSpacing.LineIndent



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

-
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-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-5344:
-

Great. Then you can use the Maven based JavaFX application. 

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Gi Pak (Jira)


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

Gi Pak commented on NETBEANS-5344:
--

Unfortunately, my project assignment requires me to use JavaFX application.  

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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



[netbeans] annotated tag 12.0-u2 updated (ba34c2d -> 57ea6e0)

2021-02-08 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a change to annotated tag 12.0-u2
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


*** WARNING: tag 12.0-u2 was modified! ***

from ba34c2d  (commit)
  to 57ea6e0  (tag)
 tagging ba34c2dabd3091a6ee93cfde08a653816a7e19ea (commit)
 replaces 12.0-u1
  by Laszlo Kishalmi
  on Mon Feb 8 09:35:22 2021 -0800

- Log -
Apache NetBeans 12.0-u2
---


No new revisions were added by this update.

Summary of changes:


-
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-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-5344:
-

Can you use the Maven Gluon templates instead, please, also availiae in the New 
Project dialog?

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Gi Pak (Jira)


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

Gi Pak commented on NETBEANS-5344:
--

Thank you Geertjan for responding so quickly. Before downloading JavaFX, I 
tried to create a project using Java with Ant's JavaFX application but I got an 
error stating "failed to automatically setup JavaFX platform." I downloaded 
JavaFX JDK version 1.8 and installed it. I created a JAVA_HOME environment 
variable with the path.  I went back to NetBeans to add it to my platform 
manager. I created a new project using Java with Ant's JavaFX application. 
After clicking finish, the Hello World code did not automatically generate as 
it should. I manually typed in the Hello World code and tried to run the file 
and that is where the exception error popped up. I have watched a few Youtube 
videos and Google searched this issue but still no luck. 

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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] [Closed] (NETBEANS-5347) Formatting only works for Java code

2021-02-08 Thread Simon Martinelli (Jira)


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

Simon Martinelli closed NETBEANS-5347.
--
Resolution: Works for Me

I removed all configuration and then it worked.

There must have been old configuration from 12.1 that caused the issue

> Formatting only works for Java code
> ---
>
> Key: NETBEANS-5347
> URL: https://issues.apache.org/jira/browse/NETBEANS-5347
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.2
>Reporter: Simon Martinelli
>Priority: Major
> Attachments: image-2021-02-08-17-08-52-556.png
>
>
> All code is on the first column expect for Java code.
> !image-2021-02-08-17-08-52-556.png!



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

-
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] [Created] (NETBEANS-5347) Formatting only works for Java code

2021-02-08 Thread Simon Martinelli (Jira)
Simon Martinelli created NETBEANS-5347:
--

 Summary: Formatting only works for Java code
 Key: NETBEANS-5347
 URL: https://issues.apache.org/jira/browse/NETBEANS-5347
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.2
Reporter: Simon Martinelli
 Attachments: image-2021-02-08-17-08-52-556.png

All code is on the first column expect for Java code.

!image-2021-02-08-17-08-52-556.png!



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

-
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] [Created] (NETBEANS-5346) Implement debugger attach in VSCode extension

2021-02-08 Thread Martin Entlicher (Jira)
Martin Entlicher created NETBEANS-5346:
--

 Summary: Implement debugger attach in VSCode extension
 Key: NETBEANS-5346
 URL: https://issues.apache.org/jira/browse/NETBEANS-5346
 Project: NetBeans
  Issue Type: Improvement
  Components: vscode
Affects Versions: 12.2
Reporter: Martin Entlicher
Assignee: Martin Entlicher
 Fix For: 12.4


Debugger attach to a remote process is missing in VSCode extension.



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

-
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] [Created] (NETBEANS-5345) NullPointerException

2021-02-08 Thread Thilina Jayamini (Jira)
Thilina Jayamini created NETBEANS-5345:
--

 Summary: NullPointerException
 Key: NETBEANS-5345
 URL: https://issues.apache.org/jira/browse/NETBEANS-5345
 Project: NetBeans
  Issue Type: Bug
  Components: java - Compiler
 Environment: 
 2021-02-08T15:31:50
 1612778510723
 878
 700
 236
 UI_USER_CONFIGURATION
 UI_USER_CONFIGURATION
 org.netbeans.modules.uihandler.Bundle
 Windows 8.1, 6.3, amd64
 Java HotSpot(TM) 64-Bit Server VM, 25.152-b16, Java(TM) SE Runtime 
Environment, 1.8.0_152-b16
 Apache NetBeans IDE 12.2
 
 NullPointerException at 
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs
 
 *

Reporter: Thilina Jayamini


SEVERE [global]: IsOverriddenAnnotationHandler: originalMethod == null!SEVERE 
[global]: IsOverriddenAnnotationHandler: originalMethod == null!INFO 
[org.netbeans.api.java.source.ElementHandle]: Cannot resolve: 
ElementHandle[kind=METHOD; 
sigs=com.hdps.lty.engine.logic.messages.ResponseMessage getResponceCode 
()Ljava/lang/String; ]SEVERE [global]: IsOverriddenAnnotationHandler: 
originalMethod == null!INFO [org.netbeans.api.java.source.ElementHandle]: 
Cannot resolve: ElementHandle[kind=METHOD; 
sigs=com.hdps.lty.engine.logic.messages.ResponseMessage getResponceDesc 
()Ljava/lang/String; ]SEVERE [global]: IsOverriddenAnnotationHandler: 
originalMethod == null!INFO [org.netbeans.api.java.source.ElementHandle]: 
Cannot resolve: ElementHandle[kind=METHOD; 
sigs=com.hdps.lty.engine.logic.messages.ResponseMessage setResponceCode 
(Ljava/lang/String;)V ]SEVERE [global]: IsOverriddenAnnotationHandler: 
originalMethod == null!INFO [org.netbeans.api.java.source.ElementHandle]: 
Cannot resolve: ElementHandle[kind=METHOD; 
sigs=com.hdps.lty.engine.logic.messages.ResponseMessage setResponceDesc 
(Ljava/lang/String;)V ]SEVERE [global]: IsOverriddenAnnotationHandler: 
originalMethod == null!INFO [org.netbeans.api.java.source.ElementHandle]: 
Cannot resolve: ElementHandle[kind=METHOD; 
sigs=com.hdps.lty.engine.logic.messages.ResponseMessage toString 
()Ljava/lang/String; ]SEVERE [global]: IsOverriddenAnnotationHandler: 
originalMethod == null!INFO 
[org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl]:
 
org.netbeans.modules.java.hints.bugs.NPECheck.methodInvocationjava.lang.NullPointerException
 at 
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:914)
 at 
com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2500(JavacProcessingEnvironment.java:113)
 at 
com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1298)
 at 
com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1380)
 at 
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1350)
 at 
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1240)
 at 
com.sun.tools.javac.main.JavaCompiler.lambda$readSourceFile$3(JavaCompiler.java:930)
 at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:330) at 
com.sun.tools.javac.code.Symbol.complete(Symbol.java:683) at 
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1434) at 
com.sun.tools.javac.code.Symbol.apiComplete(Symbol.java:689) at 
com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:863) 
at 
com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:798) 
at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitMethod(NPECheck.java:1160)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitMethod(NPECheck.java:546)
 at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:940) at 
com.sun.source.util.TreeScanner.scan(TreeScanner.java:86) at 
org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:653)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:546)
 at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at 
org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:78)
 at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at 
com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:189) at 
com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:846) at 
com.sun.source.util.TreeScanner.scan(TreeScanner.java:86) at 
org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:653)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:546)
 at com.sun.sour

[jira] [Commented] (NETBEANS-5010) Go to File search should accept paths too

2021-02-08 Thread Czukowski (Jira)


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

Czukowski commented on NETBEANS-5010:
-

Of course, I'm not insisting that it's been done right away, just that it would 
be really good to improve this even further at some point.

Speaking of the performance, I often work on a project that has over 30k 
classes and more than 65k files in total, and the Go to Type / Go to File are 
life savers because Go to Declaration (or Ctrl+click) often struggles greatly 
and sometimes outright fails. I suspect this is due to the project size since I 
didn't have this kind of issue with smaller projects. At the same time, 
searching with Go to Type / Go to File is usually almost instant, even if I 
count the time needed to find out which class name is it that I want to 
navigate to, it's often still a faster way.

> Go to File search should accept paths too
> -
>
> Key: NETBEANS-5010
> URL: https://issues.apache.org/jira/browse/NETBEANS-5010
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Editor
>Affects Versions: 12.2
>Reporter: Czukowski
>Assignee: Emilian Bold
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Go to File seems to search only by the file name. For example, it takes only 
> a double click to copy a file name including its path from a console (eg from 
> git output), and it's a shame it cannot be pasted into Go to File dialog to 
> open that file just as easily, without removing the path information first.
> Also if there are many files with the same name (eg due to some naming 
> convention), there will be many results requiring some more time to locate 
> the correct one.
> Therefore Go to File dialog should accept parts of file paths as well.
> On Windows, both forward and back slashes should be supported for directory 
> separators.



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

-
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-5344) Unexpected Exception for JavaFX

2021-02-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-5344:
-

We'd like to help, can you provide steps we should take to reproduce the 
problem?

> Unexpected Exception for JavaFX 
> 
>
> Key: NETBEANS-5344
> URL: https://issues.apache.org/jira/browse/NETBEANS-5344
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Gi Pak
>Priority: Major
> Attachments: messages.log
>
>
> JavaFX Hello World code did not automatically generate in NetBeans. I 
> manually typed in the code but the error message displayed - A 
> java.lang.NoClassDefFoundError exception



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

-
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