[incubator-netbeans] branch release100 updated: [NETBEANS-1344] Force to use GTK 2.2 on Linux to improve LAF on Java 11+.

2018-11-03 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/release100 by this push:
 new 3283804  [NETBEANS-1344] Force to use GTK 2.2 on Linux to improve LAF 
on Java 11+.
3283804 is described below

commit 32838046f4f7e756093703114a733073432bcff1
Author: Laszlo Kishalmi 
AuthorDate: Sat Nov 3 00:04:23 2018 -0700

[NETBEANS-1344] Force to use GTK 2.2 on Linux to improve LAF on Java 11+.
---
 nb/ide.launcher/netbeans.conf | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/nb/ide.launcher/netbeans.conf b/nb/ide.launcher/netbeans.conf
index f839cce..e65d383 100644
--- a/nb/ide.launcher/netbeans.conf
+++ b/nb/ide.launcher/netbeans.conf
@@ -60,7 +60,13 @@ netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/10.0"
 # Concurrent Mark & Sweep garbage collector.
 # (see http://wiki.netbeans.org/FaqGCPauses)
 #
-netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m -J-Xms32m 
-J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true 
-J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true 
-J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang=ALL-UNNAMED -J--add-ope [...]
+# JDK 11 made GTK 3 default on Linux. Unfortunately it makes
+# NetBeans ugly on Linux with the default GTK+ Look and Feel,
+# as a workaround -J-Djdk.gtk.version=2.2 has been added to the 
+# default command line arguments.
+# (see: https://issues.apache.org/jira/browse/NETBEANS-1344)
+#
+netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m -J-Xms32m 
-J-Djdk.gtk.version=2.2 -J-Dapple.laf.useScreenMenuBar=true 
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true 
-J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true 
-J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang [...]
 
 # Default location of JDK:
 # (set by installer or commented out if launcher should decide)


-
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



[incubator-netbeans] branch master updated: [NETBEANS-1344] Force to use GTK 2.2 on Linux to improve LAF on Java 11+.

2018-11-03 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 65bca73  [NETBEANS-1344] Force to use GTK 2.2 on Linux to improve LAF 
on Java 11+.
65bca73 is described below

commit 65bca73b2f0833238a0732d3710d41a6d0f727a0
Author: Laszlo Kishalmi 
AuthorDate: Sat Nov 3 00:02:49 2018 -0700

[NETBEANS-1344] Force to use GTK 2.2 on Linux to improve LAF on Java 11+.
---
 nb/ide.launcher/netbeans.conf | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/nb/ide.launcher/netbeans.conf b/nb/ide.launcher/netbeans.conf
index c1ebe99..d081184 100644
--- a/nb/ide.launcher/netbeans.conf
+++ b/nb/ide.launcher/netbeans.conf
@@ -60,7 +60,13 @@ netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/dev"
 # Concurrent Mark & Sweep garbage collector.
 # (see http://wiki.netbeans.org/FaqGCPauses)
 #
-netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m -J-Xms32m 
-J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true 
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true 
-J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true 
-J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED -J--add-opens=java [...]
+# JDK 11 made GTK 3 default on Linux. Unfortunately it makes
+# NetBeans ugly on Linux with the default GTK+ Look and Feel,
+# as a workaround -J-Djdk.gtk.version=2.2 has been added to the 
+# default command line arguments.
+# (see: https://issues.apache.org/jira/browse/NETBEANS-1344)
+#
+netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m -J-Xms32m 
-J-Dnetbeans.logger.console=true -J-ea -J-Djdk.gtk.version=2.2 
-J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true 
-J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true 
-J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UN [...]
 
 # Default location of JDK:
 # (set by installer or commented out if launcher should decide)


-
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



[incubator-netbeans] branch release100 updated: [NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, disabling … (#969)

2018-11-03 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/release100 by this push:
 new 9d77afe  [NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, 
disabling … (#969)
9d77afe is described below

commit 9d77afecf3d6423c9c8ac4bb509adc1911d2154b
Author: Jan Lahoda 
AuthorDate: Sun Nov 4 03:44:42 2018 +0100

[NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, disabling … 
(#969)

* [NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, disabling 
console when the launchers are used.

* Fixing name/version of ide launchers.
---
 harness/apisupport.harness/external/binaries-list | 2 +-
 ...unchers-9.0-license.txt => harness-launchers-10.0-license.txt} | 2 +-
 harness/apisupport.harness/nbproject/project.properties   | 4 ++--
 harness/apisupport.harness/windows-launcher-src/Makefile.mingw| 4 ++--
 nb/ide.launcher/external/binaries-list| 2 +-
 .../{launchers-9.0-license.txt => launchers-10.0-license.txt} | 2 +-
 nb/ide.launcher/windows/Makefile.mingw| 4 ++--
 nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-binaries  | 2 +-
 nbbuild/build.xml | 2 +-
 platform/o.n.bootstrap/external/binaries-list | 2 +-
 ...nchers-9.0-license.txt => platform-launchers-10.0-license.txt} | 2 +-
 platform/o.n.bootstrap/launcher/windows/Makefile.mingw| 4 ++--
 platform/o.n.bootstrap/nbproject/project.properties   | 8 
 13 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/harness/apisupport.harness/external/binaries-list 
b/harness/apisupport.harness/external/binaries-list
index 15f68a8..b8acf76 100644
--- a/harness/apisupport.harness/external/binaries-list
+++ b/harness/apisupport.harness/external/binaries-list
@@ -20,4 +20,4 @@
 # D4EF66C1CC8A5B3C97E0CC7C210227AAEC1F1086 jsearch-2.0_05.jar
 A806D99716C5E9441BFD8B401176FDDEFC673022 bindex-2.2.jar
 6FF4C411EE231AB8042C9047373F87FC64D0299D harness-launchers-8.2.zip
-5E44A808DB371AD42096132FC899EE1B23EC5153 harness-launchers-9.0.zip
\ No newline at end of file
+EF35F672941F60C32B28E3C6ECB031A37950DCBE harness-launchers-10.0.zip
diff --git 
a/harness/apisupport.harness/external/harness-launchers-9.0-license.txt 
b/harness/apisupport.harness/external/harness-launchers-10.0-license.txt
similarity index 99%
rename from 
harness/apisupport.harness/external/harness-launchers-9.0-license.txt
rename to harness/apisupport.harness/external/harness-launchers-10.0-license.txt
index f13c0b9..95c797e 100644
--- a/harness/apisupport.harness/external/harness-launchers-9.0-license.txt
+++ b/harness/apisupport.harness/external/harness-launchers-10.0-license.txt
@@ -1,6 +1,6 @@
 Name: NetBeans Platform Applications Launchers
 Description: Windows Launchers for the NetBeans Platform Applications
-Version: 9.0
+Version: 10.0
 License: Apache-2.0
 Source: https://netbeans.org/
 Origin: NetBeans
diff --git a/harness/apisupport.harness/nbproject/project.properties 
b/harness/apisupport.harness/nbproject/project.properties
index 37241ed..4f50462 100644
--- a/harness/apisupport.harness/nbproject/project.properties
+++ b/harness/apisupport.harness/nbproject/project.properties
@@ -30,8 +30,8 @@ release.../../nbbuild/jdk.xml=jdk.xml
 # release.external/jsearch-2.0_05.jar=antlib/jsearch-2.0_05.jar
 release.external/bindex-2.2.jar=antlib/bindex-2.2.jar
 #release.external/jnlp-servlet.jar=jnlp/jnlp-servlet.jar
-release.external/harness-launchers-9.0.zip!/app.exe=launchers/app.exe
-release.external/harness-launchers-9.0.zip!/app64.exe=launchers/app64.exe
+release.external/harness-launchers-10.0.zip!/app.exe=launchers/app.exe
+release.external/harness-launchers-10.0.zip!/app64.exe=launchers/app64.exe
 release.external/harness-launchers-8.2.zip!/pre7_app.exe=launchers/pre7_app.exe
 
release.external/harness-launchers-8.2.zip!/pre7_app_w.exe=launchers/pre7_app_w.exe
 nbm.executable.files=launchers/app.sh
diff --git a/harness/apisupport.harness/windows-launcher-src/Makefile.mingw 
b/harness/apisupport.harness/windows-launcher-src/Makefile.mingw
index 1e54da8..5ef6f79 100644
--- a/harness/apisupport.harness/windows-launcher-src/Makefile.mingw
+++ b/harness/apisupport.harness/windows-launcher-src/Makefile.mingw
@@ -24,11 +24,11 @@ app64.res: app.rc app.exe.manifest
x86_64-w64-mingw32-windres -oapp64.res -Ocoff 
-DMANIFEST_FILE=app.exe.manifest app.rc
 
 app64.exe: app.cpp applauncher.cpp app64.res 
../../../platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp
-   x86_64-w64-mingw32-gcc -s -DNBEXEC_DLL='"/lib/nbexec64.dll"' 
-DARCHITECTURE=64 -Wl,--nxcompat -Wl,--dynamicbase -Wl,--no-seh app.cpp 
applauncher.cpp app64.res 
../../../platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp 
.

[incubator-netbeans] branch master updated: [NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, disabling … (#969)

2018-11-03 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new fc9a290  [NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, 
disabling … (#969)
fc9a290 is described below

commit fc9a290b3d7a90cba4af3d04d9573fefff0a5939
Author: Jan Lahoda 
AuthorDate: Sun Nov 4 03:44:42 2018 +0100

[NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, disabling … 
(#969)

* [NETBEANS-1420][NETBEANS-1308] Updating Windows Launchers, disabling 
console when the launchers are used.

* Fixing name/version of ide launchers.
---
 harness/apisupport.harness/external/binaries-list | 2 +-
 ...unchers-9.0-license.txt => harness-launchers-10.0-license.txt} | 2 +-
 harness/apisupport.harness/nbproject/project.properties   | 4 ++--
 harness/apisupport.harness/windows-launcher-src/Makefile.mingw| 4 ++--
 nb/ide.launcher/external/binaries-list| 2 +-
 .../{launchers-9.0-license.txt => launchers-10.0-license.txt} | 2 +-
 nb/ide.launcher/windows/Makefile.mingw| 4 ++--
 nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-binaries  | 2 +-
 nbbuild/build.xml | 2 +-
 platform/o.n.bootstrap/external/binaries-list | 2 +-
 ...nchers-9.0-license.txt => platform-launchers-10.0-license.txt} | 2 +-
 platform/o.n.bootstrap/launcher/windows/Makefile.mingw| 4 ++--
 platform/o.n.bootstrap/nbproject/project.properties   | 8 
 13 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/harness/apisupport.harness/external/binaries-list 
b/harness/apisupport.harness/external/binaries-list
index 15f68a8..b8acf76 100644
--- a/harness/apisupport.harness/external/binaries-list
+++ b/harness/apisupport.harness/external/binaries-list
@@ -20,4 +20,4 @@
 # D4EF66C1CC8A5B3C97E0CC7C210227AAEC1F1086 jsearch-2.0_05.jar
 A806D99716C5E9441BFD8B401176FDDEFC673022 bindex-2.2.jar
 6FF4C411EE231AB8042C9047373F87FC64D0299D harness-launchers-8.2.zip
-5E44A808DB371AD42096132FC899EE1B23EC5153 harness-launchers-9.0.zip
\ No newline at end of file
+EF35F672941F60C32B28E3C6ECB031A37950DCBE harness-launchers-10.0.zip
diff --git 
a/harness/apisupport.harness/external/harness-launchers-9.0-license.txt 
b/harness/apisupport.harness/external/harness-launchers-10.0-license.txt
similarity index 99%
rename from 
harness/apisupport.harness/external/harness-launchers-9.0-license.txt
rename to harness/apisupport.harness/external/harness-launchers-10.0-license.txt
index f13c0b9..95c797e 100644
--- a/harness/apisupport.harness/external/harness-launchers-9.0-license.txt
+++ b/harness/apisupport.harness/external/harness-launchers-10.0-license.txt
@@ -1,6 +1,6 @@
 Name: NetBeans Platform Applications Launchers
 Description: Windows Launchers for the NetBeans Platform Applications
-Version: 9.0
+Version: 10.0
 License: Apache-2.0
 Source: https://netbeans.org/
 Origin: NetBeans
diff --git a/harness/apisupport.harness/nbproject/project.properties 
b/harness/apisupport.harness/nbproject/project.properties
index 37241ed..4f50462 100644
--- a/harness/apisupport.harness/nbproject/project.properties
+++ b/harness/apisupport.harness/nbproject/project.properties
@@ -30,8 +30,8 @@ release.../../nbbuild/jdk.xml=jdk.xml
 # release.external/jsearch-2.0_05.jar=antlib/jsearch-2.0_05.jar
 release.external/bindex-2.2.jar=antlib/bindex-2.2.jar
 #release.external/jnlp-servlet.jar=jnlp/jnlp-servlet.jar
-release.external/harness-launchers-9.0.zip!/app.exe=launchers/app.exe
-release.external/harness-launchers-9.0.zip!/app64.exe=launchers/app64.exe
+release.external/harness-launchers-10.0.zip!/app.exe=launchers/app.exe
+release.external/harness-launchers-10.0.zip!/app64.exe=launchers/app64.exe
 release.external/harness-launchers-8.2.zip!/pre7_app.exe=launchers/pre7_app.exe
 
release.external/harness-launchers-8.2.zip!/pre7_app_w.exe=launchers/pre7_app_w.exe
 nbm.executable.files=launchers/app.sh
diff --git a/harness/apisupport.harness/windows-launcher-src/Makefile.mingw 
b/harness/apisupport.harness/windows-launcher-src/Makefile.mingw
index 1e54da8..5ef6f79 100644
--- a/harness/apisupport.harness/windows-launcher-src/Makefile.mingw
+++ b/harness/apisupport.harness/windows-launcher-src/Makefile.mingw
@@ -24,11 +24,11 @@ app64.res: app.rc app.exe.manifest
x86_64-w64-mingw32-windres -oapp64.res -Ocoff 
-DMANIFEST_FILE=app.exe.manifest app.rc
 
 app64.exe: app.cpp applauncher.cpp app64.res 
../../../platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp
-   x86_64-w64-mingw32-gcc -s -DNBEXEC_DLL='"/lib/nbexec64.dll"' 
-DARCHITECTURE=64 -Wl,--nxcompat -Wl,--dynamicbase -Wl,--no-seh app.cpp 
applauncher.cpp app64.res 
../../../platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp 
../../../

[jira] [Updated] (NETBEANS-1605) Remove the custom max heapsize calculation and cap at 1 Gb.

2018-11-03 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot updated NETBEANS-1605:
-
Labels: pull-request-available  (was: )

> Remove the custom max heapsize calculation and cap at 1 Gb.
> ---
>
> Key: NETBEANS-1605
> URL: https://issues.apache.org/jira/browse/NETBEANS-1605
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Launchers&CLI
>Reporter: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
>
> Currently NetBeans sets it max memory to the 1/5-th of physical memory or 1 
> Gb whichever is lower. This is unnecessary as the recent JVM heap is max 1/4 
> th of the system memory capping at 4Gb.
> I think the Java default would serve for the workloads nowadays.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1576) PHP autocompletion partially broken

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi commented on NETBEANS-1576:
---

Shall we cherry pick the PR in release100?

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png, 
> image-2018-11-03-15-33-28-173.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[incubator-netbeans] 02/03: Improve entity parsing, supporting multi-line entity definitions

2018-11-03 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

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

commit 85e8b4781b4782b7091ea450ecd94ccc033a782e
Author: Matthias Bläsing 
AuthorDate: Sun Oct 14 17:03:25 2018 +0200

Improve entity parsing, supporting multi-line entity definitions
---
 ide/schema2beans/nbproject/project.properties  |   2 +-
 .../modules/schema2beansdev/DocDefParser.java  |   6 +-
 .../modules/schema2beansdev/EntityParser.java  | 151 +++--
 ide/schema2beans/test/unit/data/TestEntity.dtd |  57 
 .../tests/SecondaryTest/testEntityParser.pass  |  55 
 .../test/unit/src/tests/SecondaryTest.java |  74 ++
 6 files changed, 237 insertions(+), 108 deletions(-)

diff --git a/ide/schema2beans/nbproject/project.properties 
b/ide/schema2beans/nbproject/project.properties
index 75849c7..5e0c56d 100644
--- a/ide/schema2beans/nbproject/project.properties
+++ b/ide/schema2beans/nbproject/project.properties
@@ -18,4 +18,4 @@
 is.autoload=true
 cp.extra=\
 ${ant.core.lib}
-javac.source=1.6
+javac.source=1.8
diff --git 
a/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/DocDefParser.java 
b/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/DocDefParser.java
index 7c919e2..1acb44f 100644
--- 
a/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/DocDefParser.java
+++ 
b/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/DocDefParser.java
@@ -82,8 +82,10 @@ public class DocDefParser extends GeneralParser implements 
SchemaParser {
 if (schemaIn == null) {
 schemaIn = new FileInputStream(filename);
 }
-EntityParser entityParser = new EntityParser(new 
InputStreamReader(schemaIn));
-entityParser.parse();
+EntityParser entityParser = new EntityParser();
+try (Reader r = new InputStreamReader(schemaIn)) {
+entityParser.parse(r);
+}
 reader = entityParser.getReader();
 }
 
diff --git 
a/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/EntityParser.java 
b/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/EntityParser.java
index 2a5fb52..b0a0449 100644
--- 
a/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/EntityParser.java
+++ 
b/ide/schema2beans/src/org/netbeans/modules/schema2beansdev/EntityParser.java
@@ -21,6 +21,8 @@ package org.netbeans.modules.schema2beansdev;
 
 import java.io.*;
 import java.util.*;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
 /**
  * EntityParser.java - parses the DTD file for entity declarations and creates 
new Reader
  * that replaces the entity references with values
@@ -29,56 +31,59 @@ import java.util.*;
  * @author mkuchtiak
  */
 public class EntityParser {
-private java.util.Map entityMap;
-private final String text;
-public EntityParser(Reader reader) throws IOException {
-StringWriter w = new StringWriter();
+private static final Pattern ENTITY_PATTERN = 
Pattern.compile("");
+private static final Pattern ENTITY_USE_PATTERN = 
Pattern.compile("%([\\S;]+);");
+
+private final Map entityMap  = new HashMap<>();
+private String remainingText = "";
+
+public EntityParser() throws IOException {
+}
+
+/**
+ * Parses file for ENTITY declaration, creates map with entities
+ */
+public void parse(Reader reader) throws IOException {
+StringBuilder w = new StringBuilder();
 char[] buf = new char[4096];
 int read;
 while ((read = reader.read(buf)) != -1) {
-w.write(buf, 0, read);
+w.append(buf, 0, read);
 }
-this.text = w.toString();
-entityMap = new java.util.HashMap();
-}
-/** Parses file for ENTITY declaration, creates map with entities
- */
-public void parse() throws IOException {
-BufferedReader br = new BufferedReader(new StringReader(text));
-String line = null;
-while ((line=br.readLine())!=null) {
-int startPos = line.indexOf("=0) addEntity(br,line.substring(startPos+9));
+
+String originalText = w.toString();
+
+StringBuffer buffer = new StringBuffer(originalText.length());
+Matcher entityMatcher = ENTITY_PATTERN.matcher(originalText);
+while(entityMatcher.find()) {
+addEntity(entityMatcher);
+entityMatcher.appendReplacement(buffer, "");
+}
+entityMatcher.appendTail(buffer);
+
+StringBuffer buffer2 = new StringBuffer(originalText.length());
+Matcher entityReplacementMatcher = ENTITY_USE_PATTERN.matcher(buffer);
+while(entityReplacementMatcher.find()) {
+String entity = entityReplacementMatcher.group(1);
+if(entityMap.containsKey(entity)) {
+entityReplacementMatcher.appendReplacement(buffer2, 
entityMap.get(entity));
+   

[incubator-netbeans] 03/03: Merge branch 'schema2beans_multiline_entities'

2018-11-03 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

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

commit b25c19e3cb1c7be0ed1ee01978bd73fd92ceb341
Merge: bd64fbd 85e8b47
Author: Matthias Bläsing 
AuthorDate: Sat Nov 3 23:31:45 2018 +0100

Merge branch 'schema2beans_multiline_entities'

Reviewed via: 
https://github.com/apache/incubator-netbeans/pull/958#issuecomment-434579984

 ide/schema2beans/nbproject/project.properties  |   2 +-
 .../modules/schema2beansdev/DocDefParser.java  |   6 +-
 .../modules/schema2beansdev/EntityParser.java  | 151 -
 ide/schema2beans/test/unit/data/TestEntity.dtd |  57 +
 .../tests/SecondaryTest/testEntityParser.pass  |  55 +
 ide/schema2beans/test/unit/src/tests/MainTest.java | 250 +++--
 .../test/unit/src/tests/SecondaryTest.java |  74 ++
 7 files changed, 366 insertions(+), 229 deletions(-)


-
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



[incubator-netbeans] 01/03: Disable failing test caused by non-donated files

2018-11-03 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

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

commit 6a8edb1e1411a48a5de67582f9cf34447116db8a
Author: Matthias Bläsing 
AuthorDate: Sat Oct 13 22:27:24 2018 +0200

Disable failing test caused by non-donated files
---
 ide/schema2beans/test/unit/src/tests/MainTest.java | 250 +++--
 1 file changed, 129 insertions(+), 121 deletions(-)

diff --git a/ide/schema2beans/test/unit/src/tests/MainTest.java 
b/ide/schema2beans/test/unit/src/tests/MainTest.java
index b976bec..cace6b8 100644
--- a/ide/schema2beans/test/unit/src/tests/MainTest.java
+++ b/ide/schema2beans/test/unit/src/tests/MainTest.java
@@ -34,9 +34,10 @@ public class MainTest extends NbTestCase {
 super(testName);
 }
 
-public void testPurchaseOrder() throws IOException, Schema2BeansException, 
InterruptedException {
-generalTest("TestPurchaseOrder", true, true, true);
-}
+/  Disabled as schema/DTD/XML was not donated
+//public void testPurchaseOrder() throws IOException, 
Schema2BeansException, InterruptedException {
+//generalTest("TestPurchaseOrder", true, true, true);
+//}
 
 public void testInvoice() throws IOException, Schema2BeansException, 
InterruptedException {
 GenBeans.Config config = new GenBeans.Config();
@@ -113,14 +114,15 @@ public class MainTest extends NbTestCase {
 generalTest("TestEmpty");
 }
 
-public void testNamespace() throws IOException, Schema2BeansException, 
InterruptedException {
-GenBeans.Config config = new GenBeans.Config();
-config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
-config.setAttributesAsProperties(true);
-config.setRemoveUnreferencedNodes(true);
-config.setGenerateValidate(true);
-generalTest("TestNamespace", true, config);
-}
+/  Disabled as schema/DTD/XML was not donated
+//public void testNamespace() throws IOException, Schema2BeansException, 
InterruptedException {
+//GenBeans.Config config = new GenBeans.Config();
+//config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
+//config.setAttributesAsProperties(true);
+//config.setRemoveUnreferencedNodes(true);
+//config.setGenerateValidate(true);
+//generalTest("TestNamespace", true, config);
+//}
 
 public void testExtensionSample() throws IOException, 
Schema2BeansException, InterruptedException {
 generalTest("TestExtensionSample", true, true, true);
@@ -147,42 +149,46 @@ public class MainTest extends NbTestCase {
 generalTest("TestExtension2", true, config);
 }
 
-public void testWebApp() throws IOException, Schema2BeansException, 
InterruptedException {
-GenBeans.Config config = new GenBeans.Config();
-config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
-config.setAttributesAsProperties(true);
-config.setGenerateCommonInterface("CommonBean");
-config.setRemoveUnreferencedNodes(true);
-generalTest("TestWebApp", true, config);
-}
-
-public void testWebAppDelegator() throws IOException, 
Schema2BeansException, InterruptedException {
-GenBeans.Config config = new GenBeans.Config();
-config.buyPremium();
-config.setGenerateDelegator(true);
-config.setGenerateHasChanged(true);
-generalTest("TestWebAppDelegator", true, config);
-}
-
-public void testWebAppDelegatorBaseBean() throws IOException, 
Schema2BeansException, InterruptedException {
-GenBeans.Config config = new GenBeans.Config();
-config.buyPremium();
-config.setGenerateDelegator(true);
-config.setOutputType(GenBeans.Config.OUTPUT_TRADITIONAL_BASEBEAN);
-generalTest("TestWebAppDelegatorBaseBean", true, config);
-}
-
-public void testFinalWebApp() throws IOException, Schema2BeansException, 
InterruptedException {
-GenBeans.Config config = new GenBeans.Config();
-config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
-config.setAttributesAsProperties(true);
-config.setGenerateCommonInterface("CommonBean");
-config.setGenerateValidate(true);
-config.setProcessComments(true);
-config.setProcessDocType(true);
-config.addReadBeanGraphFiles(new File(getDataDir(), 
"TestFinalWebAppBeanGraph.xml"));
-generalTest("TestFinalWebApp", true, config);
-}
+/  Disabled as schema/DTD/XML was not donated
+//public void testWebApp() throws IOException, Schema2BeansException, 
InterruptedException {
+//GenBeans.Config config = new GenBeans.Config();
+//config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
+//config.setAttributesAsProperties(true);
+//config.setGenerateCommonInterface("CommonBean");
+//config.setRemoveUnreferencedNodes(true);
+//genera

[incubator-netbeans] branch master updated (bd64fbd -> b25c19e)

2018-11-03 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

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


from bd64fbd  Merge branch 'github-pr-916'
 new 6a8edb1  Disable failing test caused by non-donated files
 new 85e8b47  Improve entity parsing, supporting multi-line entity 
definitions
 new b25c19e  Merge branch 'schema2beans_multiline_entities'

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ide/schema2beans/nbproject/project.properties  |   2 +-
 .../modules/schema2beansdev/DocDefParser.java  |   6 +-
 .../modules/schema2beansdev/EntityParser.java  | 151 -
 ide/schema2beans/test/unit/data/TestEntity.dtd |  57 +
 .../tests/SecondaryTest/testEntityParser.pass  |  55 +
 ide/schema2beans/test/unit/src/tests/MainTest.java | 250 +++--
 .../test/unit/src/tests/SecondaryTest.java |  74 ++
 7 files changed, 366 insertions(+), 229 deletions(-)
 create mode 100644 ide/schema2beans/test/unit/data/TestEntity.dtd
 create mode 100644 
ide/schema2beans/test/unit/data/goldenfiles/tests/SecondaryTest/testEntityParser.pass
 create mode 100644 ide/schema2beans/test/unit/src/tests/SecondaryTest.java


-
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] [Resolved] (NETBEANS-1372) Update the Snap package descriptor files

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi resolved NETBEANS-1372.
---
   Resolution: Fixed
Fix Version/s: 10.0

> Update the Snap package descriptor files
> 
>
> Key: NETBEANS-1372
> URL: https://issues.apache.org/jira/browse/NETBEANS-1372
> Project: NetBeans
>  Issue Type: Sub-task
>Reporter: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
> Fix For: 10.0
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> We have new hi-res frame images use the 512x512 one for the icon
> Update the version number in the snapcraft.yaml and the netbeans.desktop files
> In order to have the best out of the box experience add the following options 
> to netbeans.conf:
> -J-Djdk.gtk.version=2.2 -J-Dawt.useSystemAAFontSettings=on



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[incubator-netbeans] branch release100 updated: [NETBEANS-1372] Updated Snap descriptors for Release 10

2018-11-03 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/release100 by this push:
 new 6fe14e0  [NETBEANS-1372] Updated Snap descriptors for Release 10
6fe14e0 is described below

commit 6fe14e05dbbcf24c47bf2e3676872afd3ccc2016
Author: Laszlo Kishalmi 
AuthorDate: Sat Oct 6 15:30:41 2018 -0700

[NETBEANS-1372] Updated Snap descriptors for Release 10
---
 nbbuild/packaging/snap/gui/netbeans.desktop | 6 +++---
 nbbuild/packaging/snap/snapcraft.yaml   | 5 +++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/nbbuild/packaging/snap/gui/netbeans.desktop 
b/nbbuild/packaging/snap/gui/netbeans.desktop
index a872037..bad65d7 100644
--- a/nbbuild/packaging/snap/gui/netbeans.desktop
+++ b/nbbuild/packaging/snap/gui/netbeans.desktop
@@ -17,9 +17,9 @@
 [Desktop Entry]
 Type=Application
 Encoding=UTF-8
-Name=NetBeans Dev
-Comment=The Smarter Way to Code
+Name=NetBeans 10.0
+Comment=Apache NetBeans, The Smarter Way to Code
 Exec=netbeans %F
-Categories=Application;Development;Java;IDE
+Categories=Application;Development;Java;PHP;JS;JavaScript;IDE
 Icon=${SNAP}/meta/gui/icon.png
 Terminal=false
diff --git a/nbbuild/packaging/snap/snapcraft.yaml 
b/nbbuild/packaging/snap/snapcraft.yaml
index bb9be08..f2846aa 100644
--- a/nbbuild/packaging/snap/snapcraft.yaml
+++ b/nbbuild/packaging/snap/snapcraft.yaml
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 name: netbeans
-version: "9.0-dev"
+version: "10.0"
 summary: NetBeans Java IDE
 description: |
   NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and 
@@ -23,7 +23,7 @@ description: |
   CSS. The IDE also provides a great set of tools for PHP and C/C++ developers.
   It is free and open source and has a large community of users and developers
   around the world. 
-icon: ../../ide.branding/release/netbeans.png
+icon: ../../platform/core.startup/src/org/netbeans/core/startup/frame512.png
 confinement: classic
 grade: devel
 architectures: [ amd64 ]
@@ -47,6 +47,7 @@ parts:
 # Make the default cache and data directory relative to Snap user 
directory
 sed -i 's/${HOME}\/.netbeans/${SNAP_USER_COMMON}\/data/' 
$SNAPCRAFT_PART_INSTALL/netbeans/bin/netbeans
 sed -i 's/${HOME}\/.cache\/netbeans/${SNAP_USER_COMMON}\/cache/' 
$SNAPCRAFT_PART_INSTALL/netbeans/bin/netbeans
+sed -i 
's/-J-Dapple.laf.useScreenMenuBar=true/-J-Dapple.laf.useScreenMenuBar=true 
-J-Dawt.useSystemAAFontSettings=on/' 
$SNAPCRAFT_PART_INSTALL/netbeans/etc/netbeans.conf
 stage:
 - $netbeans
 


-
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-1419) AssertionError when edit JDK

2018-11-03 Thread Michal Rama (JIRA)


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

Michal Rama commented on NETBEANS-1419:
---

And why, this version 
https://cwiki.apache.org/confluence/display/NETBEANS/10vc2 does not show the 
error?

> AssertionError when edit JDK
> 
>
> Key: NETBEANS-1419
> URL: https://issues.apache.org/jira/browse/NETBEANS-1419
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - JDK Problems
>Affects Versions: 10.0
> Environment: Windows 10, Incubator NetBeans Linux 880, Java 11.0.1
>Reporter: Michal Rama
>Assignee: Sarvesh Kesharwani
>Priority: Minor
>  Labels: JDK, pull-request-available
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> Hello,
> When I right-click on jdk (any version) and choose edit, it will throw an 
> error.
> *A org.openide.util.RequestProcessor$SlowItem exception has occurred.*
> Clicking Show Details will appear
> {code:java}
> java.lang.AssertionError
>  at org.openide.awt.HtmlRendererImpl.reset(HtmlRendererImpl.java:78)
>  at 
> org.openide.awt.HtmlRendererImpl.getTreeCellRendererComponent(HtmlRendererImpl.java:122)
>  at 
> org.openide.explorer.view.NodeRenderer.getTreeCellRendererComponent(NodeRenderer.java:131)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:3155)
>  at 
> java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:493)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1344)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache.updateNodeSizes(VariableHeightLayoutCache.java:903)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache.invalidateSizes(VariableHeightLayoutCache.java:371)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(BasicTreeUI.java:465)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3816)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
>  at java.desktop/java.awt.Component.firePropertyChange(Component.java:8728)
>  at java.desktop/javax.swing.JTree.setCellRenderer(JTree.java:775)
>  at org.openide.explorer.view.TreeView.initializeTree(TreeView.java:281)
>  at org.openide.explorer.view.TreeView.(TreeView.java:213)
>  at org.openide.explorer.view.TreeView.(TreeView.java:203)
>  at org.openide.explorer.view.BeanTreeView.(BeanTreeView.java:73)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer$PlatformsView.(PlatformsCustomizer.java:527)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer.initComponents(PlatformsCustomizer.java:153)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer.(PlatformsCustomizer.java:94)
>  at 
> org.netbeans.api.java.platform.PlatformsCustomizer.showCustomizer(PlatformsCustomizer.java:41)
>  at 
> org.netbeans.modules.java.api.common.project.ui.PlatformNode$PlatformEditable.edit(PlatformNode.java:292)
>  at 
> org.netbeans.modules.java.api.common.project.ui.EditRootAction.performAction(EditRootAction.java:41)
>  at 
> org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:561)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker$ActionRunnable.actionPerformed(ActionInvoker.java:137)
>  at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:84)
>  at 
> org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:35)
>  at 
> org.openide.util.actions.ActionInvoker$ActionRunnable.doRun(ActionInvoker.java:128)
>  at org.openide.util.actions.ActionInvoker$2.run(ActionInvoker.java:85)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at 
> org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:89)
>  at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
>  at 
> org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:558)
>  at 
> java.desktop

[jira] [Resolved] (NETBEANS-1420) UpgradeWindows Launchers

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi resolved NETBEANS-1420.
---
Resolution: Fixed

> UpgradeWindows Launchers
> 
>
> Key: NETBEANS-1420
> URL: https://issues.apache.org/jira/browse/NETBEANS-1420
> Project: NetBeans
>  Issue Type: Sub-task
>  Components: platform - Launchers&CLI
>Reporter: Laszlo Kishalmi
>Assignee: Jan Lahoda
>Priority: Major
>  Labels: Windows., pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Dear Jan,
> I'd ask a favor to create and upload the Windows launchers for the 10.0 
> release as you did for 9.0. I'm afraid NETBEAN-1145 is not going to be put in 
> process for the 10.0 release.
> Thank you very much.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1419) AssertionError when edit JDK

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi commented on NETBEANS-1419:
---

Well, this issue might be there in a long time. Though releases usually 
suppress assertions. And changing the JDK throughout the PopUp menu is quite 
unusual use case. My proposal fixing this issue would be remove the PopUp Menu 
for Edit JDK from the Ant Projects. Project Customizer is a much better place 
to do that.

The reason for the assertion: the action is opened out of the AWT thread as it 
was previously marked as async, so NB runtime put the Action execution to a RP 
thread out of AWT.

 

> AssertionError when edit JDK
> 
>
> Key: NETBEANS-1419
> URL: https://issues.apache.org/jira/browse/NETBEANS-1419
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - JDK Problems
>Affects Versions: 10.0
> Environment: Windows 10, Incubator NetBeans Linux 880, Java 11.0.1
>Reporter: Michal Rama
>Assignee: Sarvesh Kesharwani
>Priority: Minor
>  Labels: JDK, pull-request-available
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> Hello,
> When I right-click on jdk (any version) and choose edit, it will throw an 
> error.
> *A org.openide.util.RequestProcessor$SlowItem exception has occurred.*
> Clicking Show Details will appear
> {code:java}
> java.lang.AssertionError
>  at org.openide.awt.HtmlRendererImpl.reset(HtmlRendererImpl.java:78)
>  at 
> org.openide.awt.HtmlRendererImpl.getTreeCellRendererComponent(HtmlRendererImpl.java:122)
>  at 
> org.openide.explorer.view.NodeRenderer.getTreeCellRendererComponent(NodeRenderer.java:131)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:3155)
>  at 
> java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:493)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1344)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache.updateNodeSizes(VariableHeightLayoutCache.java:903)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache.invalidateSizes(VariableHeightLayoutCache.java:371)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(BasicTreeUI.java:465)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3816)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
>  at java.desktop/java.awt.Component.firePropertyChange(Component.java:8728)
>  at java.desktop/javax.swing.JTree.setCellRenderer(JTree.java:775)
>  at org.openide.explorer.view.TreeView.initializeTree(TreeView.java:281)
>  at org.openide.explorer.view.TreeView.(TreeView.java:213)
>  at org.openide.explorer.view.TreeView.(TreeView.java:203)
>  at org.openide.explorer.view.BeanTreeView.(BeanTreeView.java:73)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer$PlatformsView.(PlatformsCustomizer.java:527)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer.initComponents(PlatformsCustomizer.java:153)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer.(PlatformsCustomizer.java:94)
>  at 
> org.netbeans.api.java.platform.PlatformsCustomizer.showCustomizer(PlatformsCustomizer.java:41)
>  at 
> org.netbeans.modules.java.api.common.project.ui.PlatformNode$PlatformEditable.edit(PlatformNode.java:292)
>  at 
> org.netbeans.modules.java.api.common.project.ui.EditRootAction.performAction(EditRootAction.java:41)
>  at 
> org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:561)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker$ActionRunnable.actionPerformed(ActionInvoker.java:137)
>  at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:84)
>  at 
> org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:35)
>  at 
> org.openide.util.actions.ActionInvoker$ActionRunnable.doRun(ActionInvoker.java:128)
>  at org.openide.util.actions.ActionInvoker$2.run(ActionInvoker.java:85)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util

[jira] [Updated] (NETBEANS-1419) AssertionError when edit JDK

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi updated NETBEANS-1419:
--
Priority: Minor  (was: Blocker)

> AssertionError when edit JDK
> 
>
> Key: NETBEANS-1419
> URL: https://issues.apache.org/jira/browse/NETBEANS-1419
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - JDK Problems
>Affects Versions: 10.0
> Environment: Windows 10, Incubator NetBeans Linux 880, Java 11.0.1
>Reporter: Michal Rama
>Assignee: Sarvesh Kesharwani
>Priority: Minor
>  Labels: JDK, pull-request-available
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> Hello,
> When I right-click on jdk (any version) and choose edit, it will throw an 
> error.
> *A org.openide.util.RequestProcessor$SlowItem exception has occurred.*
> Clicking Show Details will appear
> {code:java}
> java.lang.AssertionError
>  at org.openide.awt.HtmlRendererImpl.reset(HtmlRendererImpl.java:78)
>  at 
> org.openide.awt.HtmlRendererImpl.getTreeCellRendererComponent(HtmlRendererImpl.java:122)
>  at 
> org.openide.explorer.view.NodeRenderer.getTreeCellRendererComponent(NodeRenderer.java:131)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:3155)
>  at 
> java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:493)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1344)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache.updateNodeSizes(VariableHeightLayoutCache.java:903)
>  at 
> java.desktop/javax.swing.tree.VariableHeightLayoutCache.invalidateSizes(VariableHeightLayoutCache.java:371)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(BasicTreeUI.java:465)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3816)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
>  at 
> java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
>  at java.desktop/java.awt.Component.firePropertyChange(Component.java:8728)
>  at java.desktop/javax.swing.JTree.setCellRenderer(JTree.java:775)
>  at org.openide.explorer.view.TreeView.initializeTree(TreeView.java:281)
>  at org.openide.explorer.view.TreeView.(TreeView.java:213)
>  at org.openide.explorer.view.TreeView.(TreeView.java:203)
>  at org.openide.explorer.view.BeanTreeView.(BeanTreeView.java:73)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer$PlatformsView.(PlatformsCustomizer.java:527)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer.initComponents(PlatformsCustomizer.java:153)
>  at 
> org.netbeans.modules.java.platform.ui.PlatformsCustomizer.(PlatformsCustomizer.java:94)
>  at 
> org.netbeans.api.java.platform.PlatformsCustomizer.showCustomizer(PlatformsCustomizer.java:41)
>  at 
> org.netbeans.modules.java.api.common.project.ui.PlatformNode$PlatformEditable.edit(PlatformNode.java:292)
>  at 
> org.netbeans.modules.java.api.common.project.ui.EditRootAction.performAction(EditRootAction.java:41)
>  at 
> org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:561)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker$ActionRunnable.actionPerformed(ActionInvoker.java:137)
>  at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:84)
>  at 
> org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:35)
>  at 
> org.openide.util.actions.ActionInvoker$ActionRunnable.doRun(ActionInvoker.java:128)
>  at org.openide.util.actions.ActionInvoker$2.run(ActionInvoker.java:85)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at 
> org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:89)
>  at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
>  at 
> org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:558)
>  at 
> java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
>  at 
> java.desktop/javax.swing.AbstractButton

[jira] [Resolved] (NETBEANS-1438) java.lang.StackOverflowError in JavaScript

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi resolved NETBEANS-1438.
---
   Resolution: Fixed
Fix Version/s: 10.0

The requested PR has been merged to master and release100 branches. Marking 
this issue as resolved.

> java.lang.StackOverflowError in JavaScript
> --
>
> Key: NETBEANS-1438
> URL: https://issues.apache.org/jira/browse/NETBEANS-1438
> Project: NetBeans
>  Issue Type: Bug
>  Components: javascript - Editor
>Affects Versions: 10.0
> Environment: Windows 10 AND Debian 9
> Core i5 6600
> 8GB DDR4
>Reporter: Rodrigo Teixeira Andreotti
>Assignee: Reema Taneja
>Priority: Blocker
>  Labels: pull-request-available
> Fix For: 10.0
>
> Attachments: Mail Attachment.gif, Mail Attachment.gif, 
> bibliotecas.zip, debian.log, windows.log
>
>  Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> When I create a PHP project from remote sources, the project is created 
> correctly, the files are downloaded, however when the download is finished 
> netbeans throws an stackoverflow exception.
> This problem occurs both by running Netbeans in Debian 9 and in Windows 10. 
> Attached are the logs generated on each of the systems.
> In both cases after closing the warning window with the exception Netbeans 
> remains fully functional, the files are downloaded and project is created 
> correctly.
>  
> *Edit:* Attached library that causes the error (CKEditor)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[incubator-netbeans] branch release100 updated: [NETBEANS-1438] : stackoverflowerror opening .js files (#994)

2018-11-03 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/release100 by this push:
 new b6e6459  [NETBEANS-1438] : stackoverflowerror opening .js files (#994)
b6e6459 is described below

commit b6e6459ba0a6e685a85c9693cd528646d785081b
Author: Reema Taneja <32299405+rtane...@users.noreply.github.com>
AuthorDate: Fri Nov 2 10:23:08 2018 +0530

[NETBEANS-1438] : stackoverflowerror opening .js files (#994)

* [NETBEANS-1438] : stackoverflowerror opening .js files

* [NETBEANS-1438] : StackOverFlowError opening .js files

* removed redundant code
---
 .../unit/data/testfiles/coloring/issue233298_3.js  |  6 ++
 .../editor/navigation/GoToDeclarationTest.java |  4 +
 .../modules/javascript2/model/api/ModelUtils.java  | 88 ++
 3 files changed, 65 insertions(+), 33 deletions(-)

diff --git 
a/webcommon/javascript2.editor/test/unit/data/testfiles/coloring/issue233298_3.js
 
b/webcommon/javascript2.editor/test/unit/data/testfiles/coloring/issue233298_3.js
new file mode 100644
index 000..89df478
--- /dev/null
+++ 
b/webcommon/javascript2.editor/test/unit/data/testfiles/coloring/issue233298_3.js
@@ -0,0 +1,6 @@
+module.exports = function test() {
+  var test1 = Foo.test2;
+  Foo.test2 = function(err, test3) { return test3; };
+  Foo.test2 = test1;
+};
+
diff --git 
a/webcommon/javascript2.editor/test/unit/src/org/netbeans/modules/javascript2/editor/navigation/GoToDeclarationTest.java
 
b/webcommon/javascript2.editor/test/unit/src/org/netbeans/modules/javascript2/editor/navigation/GoToDeclarationTest.java
index d5964d7..c196fce 100644
--- 
a/webcommon/javascript2.editor/test/unit/src/org/netbeans/modules/javascript2/editor/navigation/GoToDeclarationTest.java
+++ 
b/webcommon/javascript2.editor/test/unit/src/org/netbeans/modules/javascript2/editor/navigation/GoToDeclarationTest.java
@@ -53,6 +53,10 @@ public class GoToDeclarationTest extends JsTestBase {
 public void testIssue233298_4() throws Exception { 
 checkDeclaration("testfiles/coloring/issue233298.js", "a.b^", "a.^b");
 }
+
+public void testIssue233298_5() throws Exception {
+checkDeclaration("testfiles/coloring/issue233298_3.js", "Foo.test2 = 
test^1", "var ^test1 = Foo.test2");
+}
 
 public void testBasicNavigation_01() throws Exception {
 checkDeclaration("testfiles/model/variables01.js", "var address = new 
A^ddress(\"Prague\", \"Czech Republic\", 15000)", "function ^Address (town, 
state, number) {");
diff --git 
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/ModelUtils.java
 
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/ModelUtils.java
index fc58224..1882a87 100644
--- 
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/ModelUtils.java
+++ 
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/ModelUtils.java
@@ -29,6 +29,9 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Set;
 import java.util.StringTokenizer;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import java.util.stream.Collectors;
 import org.netbeans.api.annotations.common.NullAllowed;
 import org.netbeans.api.lexer.Token;
 import org.netbeans.api.lexer.TokenHierarchy;
@@ -82,6 +85,8 @@ public class ModelUtils {
 
 private static String GLOBAL_DIRECTIVE = "global"; //NOI18N
 
+private static final Logger LOG = 
Logger.getLogger(ModelUtils.class.getName());
+
 public static JsObjectImpl getJsObject (ModelBuilder builder, 
List fqName, boolean isLHS) {
 if (fqName == null || fqName.isEmpty()) {
 return null;
@@ -1172,14 +1177,17 @@ public class ModelUtils {
  * @return
  */
 public static TypeUsage createResolvedType(JsObject parent, TypeUsage 
typeHere) {
+int invokeCount = 0;
 String fqn = getFQNFromType(typeHere);
-return resolveTypes(parent, fqn, typeHere.getOffset());
+List alreadyResolved = new ArrayList<>(); 
+return resolveTypes(parent, fqn, typeHere.getOffset(), 
alreadyResolved, invokeCount);
 }
 
 /* @return TypeUsage with generated typename string 
  */
-private static TypeUsage resolveTypes(JsObject parent, String fqn, int 
offset) {
+private static TypeUsage resolveTypes(JsObject parent, String fqn, int 
offset, List alreadyResolved, int invokeCount) {
 
+invokeCount++;
 String name = fqn;
 StringBuilder props = new StringBuilder();
 int indx = fqn.indexOf(".");
@@ -1187,42 +1195,49 @@ public class ModelUtils {
 name = fqn.substring(0, indx);
 props.append(fqn.substring(indx + 1));
 }
-List localResolved = new ArrayList();
+List localResolved = new ArrayL

[jira] [Commented] (NETBEANS-1344) NetBeans looks Ugly on Java 11 on Linux

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi commented on NETBEANS-1344:
---

Telling the truth, I won't put any money on Swing + GTK3 friendship. GTK3 has 
been created in the awe of CSS. It's has a default theme, which is not built 
for customization (yet distros are trying hard) If you check SwingSet2 with 
GTK3, it is broken on several points and even sometimes much slower than on 
GTK2+

I think it is quite possible that we need to give up on GTK LaF and set 
something else as default on Linux.

> NetBeans looks Ugly on Java 11 on Linux
> ---
>
> Key: NETBEANS-1344
> URL: https://issues.apache.org/jira/browse/NETBEANS-1344
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Laszlo Kishalmi
>Priority: Major
>  Labels: Java11, Linux, pull-request-available
> Attachments: Screenshot from 2018-10-04 09-11-28.png, 
> document_tab.png, image-2018-10-15-20-10-48-233.png, 
> image-2018-10-15-20-11-07-846.png, image-2018-10-15-20-16-27-048.png, 
> image-2018-10-15-20-19-36-959.png, image-2018-10-15-20-19-49-797.png, 
> image-2018-10-15-20-21-15-737.png, image-2018-10-15-20-24-00-937.png, 
> java10_code.png, java10_menu_and_toolbar.png, java10_output_window.png, 
> java10_projects.png, java11_code.png, java11_menu_and_toolbar.png, 
> java11_output_window.png, java11_projects.png, java11opt_code.png, 
> java11opt_menu_and_toolbar.png, java11opt_output_window.png, 
> java11opt_projects.png, openjdk-8_code.png, openjdk-8_tree.png, 
> openjdk-8_tree.png, oraclejdk-8_code.png, oraclejdk-8_tree.png, 
> selected_item.png, toolbar_buttons.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Well actually Java 11 the defaults Gnome3 on Linux, resulting poor rendering 
> on the default GTK look and feel. Using other Look and feel (Nimbus, Darcula) 
> does not suffer from this issue.
>  Forcing to use GTK 2.2 fixes the GTK look and feel.
> To force gnome we need to pass: {{-Djdk.gtk.version=2.2}} to the Java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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] [Updated] (NETBEANS-1606) Launch of NetBeans 10 VC2 causes errors to be raised in Command Window

2018-11-03 Thread Paul Szudzik (JIRA)


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

Paul Szudzik updated NETBEANS-1606:
---
Description: 
This shows up in the launch window on Windows 10 when I start up NetBeans

 

C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>WARNING:
 An illegal reflective access operat
 ion has occurred
 WARNING: Illegal reflective access by org.netbeans.core.output2.FileMapStorage 
(jar:[file:/C:/Users/shipmodeller/Downloads/|file:///C:/Users/shipmodeller/Downloads/]
 
incubating-netbeans-10.0-vc2-bin/netbeans/platform/modules/org-netbeans-core-output2.jar!/)
 to method java.nio.DirectByteB
 uffer.cleaner()
 WARNING: Please consider reporting this to the maintainers of 
org.netbeans.core.output2.FileMapStorage
 WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
 WARNING: All illegal access operations will be denied in a future release

 
C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>java
 -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

  was:
This shows up in the launch window on Windows 10 when I start up NetBeans

 

C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>WARNING:
 An illegal reflective access operat
ion has occurred
WARNING: Illegal reflective access by org.netbeans.core.output2.FileMapStorage 
(jar:file:/C:/Users/shipmodeller/Downloads/
incubating-netbeans-10.0-vc2-bin/netbeans/platform/modules/org-netbeans-core-output2.jar!/)
 to method java.nio.DirectByteB
uffer.cleaner()
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.core.output2.FileMapStorage
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release

 


> Launch of NetBeans 10 VC2 causes errors to be raised in Command Window
> --
>
> Key: NETBEANS-1606
> URL: https://issues.apache.org/jira/browse/NETBEANS-1606
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Paul Szudzik
>Priority: Minor
>
> This shows up in the launch window on Windows 10 when I start up NetBeans
>  
> C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>WARNING:
>  An illegal reflective access operat
>  ion has occurred
>  WARNING: Illegal reflective access by 
> org.netbeans.core.output2.FileMapStorage 
> (jar:[file:/C:/Users/shipmodeller/Downloads/|file:///C:/Users/shipmodeller/Downloads/]
>  
> incubating-netbeans-10.0-vc2-bin/netbeans/platform/modules/org-netbeans-core-output2.jar!/)
>  to method java.nio.DirectByteB
>  uffer.cleaner()
>  WARNING: Please consider reporting this to the maintainers of 
> org.netbeans.core.output2.FileMapStorage
>  WARNING: Use --illegal-access=warn to enable warnings of further illegal 
> reflective access operations
>  WARNING: All illegal access operations will be denied in a future release
>  
> C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>java
>  -version
> java version "1.8.0_171"
> Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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] [Updated] (NETBEANS-1606) Launch of NetBeans 10 VC2 causes errors to be raised in Command Window

2018-11-03 Thread Paul Szudzik (JIRA)


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

Paul Szudzik updated NETBEANS-1606:
---
Priority: Minor  (was: Major)

> Launch of NetBeans 10 VC2 causes errors to be raised in Command Window
> --
>
> Key: NETBEANS-1606
> URL: https://issues.apache.org/jira/browse/NETBEANS-1606
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Paul Szudzik
>Priority: Minor
>
> This shows up in the launch window on Windows 10 when I start up NetBeans
>  
> C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>WARNING:
>  An illegal reflective access operat
> ion has occurred
> WARNING: Illegal reflective access by 
> org.netbeans.core.output2.FileMapStorage 
> (jar:file:/C:/Users/shipmodeller/Downloads/
> incubating-netbeans-10.0-vc2-bin/netbeans/platform/modules/org-netbeans-core-output2.jar!/)
>  to method java.nio.DirectByteB
> uffer.cleaner()
> WARNING: Please consider reporting this to the maintainers of 
> org.netbeans.core.output2.FileMapStorage
> WARNING: Use --illegal-access=warn to enable warnings of further illegal 
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1606) Launch of NetBeans 10 VC2 causes errors to be raised in Command Window

2018-11-03 Thread Paul Szudzik (JIRA)
Paul Szudzik created NETBEANS-1606:
--

 Summary: Launch of NetBeans 10 VC2 causes errors to be raised in 
Command Window
 Key: NETBEANS-1606
 URL: https://issues.apache.org/jira/browse/NETBEANS-1606
 Project: NetBeans
  Issue Type: Bug
Reporter: Paul Szudzik


This shows up in the launch window on Windows 10 when I start up NetBeans

 

C:\Users\shipmodeller\Downloads\incubating-netbeans-10.0-vc2-bin\netbeans\bin>WARNING:
 An illegal reflective access operat
ion has occurred
WARNING: Illegal reflective access by org.netbeans.core.output2.FileMapStorage 
(jar:file:/C:/Users/shipmodeller/Downloads/
incubating-netbeans-10.0-vc2-bin/netbeans/platform/modules/org-netbeans-core-output2.jar!/)
 to method java.nio.DirectByteB
uffer.cleaner()
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.core.output2.FileMapStorage
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1423) IllegalArgumentException when searching for possible code writing/completion.

2018-11-03 Thread Michal Rama (JIRA)


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

Michal Rama edited comment on NETBEANS-1423 at 11/3/18 4:12 PM:


Thank you. I'd rather stay with Java 11.

In the next issue, I pointed to AssertionError when selecting JDK editing.

I'm not gonna pull in here. What's important is that the request at github 
(linked to error) is the post about this version of NetBeans.

[https://cwiki.apache.org/confluence/display/NETBEANS/10vc2]

It does not show AssertionError, but it is not THIS error.

What is the version? Why does not it support additional plugins?
 And if this error is on the JDK side, then why, in this version of NetBeans, 
does the problem not occur?


was (Author: michal_cat):
Thank you. I'd rather stay with Java 11.

In the next issue, I pointed to AssertionError when selecting JDK editing.

I'm not gonna pull in here. What's important is that the request at github 
(linked to error) is the post about this version of NetBeans.

https://cwiki.apache.org/confluence/display/NETBEANS/10vc2

It does not show AssertionError, but it is not the error.

What is the version? Why does not it support additional plugins?
And if this error is on the JDK side, then why, in this version of NetBeans, 
does the problem not occur?

> IllegalArgumentException when searching for possible code writing/completion.
> -
>
> Key: NETBEANS-1423
> URL: https://issues.apache.org/jira/browse/NETBEANS-1423
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Completion & Templates
>Affects Versions: 10.0
> Environment: Windows 10, Incubator NetBeans Linux 893, Java 11.0.1
>Reporter: Michal Rama
>Assignee: ARUNAVA SINHA
>Priority: Critical
>  Labels: editor
> Attachments: picture1.png
>
>
> Hello,
> When I start writing a code (such as a class name), it says "please wait" and 
> then a list of possible classes is displayed.
> Or, if I write a dot after the object name, the same is done, and then a list 
> of related methods and fields is displayed.
> Sometimes it happens that "please wait" is displayed for a few seconds and 
> then it will throw an error.
> *A java.lang.RuntimeException exception has occurred.*
>  *However, the system should continue working without further problems.*
> Clicking Show Details will appear.
> {code:java}
> java.lang.IllegalArgumentException: Argument compositeType cannot be null.
>  at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:206)
>  at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:118)
>  at 
> java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:130)
>  at 
> java.management/sun.management.ThreadInfoCompositeData.toCompositeData(ThreadInfoCompositeData.java:72)
> Caused: java.lang.reflect.InvocationTargetException
>  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>  at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:178)
> Caused: java.lang.RuntimeException
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:184)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.access$400(SamplesOutputStream.java:44)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream$Sample.writeToStream(SamplesOutputStream.java:285)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream$Sample.access$300(SamplesOutputStream.java:253)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.close(SamplesOutputStream.java:202)
>  at org.netbeans.modules.sampler.Sampler.stopSampling(Sampler.java:231)
>  at org.netbeans.modules.sampler.Sampler.stopAndWriteTo(Sampler.java:197)
> [catch] at 
> org.netbeans.modules.editor.completion.CompletionImplProfile.stopImpl(CompletionImplProfile.java:84)
>  at 
> org.netbeans.modules.editor.completion.CompletionImplProfile.access$000(CompletionImplProfile.java:29)
>  at 
> org.netbeans.modules.editor.completion.CompletionImplProfile$1.run(CompletionImplProfile.java:59)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.Re

[jira] [Commented] (NETBEANS-1423) IllegalArgumentException when searching for possible code writing/completion.

2018-11-03 Thread Michal Rama (JIRA)


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

Michal Rama commented on NETBEANS-1423:
---

Thank you. I'd rather stay with Java 11.

In the next issue, I pointed to AssertionError when selecting JDK editing.

I'm not gonna pull in here. What's important is that the request at github 
(linked to error) is the post about this version of NetBeans.

https://cwiki.apache.org/confluence/display/NETBEANS/10vc2

It does not show AssertionError, but it is not the error.

What is the version? Why does not it support additional plugins?
And if this error is on the JDK side, then why, in this version of NetBeans, 
does the problem not occur?

> IllegalArgumentException when searching for possible code writing/completion.
> -
>
> Key: NETBEANS-1423
> URL: https://issues.apache.org/jira/browse/NETBEANS-1423
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Completion & Templates
>Affects Versions: 10.0
> Environment: Windows 10, Incubator NetBeans Linux 893, Java 11.0.1
>Reporter: Michal Rama
>Assignee: ARUNAVA SINHA
>Priority: Critical
>  Labels: editor
> Attachments: picture1.png
>
>
> Hello,
> When I start writing a code (such as a class name), it says "please wait" and 
> then a list of possible classes is displayed.
> Or, if I write a dot after the object name, the same is done, and then a list 
> of related methods and fields is displayed.
> Sometimes it happens that "please wait" is displayed for a few seconds and 
> then it will throw an error.
> *A java.lang.RuntimeException exception has occurred.*
>  *However, the system should continue working without further problems.*
> Clicking Show Details will appear.
> {code:java}
> java.lang.IllegalArgumentException: Argument compositeType cannot be null.
>  at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:206)
>  at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:118)
>  at 
> java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:130)
>  at 
> java.management/sun.management.ThreadInfoCompositeData.toCompositeData(ThreadInfoCompositeData.java:72)
> Caused: java.lang.reflect.InvocationTargetException
>  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>  at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:178)
> Caused: java.lang.RuntimeException
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:184)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.access$400(SamplesOutputStream.java:44)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream$Sample.writeToStream(SamplesOutputStream.java:285)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream$Sample.access$300(SamplesOutputStream.java:253)
>  at 
> org.netbeans.modules.sampler.SamplesOutputStream.close(SamplesOutputStream.java:202)
>  at org.netbeans.modules.sampler.Sampler.stopSampling(Sampler.java:231)
>  at org.netbeans.modules.sampler.Sampler.stopAndWriteTo(Sampler.java:197)
> [catch] at 
> org.netbeans.modules.editor.completion.CompletionImplProfile.stopImpl(CompletionImplProfile.java:84)
>  at 
> org.netbeans.modules.editor.completion.CompletionImplProfile.access$000(CompletionImplProfile.java:29)
>  at 
> org.netbeans.modules.editor.completion.CompletionImplProfile$1.run(CompletionImplProfile.java:59)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033){code}
> Sometimes he does it only once, sometimes several times in a row.
> Additionally, each error will add Saving snapshot,
> !picture1.png!
> which can not be canceled. (Only by closing the application)
> This bug does not limit me, but it is quite annoying.
> Please repair
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

For further infor

[jira] [Commented] (NETBEANS-1576) PHP autocompletion partially broken

2018-11-03 Thread Nameless (JIRA)


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

Nameless commented on NETBEANS-1576:


Oh, yes, it helped and I see method1, method2 and method3 after $obj->.

But I have one more related question:

!image-2018-11-03-15-33-28-173.png!

Shouldn't be class for $obj shown too, like for $repo?

 

 

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png, 
> image-2018-11-03-15-33-28-173.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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] [Updated] (NETBEANS-1576) PHP autocompletion partially broken

2018-11-03 Thread Nameless (JIRA)


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

Nameless updated NETBEANS-1576:
---
Attachment: image-2018-11-03-15-33-28-173.png

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png, 
> image-2018-11-03-15-33-28-173.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1576) PHP autocompletion partially broken

2018-11-03 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto commented on NETBEANS-1576:


Please try to write vardoc before $repo. 

{code:java}
/* @var $repo \Repo\RepoClass */
$repo = $magick->getRepo();
{code}


> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[incubator-netbeans-html4j] annotated tag release-1.6 updated (ebd200f -> 76c5776)

2018-11-03 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a change to annotated tag release-1.6
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-html4j.git.


*** WARNING: tag release-1.6 was modified! ***

from ebd200f  (tag)
  to 76c5776  (tag)
 tagging e4bb48070ee9c5171a28cc108bf69b847de6a6ec (commit)
  by Jaroslav Tulach
  on Sat Nov 3 11:42:27 2018 +0100

- Log -
[maven-release-plugin]  copy for tag release-1.6
---

 discard e47a95b  [maven-release-plugin] prepare release release-1.6
 add fb53597  Updating Javadoc in preparation of 1.6 release
 add e4bb480  [maven-release-plugin] prepare release release-1.6

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
annotated tag are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ebd200f)
\
 N -- N -- N   refs/tags/release-1.6 (76c5776)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

No new revisions were added by this update.

Summary of changes:
 .../java/org/netbeans/html/json/spi/Proto.java |  1 -
 src/main/javadoc/overview.html | 62 +-
 2 files changed, 37 insertions(+), 26 deletions(-)


-
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



[incubator-netbeans-html4j] branch master updated (fb53597 -> ebf98f3)

2018-11-03 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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


from fb53597  Updating Javadoc in preparation of 1.6 release
 new e4bb480  [maven-release-plugin] prepare release release-1.6
 new ebf98f3  [maven-release-plugin] prepare for next development iteration

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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



[incubator-netbeans-html4j] 01/02: [maven-release-plugin] prepare release release-1.6

2018-11-03 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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

commit e4bb48070ee9c5171a28cc108bf69b847de6a6ec
Author: Jaroslav Tulach 
AuthorDate: Sat Nov 3 11:42:27 2018 +0100

[maven-release-plugin] prepare release release-1.6
---
 boot-agent-test/pom.xml | 2 +-
 boot-fx/pom.xml | 4 ++--
 boot-script/pom.xml | 4 ++--
 boot/pom.xml| 4 ++--
 context/pom.xml | 4 ++--
 equinox-agentclass-hook/pom.xml | 2 +-
 geo/pom.xml | 4 ++--
 html4j-maven-plugin/pom.xml | 4 ++--
 json-tck/pom.xml| 6 +++---
 json/pom.xml| 4 ++--
 ko-felix-test/pom.xml   | 2 +-
 ko-osgi-test/pom.xml| 2 +-
 ko-ws-tyrus/pom.xml | 4 ++--
 ko4j/pom.xml| 4 ++--
 pom.xml | 4 ++--
 sound/pom.xml   | 4 ++--
 xhr4j/pom.xml   | 4 ++--
 17 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/boot-agent-test/pom.xml b/boot-agent-test/pom.xml
index d070c90..a7fbd07 100644
--- a/boot-agent-test/pom.xml
+++ b/boot-agent-test/pom.xml
@@ -24,7 +24,7 @@
 
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
 
 boot-agent-test
 jar
diff --git a/boot-fx/pom.xml b/boot-fx/pom.xml
index f486bc4..49b8044 100644
--- a/boot-fx/pom.xml
+++ b/boot-fx/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   org.netbeans.html
   net.java.html.boot.fx
-  2.0-SNAPSHOT
+  1.6
   FX WebView Bootstrap
   bundle
   http://maven.apache.org
diff --git a/boot-script/pom.xml b/boot-script/pom.xml
index ab65024..d26a47c 100644
--- a/boot-script/pom.xml
+++ b/boot-script/pom.xml
@@ -24,11 +24,11 @@
 
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
 
 Presenter via javax.script
 net.java.html.boot.script
-2.0-SNAPSHOT
+1.6
 bundle
 
 NONE
diff --git a/boot/pom.xml b/boot/pom.xml
index c86d162..abae40e 100644
--- a/boot/pom.xml
+++ b/boot/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   org.netbeans.html
   net.java.html.boot
-  2.0-SNAPSHOT
+  1.6
   bundle
   Browser Bootstrap
   http://maven.apache.org
diff --git a/context/pom.xml b/context/pom.xml
index 1f1cc29..8a2a96e 100644
--- a/context/pom.xml
+++ b/context/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   org.netbeans.html
   net.java.html
-  2.0-SNAPSHOT
+  1.6
   bundle
   HTML Context
   http://maven.apache.org
diff --git a/equinox-agentclass-hook/pom.xml b/equinox-agentclass-hook/pom.xml
index 9522247..5f32a1b 100644
--- a/equinox-agentclass-hook/pom.xml
+++ b/equinox-agentclass-hook/pom.xml
@@ -24,7 +24,7 @@
 
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
 
 AgentClass Hook for Equinox
 equinox-agentclass-hook
diff --git a/geo/pom.xml b/geo/pom.xml
index 928ece3..d925f30 100644
--- a/geo/pom.xml
+++ b/geo/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   org.netbeans.html
   net.java.html.geo
-  2.0-SNAPSHOT
+  1.6
   bundle
   Geolocation API
   http://maven.apache.org
diff --git a/html4j-maven-plugin/pom.xml b/html4j-maven-plugin/pom.xml
index 491cb09..2322275 100644
--- a/html4j-maven-plugin/pom.xml
+++ b/html4j-maven-plugin/pom.xml
@@ -24,12 +24,12 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   maven-plugin
   org.netbeans.html
   html4j-maven-plugin
-  2.0-SNAPSHOT
+  1.6
   Html for Java Maven Plugin
   http://maven.apache.org
   Maven plugin to post process the classes with @JavaScriptBody 
annotations
diff --git a/json-tck/pom.xml b/json-tck/pom.xml
index 20e5612..f110b6e 100644
--- a/json-tck/pom.xml
+++ b/json-tck/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   org.netbeans.html
   net.java.html.json.tck
-  2.0-SNAPSHOT
+  1.6
   bundle
   HTML for Java TCK
   http://maven.apache.org
@@ -70,7 +70,7 @@
 
   org.netbeans.html
   net.java.html.json
-  2.0-SNAPSHOT
+  1.6
   jar
 
 
diff --git a/json/pom.xml b/json/pom.xml
index 0c84eac..52f16c7 100644
--- a/json/pom.xml
+++ b/json/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
   
   org.netbeans.html
   net.java.html.json
-  2.0-SNAPSHOT
+  1.6
   bundle
   JSON Model in Java
   http://maven.apache.org
diff --git a/ko-felix-test/pom.xml b/ko-felix-test/pom.xml
index 6f2a9cd..7739031 100644
--- a/ko-felix-test/pom.xml
+++ b/ko-felix-test/pom.xml
@@ -24,7 +24,7 @@
 
 org.netbeans.html
 pom
-2.0-SNAPSHOT
+1.6
 
 KO Tests in Felix OSGi Container
 ko-felix-test
d

[incubator-netbeans-html4j] 02/02: [maven-release-plugin] prepare for next development iteration

2018-11-03 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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

commit ebf98f358e1f4f889d8230bfde277417a1995663
Author: Jaroslav Tulach 
AuthorDate: Sat Nov 3 11:42:27 2018 +0100

[maven-release-plugin] prepare for next development iteration
---
 boot-agent-test/pom.xml | 2 +-
 boot-fx/pom.xml | 4 ++--
 boot-script/pom.xml | 4 ++--
 boot/pom.xml| 4 ++--
 context/pom.xml | 4 ++--
 equinox-agentclass-hook/pom.xml | 2 +-
 geo/pom.xml | 4 ++--
 html4j-maven-plugin/pom.xml | 4 ++--
 json-tck/pom.xml| 6 +++---
 json/pom.xml| 4 ++--
 ko-felix-test/pom.xml   | 2 +-
 ko-osgi-test/pom.xml| 2 +-
 ko-ws-tyrus/pom.xml | 4 ++--
 ko4j/pom.xml| 4 ++--
 pom.xml | 4 ++--
 sound/pom.xml   | 4 ++--
 xhr4j/pom.xml   | 4 ++--
 17 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/boot-agent-test/pom.xml b/boot-agent-test/pom.xml
index a7fbd07..d070c90 100644
--- a/boot-agent-test/pom.xml
+++ b/boot-agent-test/pom.xml
@@ -24,7 +24,7 @@
 
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
 
 boot-agent-test
 jar
diff --git a/boot-fx/pom.xml b/boot-fx/pom.xml
index 49b8044..f486bc4 100644
--- a/boot-fx/pom.xml
+++ b/boot-fx/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   org.netbeans.html
   net.java.html.boot.fx
-  1.6
+  2.0-SNAPSHOT
   FX WebView Bootstrap
   bundle
   http://maven.apache.org
diff --git a/boot-script/pom.xml b/boot-script/pom.xml
index d26a47c..ab65024 100644
--- a/boot-script/pom.xml
+++ b/boot-script/pom.xml
@@ -24,11 +24,11 @@
 
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
 
 Presenter via javax.script
 net.java.html.boot.script
-1.6
+2.0-SNAPSHOT
 bundle
 
 NONE
diff --git a/boot/pom.xml b/boot/pom.xml
index abae40e..c86d162 100644
--- a/boot/pom.xml
+++ b/boot/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   org.netbeans.html
   net.java.html.boot
-  1.6
+  2.0-SNAPSHOT
   bundle
   Browser Bootstrap
   http://maven.apache.org
diff --git a/context/pom.xml b/context/pom.xml
index 8a2a96e..1f1cc29 100644
--- a/context/pom.xml
+++ b/context/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   org.netbeans.html
   net.java.html
-  1.6
+  2.0-SNAPSHOT
   bundle
   HTML Context
   http://maven.apache.org
diff --git a/equinox-agentclass-hook/pom.xml b/equinox-agentclass-hook/pom.xml
index 5f32a1b..9522247 100644
--- a/equinox-agentclass-hook/pom.xml
+++ b/equinox-agentclass-hook/pom.xml
@@ -24,7 +24,7 @@
 
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
 
 AgentClass Hook for Equinox
 equinox-agentclass-hook
diff --git a/geo/pom.xml b/geo/pom.xml
index d925f30..928ece3 100644
--- a/geo/pom.xml
+++ b/geo/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   org.netbeans.html
   net.java.html.geo
-  1.6
+  2.0-SNAPSHOT
   bundle
   Geolocation API
   http://maven.apache.org
diff --git a/html4j-maven-plugin/pom.xml b/html4j-maven-plugin/pom.xml
index 2322275..491cb09 100644
--- a/html4j-maven-plugin/pom.xml
+++ b/html4j-maven-plugin/pom.xml
@@ -24,12 +24,12 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   maven-plugin
   org.netbeans.html
   html4j-maven-plugin
-  1.6
+  2.0-SNAPSHOT
   Html for Java Maven Plugin
   http://maven.apache.org
   Maven plugin to post process the classes with @JavaScriptBody 
annotations
diff --git a/json-tck/pom.xml b/json-tck/pom.xml
index f110b6e..20e5612 100644
--- a/json-tck/pom.xml
+++ b/json-tck/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   org.netbeans.html
   net.java.html.json.tck
-  1.6
+  2.0-SNAPSHOT
   bundle
   HTML for Java TCK
   http://maven.apache.org
@@ -70,7 +70,7 @@
 
   org.netbeans.html
   net.java.html.json
-  1.6
+  2.0-SNAPSHOT
   jar
 
 
diff --git a/json/pom.xml b/json/pom.xml
index 52f16c7..0c84eac 100644
--- a/json/pom.xml
+++ b/json/pom.xml
@@ -24,11 +24,11 @@
   
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
   
   org.netbeans.html
   net.java.html.json
-  1.6
+  2.0-SNAPSHOT
   bundle
   JSON Model in Java
   http://maven.apache.org
diff --git a/ko-felix-test/pom.xml b/ko-felix-test/pom.xml
index 7739031..6f2a9cd 100644
--- a/ko-felix-test/pom.xml
+++ b/ko-felix-test/pom.xml
@@ -24,7 +24,7 @@
 
 org.netbeans.html
 pom
-1.6
+2.0-SNAPSHOT
 
 KO Tests in Felix OSGi Container
 ko-f

[incubator-netbeans-html4j] branch master updated: Updating Javadoc in preparation of 1.6 release

2018-11-03 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new fb53597  Updating Javadoc in preparation of 1.6 release
fb53597 is described below

commit fb5359757a122c1ea1e626a939e4b6933025b410
Author: Jaroslav Tulach 
AuthorDate: Sat Nov 3 11:28:28 2018 +0100

Updating Javadoc in preparation of 1.6 release
---
 .../java/org/netbeans/html/json/spi/Proto.java |  1 -
 src/main/javadoc/overview.html | 62 +-
 2 files changed, 37 insertions(+), 26 deletions(-)

diff --git a/json/src/main/java/org/netbeans/html/json/spi/Proto.java 
b/json/src/main/java/org/netbeans/html/json/spi/Proto.java
index dfa1ab7..a7071bb 100644
--- a/json/src/main/java/org/netbeans/html/json/spi/Proto.java
+++ b/json/src/main/java/org/netbeans/html/json/spi/Proto.java
@@ -18,7 +18,6 @@
  */
 package org.netbeans.html.json.spi;
 
-import java.util.Arrays;
 import java.util.Collection;
 import java.util.List;
 import net.java.html.BrwsrCtx;
diff --git a/src/main/javadoc/overview.html b/src/main/javadoc/overview.html
index a59ea0f..21926b2 100644
--- a/src/main/javadoc/overview.html
+++ b/src/main/javadoc/overview.html
@@ -162,9 +162,12 @@ $ mvn -f client/pom.xml process-classes exec:exec
 vm.loadClass('org.apidesign.demo.minesweeper.MainBrwsr');
 
 
-New version will include
+New in version 1.6
 
 
+Compiles on JDK11 while using
+https://openjfx.io";>Open JavaFX 11
+when necessary.
 {@link net.java.html.json.ComputedProperty Computed properties} can
 depend on other computed properties -
 https://github.com/apache/incubator-netbeans-html4j/pull/3";>PR #3.
@@ -217,6 +220,38 @@ $ mvn -f client/pom.xml process-classes exec:exec
 usage of {@link java.net.URI}, etc.
 
 
+What's new in older versions?
+
+
+Click the
+link
+to view even more
+historic changes...
+
+
+
+
+
+(function() {
+var visible;
+function showHistoric(show) {
+var e = document.getElementById("historic.changes");
+if (show === undefined) {
+show = !visible;
+}
+if (show) {
+e.style.display="block";
+} else {
+e.style.display="none";
+}
+visible = show;
+return false;
+}
+showHistoric(false);
+this.showHistoric = showHistoric;
+})()
+
+
 New features in version 1.4
 
 Both values null and undefined are
@@ -283,30 +318,6 @@ $ mvn -f client/pom.xml process-classes exec:exec
 of CORS by handling the {@link net.java.html.json.OnReceive}
 connections in Java.
 
-What's new in older versions?
-
-
-Click the
-link
-to view even more
-historic changes...
-
-
-
-
-
-function showHistoric(show) {
-var e = document.getElementById("historic.changes");
-if (show) {
-e.style.display="block";
-} else {
-e.style.display="none";
-}
-return false;
-}
-showHistoric(false);
-
-
 What's Been Improved in Version 1.2.3?
 
 
@@ -490,6 +501,7 @@ $ mvn -f client/pom.xml process-classes exec:exec
 online:
 
 Current https://dukescript.com/javadoc/html+java/dev/";>development version
+Version https://dukescript.com/javadoc/html+java/1.6/";>1.6
 Version https://dukescript.com/javadoc/html+java/1.5.1/";>1.5.1
 Version http://bits.netbeans.org/html+java/1.5";>1.5
 Version http://bits.netbeans.org/html+java/1.4";>1.4


-
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-1561) Reproducible NullPointerException at Refactor-Move in Java Modular Project

2018-11-03 Thread Reema Taneja (JIRA)


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

Reema Taneja commented on NETBEANS-1561:


Can reproduce this:

java.lang.NullPointerException
at 
org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:143)
at 
org.netbeans.api.java.source.ElementUtilities.enclosingTypeElement(ElementUtilities.java:132)
at 
org.netbeans.modules.refactoring.java.plugins.MoveTransformer.visitIdentifier(MoveTransformer.java:200)
at 
org.netbeans.modules.refactoring.java.plugins.MoveTransformer.visitIdentifier(MoveTransformer.java:47)
at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2257)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:192)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:76)
at com.sun.source.util.TreeScanner.visitRequires(TreeScanner.java:880)
at com.sun.tools.javac.tree.JCTree$JCRequires.accept(JCTree.java:2858)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:192)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:76)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
at com.sun.source.util.TreeScanner.visitModule(TreeScanner.java:853)
at com.sun.tools.javac.tree.JCTree$JCModuleDecl.accept(JCTree.java:2707)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:192)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:76)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
at 
com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
at 
org.netbeans.modules.refactoring.java.plugins.MoveTransformer.visitCompilationUnit(MoveTransformer.java:320)
at 
org.netbeans.modules.refactoring.java.plugins.MoveTransformer.visitCompilationUnit(MoveTransformer.java:47)
at 
com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:593)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at 
org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:192)
at 
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:443)
at 
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:408)
at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672)
at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662)
at 
org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
at 
org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:166)
at 
org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:138)
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:83)
at 
org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
at 
org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
at 
org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683)
at 
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:317)
at 
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.pro

[jira] [Comment Edited] (NETBEANS-1576) PHP autocompletion partially broken

2018-11-03 Thread Nameless (JIRA)


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

Nameless edited comment on NETBEANS-1576 at 11/3/18 8:42 AM:
-

[~junichi11] unfortunatelly nothing has changed:

!image-2018-11-03-11-36-48-134.png!

This is the same project that is attached to this task.


was (Author: nameless):
[~junichi11] unfortunatelly, nothing has changed:

!image-2018-11-03-11-36-48-134.png!

This is the same project that is attached to this task.

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1576) PHP autocompletion partially broken

2018-11-03 Thread Nameless (JIRA)


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

Nameless commented on NETBEANS-1576:


[~junichi11] unfortunatelly, nothing has changed:

!image-2018-11-03-11-36-48-134.png!

This is the same project that is attached to this task.

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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] [Updated] (NETBEANS-1576) PHP autocompletion partially broken

2018-11-03 Thread Nameless (JIRA)


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

Nameless updated NETBEANS-1576:
---
Attachment: image-2018-11-03-11-36-48-134.png

> PHP autocompletion partially broken
> ---
>
> Key: NETBEANS-1576
> URL: https://issues.apache.org/jira/browse/NETBEANS-1576
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>Reporter: Nameless
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: autocompletion, php, pull-request-available
> Fix For: Next
>
> Attachments: PhpAutocompletionProblems.zip, 
> autocompletion_problem_screencast.mp4, image-2018-11-03-11-36-48-134.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with 
> Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are 
> specified.
> Textual description (in comments):
> {code:php}
>  namespace Repo;
> 
> use Entity\EntityClass;
> 
> /**
>  * @method EntityClass[] getAll() 
>  */
> class RepoClass
> {
> /**
>  * 
>  * @param array $params
>  * @return EntityClass
>  */
> public function findOrCreate(array $params): EntityClass
> {
> return new EntityClass();
> }
> }
> {code}
> {code:php}
>  
> namespace App;
> 
> class App
> {
> public function exec()
> {
> $repo = $magick->getRepo();
> /* @var $repo \Repo\RepoClass */
> $obj = $repo->findOrCreate($params);
> // for now all goes fine, ctrl+space after `->` shows methods 
> // `getAll()` and  `findOrCreate(array $params)`
> $obj-> // but no autocompletion here :(
> }
> 
> }
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1605) Remove the custom max heapsize calculation and cap at 1 Gb.

2018-11-03 Thread Laszlo Kishalmi (JIRA)
Laszlo Kishalmi created NETBEANS-1605:
-

 Summary: Remove the custom max heapsize calculation and cap at 1 
Gb.
 Key: NETBEANS-1605
 URL: https://issues.apache.org/jira/browse/NETBEANS-1605
 Project: NetBeans
  Issue Type: Improvement
  Components: platform - Launchers&CLI
Reporter: Laszlo Kishalmi


Currently NetBeans sets it max memory to the 1/5-th of physical memory or 1 Gb 
whichever is lower. This is unnecessary as the recent JVM heap is max 1/4 th of 
the system memory capping at 4Gb.

I think the Java default would serve for the workloads nowadays.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-939) MEMORY LEAK!!

2018-11-03 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi commented on NETBEANS-939:
--

Please provide a good plan how to reproduce this, and please consider testing 
on NetBeans 9.0 or NetBeans 10.0-vc2

> MEMORY LEAK!!
> -
>
> Key: NETBEANS-939
> URL: https://issues.apache.org/jira/browse/NETBEANS-939
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Performance
>Affects Versions: 8.2
> Environment: See above
>Reporter: Andrew Hellyer
>Priority: Major
>
> *Product Version:* NetBeans IDE 8.2 (Build 201705191307)
> *Updates:* NetBeans IDE is updated to version [NetBeans 8.2 Patch 
> 2|http://wiki.netbeans.org/NetBeans8.2PatchesInfo]
> *Java:* 1.8.0_172; Java HotSpot(TM) 64-Bit Server VM 25.172-b11
> *Runtime:* Java(TM) SE Runtime Environment 1.8.0_172-b11
> *System:* Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
>  
>  
> *I have multiple projects open with multiple files from each open.*
> *Simply moving from file to file or moving the mouse increases memory usage.*
> *This just gets progressively worse as time goes on, until NB is so slow it 
> has to be restarted or the computer crashes/freezes due to memory issues.* 
> ***This has been happening since 8.2 came out. How come nobody has done 
> anything about it? There are multiple reports on the previous bug reporting 
> system!*



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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] [Updated] (NETBEANS-1344) NetBeans looks Ugly on Java 11 on Linux

2018-11-03 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot updated NETBEANS-1344:
-
Labels: Java11 Linux pull-request-available  (was: Java11 Linux)

> NetBeans looks Ugly on Java 11 on Linux
> ---
>
> Key: NETBEANS-1344
> URL: https://issues.apache.org/jira/browse/NETBEANS-1344
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Laszlo Kishalmi
>Priority: Major
>  Labels: Java11, Linux, pull-request-available
> Attachments: Screenshot from 2018-10-04 09-11-28.png, 
> document_tab.png, image-2018-10-15-20-10-48-233.png, 
> image-2018-10-15-20-11-07-846.png, image-2018-10-15-20-16-27-048.png, 
> image-2018-10-15-20-19-36-959.png, image-2018-10-15-20-19-49-797.png, 
> image-2018-10-15-20-21-15-737.png, image-2018-10-15-20-24-00-937.png, 
> java10_code.png, java10_menu_and_toolbar.png, java10_output_window.png, 
> java10_projects.png, java11_code.png, java11_menu_and_toolbar.png, 
> java11_output_window.png, java11_projects.png, java11opt_code.png, 
> java11opt_menu_and_toolbar.png, java11opt_output_window.png, 
> java11opt_projects.png, openjdk-8_code.png, openjdk-8_tree.png, 
> openjdk-8_tree.png, oraclejdk-8_code.png, oraclejdk-8_tree.png, 
> selected_item.png, toolbar_buttons.png
>
>
> Well actually Java 11 the defaults Gnome3 on Linux, resulting poor rendering 
> on the default GTK look and feel. Using other Look and feel (Nimbus, Darcula) 
> does not suffer from this issue.
>  Forcing to use GTK 2.2 fixes the GTK look and feel.
> To force gnome we need to pass: {{-Djdk.gtk.version=2.2}} to the Java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1604) Python3 plugin and removing highlighting

2018-11-03 Thread Tsepo (JIRA)
Tsepo created NETBEANS-1604:
---

 Summary: Python3 plugin and removing highlighting
 Key: NETBEANS-1604
 URL: https://issues.apache.org/jira/browse/NETBEANS-1604
 Project: NetBeans
  Issue Type: Wish
Affects Versions: 9.0, 10.0
Reporter: Tsepo
 Attachments: Screenshot from 2018-11-03 08-59-49.png

Hi Guys,

 
 # Can you please help, can you please advise, if there's a way to remove 
highlighting on Python, can remove it for Java,C/C++ and php, not sure how it 
can be done on python.
 # Can we get python 3 plugin, current one only supports 2.7.

Hope to hear from you, thank you for your hard work and great product.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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