[jira] [Resolved] (NETBEANS-49) Please add smooth scrolling

2018-10-03 Thread Eirik Bakke (JIRA)


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

Eirik Bakke resolved NETBEANS-49.
-
   Resolution: Fixed
Fix Version/s: Next

Closing as corresponding pull request was merged.

> Please add smooth scrolling 
> 
>
> Key: NETBEANS-49
> URL: https://issues.apache.org/jira/browse/NETBEANS-49
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Window System
>Reporter: Christian Lenz
>Priority: Major
>  Labels: pull-request-available
> Fix For: Next
>
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> Inside the editor, when I scroll with my touchpad to the bottom, it jumps 9 
> lines to the next, this is a lot. I don't like such gappings I would like to 
> have a smooth stepless scrolling, like in chrome or other windows native 
> apps. Please add this for horizontal and vertical scrolling, it will be much 
> better. Not only in editors, it should be available everywhere, where we have 
> scrollbars.
> Regards
> Chris



--
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 master updated: [NETBEANS-49] Avoid large scroll pane jumps on Windows (#881)

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

ebakke 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 6351f39  [NETBEANS-49] Avoid large scroll pane jumps on Windows (#881)
6351f39 is described below

commit 6351f39a0a78e5ff630fd603b6ebe92dbeba3f9b
Author: Eirik Bakke 
AuthorDate: Wed Oct 3 19:08:02 2018 -0400

[NETBEANS-49] Avoid large scroll pane jumps on Windows (#881)

[NETBEANS-49] Handle precise scroll events in all scroll panes on Windows.

This commit adapts a patch originally written by Pavel Fatin, for IntelliJ, 
to NetBeans. See
http://mail.openjdk.java.net/pipermail/awt-dev/2017-January/012507.html .

The main utility of this patch is to avoid scroll panes scrolling a too 
large
number of lines when using a touch pad or mouse wheel on Windows. See the
bug report at NETBEANS-49.

(Adjustments after pull request comments: Adjust license and notice per 
pull request
comments. Use 4-space indentation.)
---
 platform/o.n.swing.plaf/licenseinfo.xml|  11 ++
 .../src/org/netbeans/swing/plaf/Startup.java   |   9 ++
 .../swing/plaf/util/SmoothScrollPaneUI.java| 132 +
 3 files changed, 152 insertions(+)

diff --git a/platform/o.n.swing.plaf/licenseinfo.xml 
b/platform/o.n.swing.plaf/licenseinfo.xml
index 2461eb5..4542462 100644
--- a/platform/o.n.swing.plaf/licenseinfo.xml
+++ b/platform/o.n.swing.plaf/licenseinfo.xml
@@ -44,4 +44,15 @@
 
 
 
+
+src/org/netbeans/swing/plaf/util/SmoothScrollPaneUI.java
+
+
+
+This software includes code from IntelliJ IDEA Community Edition
+Copyright (C) JetBrains s.r.o.
+https://www.jetbrains.com/idea/
+
+
 
diff --git a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java 
b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java
index bb64eba..5daf055 100644
--- a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java
+++ b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java
@@ -255,6 +255,15 @@ public final class Startup {
 }
 curCustoms.disposeValues();
 }
+installSmoothScrollPane();
+}
+
+private void installSmoothScrollPane() {
+  UIDefaults defaults = UIManager.getDefaults();
+  final String SCROLL_PANE_UI_CLASS_ID = "ScrollPaneUI";
+  Object existingValue = defaults.get(SCROLL_PANE_UI_CLASS_ID);
+  if ("javax.swing.plaf.basic.BasicScrollPaneUI".equals(existingValue))
+defaults.put(SCROLL_PANE_UI_CLASS_ID, 
"org.netbeans.swing.plaf.util.SmoothScrollPaneUI");
 }
 
 private void loadAllLazyValues (LFCustoms customs) {
diff --git 
a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/util/SmoothScrollPaneUI.java
 
b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/util/SmoothScrollPaneUI.java
new file mode 100644
index 000..333c8ed
--- /dev/null
+++ 
b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/util/SmoothScrollPaneUI.java
@@ -0,0 +1,132 @@
+/*
+ * Copyright 2000-2016 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* This file is based in part on the commit
+ * 
https://github.com/JetBrains/intellij-community/commit/34b9dfd0585937c3731e06a89554d1dc86f7f235
+ * from 2016-12-14 in the IntelliJ IDEA Community Edition repository, as 
referenced by Pavel Fatin
+ * on the AWT Dev mailing list on 2017-01-04
+ * ( http://mail.openjdk.java.net/pipermail/awt-dev/2017-January/012507.html 
), and retrieved on
+ * 2018-09-17. The source files in question are as follows:
+ *   com.intellij.ui.components.SmoothScrollPane (author Pavel Fatin)
+ *   com.intellij.ui.components.JBScrollPane
+ *
+ * The original code has been modified by Eirik Bakke (eba...@ultorg.com) for 
standalone use outside
+ * the IntelliJ IDE. In particular, we use here a custom ScrollPaneUI 
implementation instead of the
+ * original approach of accessing the mouseScrollListener by reflection.
+ *
+ * The complete license header for the original files (identical for both 
files) is included above.
+ * The NOTICE file is pasted in licenseinfo.xml.
+ */
+package org.netbeans.swing.plaf.util;
+
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.event.MouseWheelEvent;
+import java.awt.event.MouseWheelListener;

[jira] [Commented] (NETBEANS-1338) Cannot run program "/tmp/1867006118/pty": error 13, Permission denied

2018-10-03 Thread John Stevenson (JIRA)


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

John Stevenson commented on NETBEANS-1338:
--

I noticed an error on Netbeans startup that I had not noticed before.  It 
offered to use -J -Dcnd.tmpbase in the netbeans.conf file to reset the tmp 
directory to a location with permissions.  I moved the location but chmod still 
has to be set to 777 for this new location so all users and groups can access 
the directory.  Test by logging off root and logging in as a standard user.  
The original tmp directory cannot be set to 777 due to security so that must be 
the problem.

> Cannot run program "/tmp/1867006118/pty": error 13, Permission denied
> -
>
> Key: NETBEANS-1338
> URL: https://issues.apache.org/jira/browse/NETBEANS-1338
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2
>Reporter: John Stevenson
>Priority: Critical
>
> Recently loaded Netbeans with C++ on Linux Redhat 7.4.  I created a Hello 
> world application and attempted to build the app with no changes to the 
> generated code.  The following appears in the build window:
> cd '/root/NetBeansProjects/HelloWorld'
> /usr/bin/gmake -f Makefile CONF=Debug
> Cannot run program "/tmp/1867006118/pty": error=13, Permission denied.
>  
> Currently, I am running this as root.  I have tried chmod on the file to no 
> avail.  Have removed sticky bit on tmp directory.  Have tested on several 
> machines and all behave similarly.  Machines have been hardened for security. 
>  The /tmp directory is mounted to /var/tmp in the /etc/fstab file.    
>  



--
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-882) Exception running under JDK 11

2018-10-03 Thread Gilberto C Andrade (JIRA)


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

Gilberto C Andrade edited comment on NETBEANS-882 at 10/3/18 2:00 PM:
--

This is what I usually do.
 I have openjdk:
{noformat}
/usr/lib64/jvm/java-1.8.0-openjdk/(DEFAULT ONE)
/usr/lib64/jvm/java-11-openjdk
{noformat}
and oracle one:
{noformat}
/opt/jvm/jdk-10.0.2/
/opt/jvm/jdk1.8.0_181/
{noformat}
Each Monday I get the last build (ex incubating-netbeans-java-854-linux) and 
extract it side by side the week before:
{noformat}
~ $ ll -d bin/incubating-netbeans-*
 bin/incubating-netbeans-10.0-vc1-bin
 bin/incubating-netbeans-java-615-linux
 bin/incubating-netbeans-java-854-linux
{noformat}
Make a copy of the .netbeans folder:
{noformat}
cp -a .netbeans .netbeans_backup
{noformat}
And test/start the build with each jdk installed using my actual(Darcula, 
MarkDown, FreeMaker, JavaEE, etc) .netbeans folder.
{noformat}
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/opt/jvm/jdk-10.0.2
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/usr/lib64/jvm/java-11-openjdk
{noformat}
I open our enterprise web application (javaEE 7 web profile one), take note of 
any problem. If the build has no regression I will make it my default IDE.
 Do the same test/start, but now with a clean environment, removing the 
.netbeans folder:
{noformat}
rm -rf .netbeans

bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/opt/jvm/jdk-10.0.2
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/usr/lib64/jvm/java-11-openjdk
{noformat}
This time as the IDE has no JavaEE plugins, (if it has no problem) I begin to 
install them: Darcula, MarkDown, FreeMaker, JavaEE, etc.
 Take note and report any issue.


was (Author: gilbertoca):
This is what I usually do.
 I have openjdk:
{noformat}
/usr/lib64/jvm/java-1.8.0-openjdk/(DEFAULT ONE)
/usr/lib64/jvm/java-11-openjdk
{noformat}
and oracle one:
{noformat}
/opt/jvm/jdk-10.0.2/
/opt/jvm/jdk1.8.0_181/
{noformat}
Each Monday I get the last build (ex incubating-netbeans-java-854-linux) and 
extract it side by side the week before:
{noformat}
~ $ ll -d bin/incubating-netbeans-*
 bin/incubating-netbeans-10.0-vc1-bin
 bin/incubating-netbeans-java-615-linux
 bin/incubating-netbeans-java-854-linux
{noformat}
Make a copy of the .netbeans folder:
{noformat}
cp -a .netbeans .netbeans_backup
{noformat}
And test/start the build with it using each jdk installed using my 
actual(Darcula, MarkDown, FreeMaker, JavaEE, etc) .netbeans folder.
{noformat}
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/opt/jvm/jdk-10.0.2
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/usr/lib64/jvm/java-11-openjdk
{noformat}
I open our enterprise web application (javaEE 7 web profile one), take note of 
any problem. If the build has no regression I will make it my default IDE.
 Do the same test/start, but now with a clean environment, removing the 
.netbeans folder:
{noformat}
rm -rf .netbeans

bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/opt/jvm/jdk-10.0.2
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/usr/lib64/jvm/java-11-openjdk
{noformat}
This time as the IDE has no JavaEE plugins, (if it has no problem) I begin to 
install them: Darcula, MarkDown, FreeMaker, JavaEE, etc.
 Take note and report any issue.

> Exception running under JDK 11
> --
>
> Key: NETBEANS-882
> URL: https://issues.apache.org/jira/browse/NETBEANS-882
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 10.0
>Reporter: Sven Reimers
>Priority: Blocker
> Fix For: 10.0
>
> Attachments: Screenshot_20180918_104806.png, 
> Screenshot_20180918_104851.png, Screenshot_20181002_095023.png, 
> exception_on_openjdk11.txt, image-2018-05-30-11-34-53-526.png, 
> image-2018-05-30-12-20-16-090.png, image-2018-09-18-11-15-45-588.png
>
>
> Installed some modules and got this - no code no nothing done..
> {code:java}
> javax.management.openmbean.OpenDataException: Argument value of wrong type 
> for item lineNumber: value java.lang.ref.Reference, type 
> javax.management.openmbean.SimpleType(name=java.lang.Integer)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:235)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:118)
> at 
> 

[jira] [Commented] (NETBEANS-882) Exception running under JDK 11

2018-10-03 Thread Gilberto C Andrade (JIRA)


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

Gilberto C Andrade commented on NETBEANS-882:
-

This is what I usually do.
 I have openjdk:
{noformat}
/usr/lib64/jvm/java-1.8.0-openjdk/(DEFAULT ONE)
/usr/lib64/jvm/java-11-openjdk
{noformat}
and oracle one:
{noformat}
/opt/jvm/jdk-10.0.2/
/opt/jvm/jdk1.8.0_181/
{noformat}
Each Monday I get the last build (ex incubating-netbeans-java-854-linux) and 
extract it side by side the week before:
{noformat}
~ $ ll -d bin/incubating-netbeans-*
 bin/incubating-netbeans-10.0-vc1-bin
 bin/incubating-netbeans-java-615-linux
 bin/incubating-netbeans-java-854-linux
{noformat}
Make a copy of the .netbeans folder:
{noformat}
cp -a .netbeans .netbeans_backup
{noformat}
And test/start the build with it using each jdk installed using my 
actual(Darcula, MarkDown, FreeMaker, JavaEE, etc) .netbeans folder.
{noformat}
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/opt/jvm/jdk-10.0.2
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/usr/lib64/jvm/java-11-openjdk
{noformat}
I open our enterprise web application (javaEE 7 web profile one), take note of 
any problem. If the build has no regression I will make it my default IDE.
 Do the same test/start, but now with a clean environment, removing the 
.netbeans folder:
{noformat}
rm -rf .netbeans

bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/opt/jvm/jdk-10.0.2
bin/incubating-netbeans-10.0-vc1-bin/bin/netbeans --locale en --jdkhome 
/usr/lib64/jvm/java-11-openjdk
{noformat}
This time as the IDE has no JavaEE plugins, (if it has no problem) I begin to 
install them: Darcula, MarkDown, FreeMaker, JavaEE, etc.
 Take note and report any issue.

> Exception running under JDK 11
> --
>
> Key: NETBEANS-882
> URL: https://issues.apache.org/jira/browse/NETBEANS-882
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 10.0
>Reporter: Sven Reimers
>Priority: Blocker
> Fix For: 10.0
>
> Attachments: Screenshot_20180918_104806.png, 
> Screenshot_20180918_104851.png, Screenshot_20181002_095023.png, 
> exception_on_openjdk11.txt, image-2018-05-30-11-34-53-526.png, 
> image-2018-05-30-12-20-16-090.png, image-2018-09-18-11-15-45-588.png
>
>
> Installed some modules and got this - no code no nothing done..
> {code:java}
> javax.management.openmbean.OpenDataException: Argument value of wrong type 
> for item lineNumber: value java.lang.ref.Reference, type 
> javax.management.openmbean.SimpleType(name=java.lang.Integer)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:235)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:118)
> at 
> java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:91)
> Caused: java.lang.AssertionError
> at 
> java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:96)
> at 
> java.management/sun.management.StackTraceElementCompositeData.toCompositeData(StackTraceElementCompositeData.java:74)
> at 
> java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:82)
> 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:569)
> 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 
> 

[incubator-netbeans] branch master updated: [NETBEANS-1147, NETBEANS-1298] Autoupdated fragment restarts only if its host is already ON

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

sdedic 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 b7a074d  [NETBEANS-1147,NETBEANS-1298] Autoupdated fragment restarts 
only if its host is already ON
b7a074d is described below

commit b7a074d205ad45d603554fe05bb0c89aec2a3dd0
Author: Svata Dedic 
AuthorDate: Thu Sep 20 09:41:59 2018 +0200

[NETBEANS-1147,NETBEANS-1298] Autoupdated fragment restarts only if its 
host is already ON
---
 .../autoupdate/services/InstallSupportImpl.java|  47 +++
 .../services/OperationContainerImpl.java   |   2 +
 .../modules/autoupdate/services/Utilities.java |  36 +++-
 .../updateprovider/AutoupdateCatalogParser.java|  17 ++--
 .../updateprovider/AutoupdateInfoParser.java   |   4 +
 .../updateprovider/InstalledModuleItem.java|   5 +-
 .../autoupdate/updateprovider/ModuleItem.java  |  10 +++
 .../autoupdate/updateprovider/UpdateItemImpl.java  |   6 +-
 .../netbeans/api/autoupdate/DefaultTestCase.java   |   6 +-
 .../autoupdate/data/org-yourorghere-fragment.nbm   | Bin 0 -> 3303 bytes
 .../data/{updates.xml => updates-bad-fragment.xml} |   4 +
 .../org/netbeans/api/autoupdate/data/updates.xml   |   4 +
 .../services/FragmentDisabledNoRestartTest.java|  57 +
 .../services/FragmentIEnabledRestartTest.java  |  49 +++
 .../services/FragmentInstallHostModuleTest.java|  53 
 .../FragmentMissingInCatalogRestartTest.java   |  55 
 .../services/FragmentModuleTestBase.java   |  93 +
 17 files changed, 434 insertions(+), 14 deletions(-)

diff --git 
a/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/InstallSupportImpl.java
 
b/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/InstallSupportImpl.java
index 656f929..e70e04c 100644
--- 
a/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/InstallSupportImpl.java
+++ 
b/platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/InstallSupportImpl.java
@@ -34,6 +34,7 @@ import java.security.cert.Certificate;
 import java.util.*;
 import java.util.concurrent.*;
 import java.util.concurrent.atomic.AtomicLong;
+import java.util.jar.Attributes;
 import java.util.jar.JarEntry;
 import java.util.jar.JarFile;
 import java.util.logging.Level;
@@ -46,8 +47,12 @@ import org.netbeans.api.autoupdate.InstallSupport.Validator;
 import org.netbeans.api.autoupdate.OperationContainer.OperationInfo;
 import org.netbeans.api.autoupdate.OperationSupport.Restarter;
 import org.netbeans.api.progress.ProgressHandle;
+import org.netbeans.modules.autoupdate.updateprovider.AutoupdateInfoParser;
+import org.netbeans.modules.autoupdate.updateprovider.ModuleItem;
 import org.netbeans.modules.autoupdate.updateprovider.NetworkAccess;
 import org.netbeans.modules.autoupdate.updateprovider.NetworkAccess.Task;
+import org.netbeans.modules.autoupdate.updateprovider.UpdateItemImpl;
+import org.netbeans.spi.autoupdate.UpdateItem;
 import org.netbeans.updater.ModuleDeactivator;
 import org.netbeans.updater.ModuleUpdater;
 import org.netbeans.updater.UpdateTracking;
@@ -59,6 +64,7 @@ import org.openide.filesystems.FileUtil;
 import org.openide.util.Exceptions;
 import org.openide.util.NbBundle;
 import org.openide.util.NbCollections;
+import org.xml.sax.SAXException;
 
 /**
  *
@@ -1083,6 +1089,8 @@ public class InstallSupportImpl {
 break;
 }
 }
+updateFragmentStatus(impl, nbmFile);
+
 } catch (IOException ioe) {
 LOG.log (Level.INFO, ioe.getMessage (), ioe);
 res = "BAD_DOWNLOAD";
@@ -1099,6 +1107,45 @@ public class InstallSupportImpl {
 return el.getDownloadSize ();
 }
 
+private void updateFragmentStatus(UpdateElementImpl el, File nbmFile) 
throws IOException {
+UpdateItemImpl impl = el.getInstallInfo().getUpdateItemImpl();
+if (!(impl instanceof ModuleItem)) {
+return;
+}
+ModuleItem mod = (ModuleItem)impl;
+if (mod.isFragment()) {
+String fhost = mod.getFragmentHost();
+Module m = Utilities.toModule(fhost);
+if (m != null && m.isEnabled()) {
+impl.setNeedsRestart(Boolean.TRUE);
+}
+}
+
+Map items;
+try {
+items = AutoupdateInfoParser.getUpdateItems(nbmFile);
+} catch (SAXException ex) {
+throw new IOException(ex);
+}
+for (UpdateItem realItem : items.values()) {
+UpdateItemImpl realImpl = Trampoline.SPI.impl(realItem);
+if (realImpl instanceof ModuleItem) {
+ModuleItem realMod = (ModuleItem)realImpl;
+if 

[jira] [Commented] (NETBEANS-590) Running or debugging of individual JUnit tests sometimes does not work

2018-10-03 Thread Benjamin Asbach (JIRA)


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

Benjamin Asbach commented on NETBEANS-590:
--

I saw the problem for enterprise maven projects too.

>  Running or debugging of individual JUnit tests sometimes does not work
> ---
>
> Key: NETBEANS-590
> URL: https://issues.apache.org/jira/browse/NETBEANS-590
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit, projects - Maven
>Affects Versions: 9.0
>Reporter: Manikantan Narender Nath
>Priority: Major
>
> Old Bugzilla reference: [https://netbeans.org/bugzilla/show_bug.cgi?id=252959]
> Text issue copied and pasted as is from above link
> {code:java}
> Project reproducing inability to run individual JUnit tests.
> Product Version: NetBeans IDE Dev (Build 201506110001)
> Java: 1.7.0_76; Java HotSpot(TM) 64-Bit Server VM 24.76-b04
> Runtime: Java(TM) SE Runtime Environment 1.7.0_76-b13
> System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
> User directory: /home/cesilko/.netbeans/dev
> Cache directory: /home/cesilko/.cache/netbeans/dev
> Description:
> 
> Under some circumstances users can neither run nor debug individual JUnit 
> tests due to an invalid format of arguments. Maybe it's a consequence of 
> JUnit library upgrade to version 1.12. See this error output:
> /home/cesilko/.cache/netbeans/dev/executor-snippets/junit.xml:140: The 
> following error occurred while executing this line:
> /home/cesilko/.cache/netbeans/dev/executor-snippets/junit.xml:78: Invalid 
> specification of test methods: "teststorun.CalculatorTest.testAdd"; expected: 
> comma-separated list of valid Java identifiers
> BUILD FAILED (total time: 0 seconds)
> Steps to reproduce:
> ===
> 1. Launch NetBeans IDE and open attached CannotRunIndividualTest project.
> 2. Right click "Source Packages > teststorun" node and invoke "Tools > 
> Create/Update Tests" from popup menu.
> 3. In "Create Tests" dialog just push "OK" button.
> 4. Right click "CannotRunIndividualTest" project and invoke "Test" from its 
> popup menu.
> 5. In "Test Results" output window right click "No test passed... > 
> teststorun.CalculatorTest Failed > teststorun.CalculatorTest.testAdd Failed: 
> ..." node and invoke "Run Again" from its popup menu.
> Expected: The testAdd test is run and you see that it failed again in the 
> Test Results output window and no other test results.
> Actual: The testAdd test is not run due to the aforementioned error.{code}
>  



--
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-1335) IP-CLEARANCE for Mojohaus NetBeans Utilities

2018-10-03 Thread Bertrand Delacretaz (JIRA)


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

Bertrand Delacretaz commented on NETBEANS-1335:
---

Thanks for this! 

The IP clearance form has been published automatically, I think the site is 
generated once a day, it's at 
http://incubator.apache.org/ip-clearance/netbeans-mojohaus-utilities.html

So it looks like NetBeans PPMC members can indeed make changes to that form 
without the help of mentors.

Next steps are to take care of all items which have an empty date field on that 
page as well as provide a link to a PPMC vote on accepting that contribution.

Can you or someone else from the PPMC drive that? I'm happy to assist as needed 
but it's best if the PPMC learns how to do that.

> IP-CLEARANCE for Mojohaus NetBeans Utilities
> 
>
> Key: NETBEANS-1335
> URL: https://issues.apache.org/jira/browse/NETBEANS-1335
> Project: NetBeans
>  Issue Type: Task
>Reporter: Eric Barboni
>Priority: Major
>
> This ticket is to manage ip clearance for the Mojohaus NetBeans Utilties.
> h5. Template at svn apache
> I start working on the Ip-clearance template. 
> Commited here
> https://svn.apache.org/repos/asf/incubator/public/trunk/content/ip-clearance/netbeans-mojohaus-utilities.xml
> As NetBeans is incubating I'm not sure the PMC is good.
> h5. code source
> The code source that is donated is over there :
> (browsable)
> https://github.com/mojohaus/nbm-maven-plugin/tree/80021ab48705a199513abdf2ad9fc339a8c000e2
> (git repository)
> https://github.com/mojohaus/nbm-maven-plugin
> commit id :80021ab48705a199513abdf2ad9fc339a8c000e2
> h5. iCLA check
> All is Apache V2 in this repository starting with this commit.
> Contributor according to github history are the following people (iCLA 
> verified on whismy):
>   Milos Kleint, iCLA
>   Jesse Glick, iCLA
>   Herve Boutemy, iCLA
>   Benjamin Bentmann, iCLA
>   Tomas Stupka, iCLA
>   Gaurav Gupta, iCLA
>   Eric Barboni, iCLA
>  
> Patch contributor are named in file as patch contributor or goal contributor. 
> I did not yet check. 



--
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-1335) IP-CLEARANCE for Mojohaus NetBeans Utilities

2018-10-03 Thread Bertrand Delacretaz (JIRA)


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

Bertrand Delacretaz commented on NETBEANS-1335:
---

BTW the Incubator PMC website updating instructions are at 
https://incubator.apache.org/guides/website.html

> IP-CLEARANCE for Mojohaus NetBeans Utilities
> 
>
> Key: NETBEANS-1335
> URL: https://issues.apache.org/jira/browse/NETBEANS-1335
> Project: NetBeans
>  Issue Type: Task
>Reporter: Eric Barboni
>Priority: Major
>
> This ticket is to manage ip clearance for the Mojohaus NetBeans Utilties.
> h5. Template at svn apache
> I start working on the Ip-clearance template. 
> Commited here
> https://svn.apache.org/repos/asf/incubator/public/trunk/content/ip-clearance/netbeans-mojohaus-utilities.xml
> As NetBeans is incubating I'm not sure the PMC is good.
> h5. code source
> The code source that is donated is over there :
> (browsable)
> https://github.com/mojohaus/nbm-maven-plugin/tree/80021ab48705a199513abdf2ad9fc339a8c000e2
> (git repository)
> https://github.com/mojohaus/nbm-maven-plugin
> commit id :80021ab48705a199513abdf2ad9fc339a8c000e2
> h5. iCLA check
> All is Apache V2 in this repository starting with this commit.
> Contributor according to github history are the following people (iCLA 
> verified on whismy):
>   Milos Kleint, iCLA
>   Jesse Glick, iCLA
>   Herve Boutemy, iCLA
>   Benjamin Bentmann, iCLA
>   Tomas Stupka, iCLA
>   Gaurav Gupta, iCLA
>   Eric Barboni, iCLA
>  
> Patch contributor are named in file as patch contributor or goal contributor. 
> I did not yet check. 



--
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] [Assigned] (NETBEANS-1157) native Windows Netbeans Launcher broken for Java 10 or higher

2018-10-03 Thread Svatopluk Dedic (JIRA)


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

Svatopluk Dedic reassigned NETBEANS-1157:
-

Assignee: Andreas Hauffe

> native Windows Netbeans Launcher broken  for Java 10 or higher
> --
>
> Key: NETBEANS-1157
> URL: https://issues.apache.org/jira/browse/NETBEANS-1157
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 9.0
>Reporter: Andreas Hauffe
>Assignee: Andreas Hauffe
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 10.0
>
> Attachments: JavaUtils.c
>
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> The native windows netbeans launcher does not work with a bundled Java 
> Version 10 and later since the version number has two digits. This is not 
> handled correctly in the native code ( 
> [https://github.com/apache/incubator-netbeans/blob/master/nbi/engine/native/launcher/windows/src/JavaUtils.c]
>  ).



--
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] [Assigned] (NETBEANS-998) Template Wizard displays unlocalized template names

2018-10-03 Thread Svatopluk Dedic (JIRA)


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

Svatopluk Dedic reassigned NETBEANS-998:


Assignee: Svatopluk Dedic

> Template Wizard displays unlocalized template names
> ---
>
> Key: NETBEANS-998
> URL: https://issues.apache.org/jira/browse/NETBEANS-998
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Minor
>  Labels: pull-request-available
> Fix For: Next
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Happens *only* during first invocation of the Template Wizard, after the 
> application starts. The UI implementation in *TemplateWizard1* attempts to 
> remove "->" sign from node names, and does so by proxying (FilterNode) the 
> originals.
> The originals are however DataFolderChildren.DelayedNodes, which annotate 
> their display names in RequestProcessor, after the TemplateWizard fetched the 
> original displayNames (filenames). 



--
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] [Resolved] (NETBEANS-1302) SvnKit Missing as an option

2018-10-03 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga resolved NETBEANS-1302.
-
Resolution: Won't Fix

> SvnKit Missing as an option
> ---
>
> Key: NETBEANS-1302
> URL: https://issues.apache.org/jira/browse/NETBEANS-1302
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Subversion
>Affects Versions: 9.0
> Environment: MacOS Mojava 10.14 (18A391)
>Reporter: Jo Desmet
>Priority: Critical
>  Labels: svn, svnkit
>
> In version 9.0 - SvnKit seems to be missing as an option. Because in none of 
> the versions on MacOS I was able to get CLI and JavaHL to work, it is to me 
> critical that at least SvnKit works as a fallback.



--
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-882) Exception running under JDK 11

2018-10-03 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga updated NETBEANS-882:
---
Affects Version/s: (was: 9.0)
   10.0

> Exception running under JDK 11
> --
>
> Key: NETBEANS-882
> URL: https://issues.apache.org/jira/browse/NETBEANS-882
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 10.0
>Reporter: Sven Reimers
>Priority: Blocker
> Fix For: 10.0
>
> Attachments: Screenshot_20180918_104806.png, 
> Screenshot_20180918_104851.png, Screenshot_20181002_095023.png, 
> exception_on_openjdk11.txt, image-2018-05-30-11-34-53-526.png, 
> image-2018-05-30-12-20-16-090.png, image-2018-09-18-11-15-45-588.png
>
>
> Installed some modules and got this - no code no nothing done..
> {code:java}
> javax.management.openmbean.OpenDataException: Argument value of wrong type 
> for item lineNumber: value java.lang.ref.Reference, type 
> javax.management.openmbean.SimpleType(name=java.lang.Integer)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:235)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:118)
> at 
> java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:91)
> Caused: java.lang.AssertionError
> at 
> java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:96)
> at 
> java.management/sun.management.StackTraceElementCompositeData.toCompositeData(StackTraceElementCompositeData.java:74)
> at 
> java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:82)
> 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:569)
> 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.core.TimableEventQueue$1R.run(TimableEventQueue.java:223)
> 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}



--
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-882) Exception running under JDK 11

2018-10-03 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga updated NETBEANS-882:
---
Priority: Blocker  (was: Major)

> Exception running under JDK 11
> --
>
> Key: NETBEANS-882
> URL: https://issues.apache.org/jira/browse/NETBEANS-882
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 10.0
>Reporter: Sven Reimers
>Priority: Blocker
> Fix For: 10.0
>
> Attachments: Screenshot_20180918_104806.png, 
> Screenshot_20180918_104851.png, Screenshot_20181002_095023.png, 
> exception_on_openjdk11.txt, image-2018-05-30-11-34-53-526.png, 
> image-2018-05-30-12-20-16-090.png, image-2018-09-18-11-15-45-588.png
>
>
> Installed some modules and got this - no code no nothing done..
> {code:java}
> javax.management.openmbean.OpenDataException: Argument value of wrong type 
> for item lineNumber: value java.lang.ref.Reference, type 
> javax.management.openmbean.SimpleType(name=java.lang.Integer)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:235)
> at 
> java.management/javax.management.openmbean.CompositeDataSupport.(CompositeDataSupport.java:118)
> at 
> java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:91)
> Caused: java.lang.AssertionError
> at 
> java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:96)
> at 
> java.management/sun.management.StackTraceElementCompositeData.toCompositeData(StackTraceElementCompositeData.java:74)
> at 
> java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:82)
> 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:569)
> 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.core.TimableEventQueue$1R.run(TimableEventQueue.java:223)
> 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}



--
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