[jira] [Updated] (NETBEANS-2212) Upgrade of Plugin portal to 11.0

2019-03-06 Thread ASF GitHub Bot (JIRA)


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

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

> Upgrade of Plugin portal to 11.0
> 
>
> Key: NETBEANS-2212
> URL: https://issues.apache.org/jira/browse/NETBEANS-2212
> Project: NetBeans
>  Issue Type: Task
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.0
>
>
> Currently apache:master branch is pointing to NB-10 plugin portal, needs to 
> changes it to 11.0



--
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-326] adding local variables in autocomplete list inside lambda expression

2019-03-06 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 b006f5b  [NETBEANS-326] adding local variables in autocomplete list 
inside lambda expression
b006f5b is described below

commit b006f5bc838ca33860053dca218db0b28de28de7
Author: sarveshkesharwani 
AuthorDate: Wed Mar 6 03:46:24 2019 -0800

[NETBEANS-326] adding local variables in autocomplete list inside lambda 
expression
---
 .../java/completion/JavaCompletionTask.java|   1 +
 .../1.8/lambdaOutsideMethodBodyContent.pass| 142 
 .../10/lambdaOutsideMethodBodyContent.pass | 148 +
 .../11/lambdaOutsideMethodBodyContent.pass | 148 +
 .../data/LambdaExpressionOutsideMethodBody.java|  32 +
 .../JavaCompletionTask18FeaturesTest.java  |   4 +
 6 files changed, 475 insertions(+)

diff --git 
a/java/java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
 
b/java/java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
index afa4cb2..aa0b898 100644
--- 
a/java/java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
+++ 
b/java/java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
@@ -3210,6 +3210,7 @@ public final class JavaCompletionTask extends BaseTask 
{
 
env.getController().getSourceVersion().compareTo(SourceVersion.RELEASE_8) >= 0 
&& eu.isEffectivelyFinal((VariableElement)e)
 || (method == null && 
(e.getEnclosingElement().getKind() == INSTANCE_INIT
 || e.getEnclosingElement().getKind() == 
STATIC_INIT
+|| e.getEnclosingElement().getKind() == 
CONSTRUCTOR
 || e.getEnclosingElement().getKind() == METHOD 
&& e.getEnclosingElement().getEnclosingElement().getKind() == FIELD)))
 && 
(!illegalForwardRefs.containsKey(e.getSimpleName()) || 
illegalForwardRefs.get(e.getSimpleName()).getEnclosingElement() != 
e.getEnclosingElement());
 case FIELD:
diff --git 
a/java/java.completion/test/unit/data/goldenfiles/org/netbeans/modules/java/completion/JavaCompletionTaskTest/1.8/lambdaOutsideMethodBodyContent.pass
 
b/java/java.completion/test/unit/data/goldenfiles/org/netbeans/modules/java/completion/JavaCompletionTaskTest/1.8/lambdaOutsideMethodBodyContent.pass
new file mode 100644
index 000..eb9a49f
--- /dev/null
+++ 
b/java/java.completion/test/unit/data/goldenfiles/org/netbeans/modules/java/completion/JavaCompletionTaskTest/1.8/lambdaOutsideMethodBodyContent.pass
@@ -0,0 +1,142 @@
+String s
+int t
+protected native Object clone()
+public boolean equals(Object arg0)
+protected void finalize()
+public final native Class getClass()
+public native int hashCode()
+public final native void notify()
+public final native void notifyAll()
+public String toString()
+public final void wait()
+public final native void wait(long arg0)
+public final void wait(long arg0, int arg1)
+assert
+boolean
+byte
+char
+class
+do
+double
+final
+float
+for
+if
+int
+long
+new
+return
+short
+strictfp
+super
+switch
+synchronized
+this
+throw
+try
+void
+while
+AbstractMethodError
+Appendable
+ArithmeticException
+ArrayIndexOutOfBoundsException
+ArrayStoreException
+AssertionError
+AutoCloseable
+Boolean
+BootstrapMethodError
+Byte
+CharSequence
+Character
+Class
+ClassCastException
+ClassCircularityError
+ClassFormatError
+ClassLoader
+ClassNotFoundException
+ClassValue
+CloneNotSupportedException
+Cloneable
+Comparable
+Compiler
+Deprecated
+Double
+Enum
+EnumConstantNotPresentException
+Error
+Exception
+ExceptionInInitializerError
+Float
+Foo
+FunctionalInterface
+IllegalAccessError
+IllegalAccessException
+IllegalArgumentException
+IllegalMonitorStateException
+IllegalStateException
+IllegalThreadStateException
+IncompatibleClassChangeError
+IndexOutOfBoundsException
+InheritableThreadLocal
+InstantiationError
+InstantiationException
+Integer
+InternalError
+InterruptedException
+Iterable
+LinkageError
+Long
+Math
+NegativeArraySizeException
+NoClassDefFoundError
+NoSuchFieldError
+NoSuchFieldException
+NoSuchMethodError
+NoSuchMethodException
+NullPointerException
+Number
+NumberFormatException
+Object
+OutOfMemoryError
+Override
+Package
+Process
+ProcessBuilder
+Readable
+ReflectiveOperationException
+Runnable
+Runtime
+RuntimeException
+RuntimePermission
+SafeVarargs
+SecurityException
+SecurityManager
+Short
+StackOverflowError
+StackTraceElement
+StrictMath
+String
+StringBuffer
+StringBuilder
+StringIndexOutOfBoundsException
+SuppressWarnings
+System
+Test
+Thread
+ThreadDeath
+ThreadGroup
+ThreadLocal
+Throwable
+TypeNotPresentException

[incubator-netbeans] branch master updated: [NETBEANS-2179] Fixed sub-project serialization and display name improvements.

2019-03-06 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 6a49eec  [NETBEANS-2179] Fixed sub-project serialization and display 
name improvements.
6a49eec is described below

commit 6a49eec9a165803b344ee0c7f6da7ad38ab0f6aa
Author: Laszlo Kishalmi 
AuthorDate: Sun Mar 3 12:30:02 2019 -0800

[NETBEANS-2179] Fixed sub-project serialization and display name 
improvements.
---
 .../gradle/tooling/NbProjectInfoBuilder.groovy |  5 +-
 .../modules/gradle/GradleProjectCache.java |  2 +-
 .../modules/gradle/api/GradleBaseProject.java  | 60 --
 .../gradle/api/GradleBaseProjectBuilder.java   |  3 +-
 .../modules/gradle/nodes/SubProjectsNode.java  |  4 +-
 .../org/netbeans/modules/gradle/queries/Info.java  |  8 +--
 6 files changed, 57 insertions(+), 25 deletions(-)

diff --git 
a/groovy/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.groovy
 
b/groovy/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.groovy
index 885b5e1..3ac906a 100644
--- 
a/groovy/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.groovy
+++ 
b/groovy/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.groovy
@@ -105,7 +105,7 @@ class NbProjectInfoBuilder {
 
 Map sp = new HashMap<>();
 for(Project p: project.subprojects) {
-sp.put(p.name, p.projectDir);
+sp.put(p.path, p.projectDir);
 }
 model.info.project_subProjects = sp;
 
@@ -119,6 +119,9 @@ class NbProjectInfoBuilder {
 }
 model.info.project_includedBuilds = ib;
 
+if (gradleVersion.compareTo(VersionNumber.parse('3.3')) >= 0) {
+model.info.project_display_name = project.displayName;
+}
 try {
 model.info.buildClassPath = 
storeSet(project.buildscript.configurations.classpath.files)
 } catch (Exception e) {
diff --git 
a/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java 
b/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
index 7c14f3d..df5a962 100644
--- a/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
+++ b/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
@@ -97,7 +97,7 @@ public final class GradleProjectCache {
 private static final Map> SUB_PROJECT_DIR_CACHE = new 
ConcurrentHashMap<>();
 
 // Increase this number if new info is gathered from the projects.
-private static final int COMPATIBLE_CACHE_VERSION = 10;
+private static final int COMPATIBLE_CACHE_VERSION = 11;
 
 /**
  * Loads a physical GradleProject either from Gradle or Cache. As project 
retrieval can be time consuming using
diff --git 
a/groovy/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java 
b/groovy/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
index 33b996f..8c16759 100644
--- a/groovy/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
+++ b/groovy/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
@@ -23,6 +23,7 @@ import org.netbeans.modules.gradle.spi.GradleFiles;
 import org.netbeans.modules.gradle.api.execute.RunUtils;
 import java.io.File;
 import java.io.Serializable;
+import java.nio.file.Path;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
@@ -31,6 +32,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import org.netbeans.api.project.Project;
+import org.openide.filesystems.FileUtil;
 
 /**
  * This object holds the basic information of the Gradle project.
@@ -52,6 +54,7 @@ public final class GradleBaseProject implements Serializable, 
ModuleSearchSuppor
 String path;
 String status;
 String parentName;
+String displayName;
 
 File buildDir;
 File projectDir;
@@ -75,10 +78,10 @@ public final class GradleBaseProject implements 
Serializable, ModuleSearchSuppor
 }
 
 /**
- * This Gradle project name. 
- * 
- * 
- * 
+ * This Gradle project name.
+ *
+ *
+ *
  * @return the name of the project
  */
 public String getName() {
@@ -105,6 +108,10 @@ public final class GradleBaseProject implements 
Serializable, ModuleSearchSuppor
 return description;
 }
 
+public String getDisplayName() {
+return displayName;
+}
+
 public String getVersion() {
 return version;
 }
@@ -123,8 +130,8 @@ public final class GradleBaseProject implements 
Serializable, ModuleSearchSuppor
 
 /**
  * The set of Gradle plugin ids used applied in this project.
- * 
- * @return the set of 

[incubator-netbeans] branch master updated: [NETBEANS-2009] Improve Gradle sub-project Detection (#1150)

2019-03-06 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 162ebc8  [NETBEANS-2009] Improve Gradle sub-project Detection (#1150)
162ebc8 is described below

commit 162ebc87839b94e339d4b81c9a04a17ab5814f69
Author: Laszlo Kishalmi 
AuthorDate: Wed Mar 6 21:03:25 2019 -0800

[NETBEANS-2009] Improve Gradle sub-project Detection (#1150)

* [NETBEANS-2009] Not a final solution, but improved the sub-project 
detection with caching known sub-projects.
---
 .../modules/gradle/GradleProjectCache.java | 26 +++---
 .../modules/gradle/NbGradleProjectFactory.java | 11 +++--
 .../modules/gradle/NbGradleProjectImpl.java|  2 +-
 .../modules/gradle/api/GradleProjects.java | 14 ++--
 .../gradle/execute/GradleDaemonExecutor.java   |  2 +-
 .../netbeans/modules/gradle/spi/GradleFiles.java   | 12 +++---
 6 files changed, 50 insertions(+), 17 deletions(-)

diff --git 
a/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java 
b/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
index e19d72c..7c14f3d 100644
--- a/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
+++ b/groovy/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
@@ -36,6 +36,7 @@ import java.io.Serializable;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.LinkedHashMap;
 import java.util.LinkedHashSet;
 import java.util.LinkedList;
@@ -67,6 +68,7 @@ import static org.netbeans.modules.gradle.GradleDaemon.*;
 import org.netbeans.modules.gradle.api.NbGradleProject;
 import org.netbeans.modules.gradle.api.execute.GradleCommandLine;
 import java.util.WeakHashMap;
+import java.util.concurrent.ConcurrentHashMap;
 import javax.swing.JLabel;
 import org.netbeans.modules.gradle.api.execute.RunUtils;
 import org.openide.awt.Notification;
@@ -92,6 +94,8 @@ public final class GradleProjectCache {
 private static AtomicLong timeInLoad = new AtomicLong();
 private static AtomicInteger loadedProjects = new AtomicInteger();
 
+private static final Map> SUB_PROJECT_DIR_CACHE = new 
ConcurrentHashMap<>();
+
 // Increase this number if new info is gathered from the projects.
 private static final int COMPATIBLE_CACHE_VERSION = 10;
 
@@ -119,7 +123,8 @@ public final class GradleProjectCache {
 if (cacheEntry != null) {
 if (cacheEntry.isCompatible()) {
 prev = createGradleProject(cacheEntry.quality, 
cacheEntry.data);
-if (cacheEntry.isValid(aim)) {
+if (cacheEntry.isValid()) {
+updateSubDirectoryCache(prev);
 return prev;
 }
 }
@@ -136,6 +141,7 @@ public final class GradleProjectCache {
 GradleProject ret;
 try {
 ret = GRADLE_LOADER_RP.submit(new ProjectLoaderTask(ctx)).get();
+updateSubDirectoryCache(ret);
 } catch (InterruptedException | ExecutionException ex) {
 ret = fallbackProject(files);
 }
@@ -434,10 +440,24 @@ public final class GradleProjectCache {
 
 }
 
+private static void updateSubDirectoryCache(GradleProject gp) {
+if (gp.getQuality().atLeast(EVALUATED)) {
+GradleBaseProject baseProject = gp.getBaseProject();
+if (baseProject.isRoot()) {
+SUB_PROJECT_DIR_CACHE.put(baseProject.getProjectDir(), new 
HashSet(baseProject.getSubProjects().values()));
+}
+}
+}
+
+static Boolean isKnownSubProject(File rootDir, File subProjectDir) {
+Set cache = SUB_PROJECT_DIR_CACHE.get(rootDir);
+return (cache != null) ? cache.contains(subProjectDir) : null;
+}
+
 private static void saveCachedProjectInfo(NbProjectInfo data, 
GradleProject gp) {
 assert gp.getQuality().betterThan(FALLBACK) : "Never attempt to cache 
FALLBACK projects."; //NOi18N
 //TODO: Make it possible to handle external file set as cache.
-GradleFiles gf = new GradleFiles(gp.getBaseProject().getProjectDir());
+GradleFiles gf = new GradleFiles(gp.getBaseProject().getProjectDir(), 
true);
 
 ProjectCacheEntry entry = new ProjectCacheEntry(new 
StoredProjectInfo(data), gp, gf.getProjectFiles());
 File cacheFile = new File(getCacheDir(gp), INFO_CACHE_FILE_NAME);
@@ -536,7 +556,7 @@ public final class GradleProjectCache {
 return version == COMPATIBLE_CACHE_VERSION;
 }
 
-public boolean isValid(Quality aim) {
+public boolean isValid() {
 boolean ret = isCompatible();
 if (ret && (sourceFiles != null)) {
 for (File f : 

[jira] [Created] (NETBEANS-2214) High CPU usage after hibernate/suspend and wake up Windows

2019-03-06 Thread Danton Estevam Pinto (JIRA)
Danton Estevam Pinto created NETBEANS-2214:
--

 Summary: High CPU usage after hibernate/suspend and wake up Windows
 Key: NETBEANS-2214
 URL: https://issues.apache.org/jira/browse/NETBEANS-2214
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 10.0
 Environment: Windows 7
Java 8 u181
Reporter: Danton Estevam Pinto
 Attachments: jstack_-l_PID.txt

After hibernate/suspend and wake up Windows with Netbeans running on it, 
Netbeans starts a high CPU usage.

After Windows wake up, by analysing Thread tab of the Netbenas process on 
Process Explorer, I see one threads remaining in infinite loop.

 

It seems there is a workaround like reported here: 
[https://github.com/hazelcast/hazelcast/pull/7998]

 

 

Thread Stack:

"WebSocketServer" #47 daemon prio=1 os_prio=-2 tid=0x1f132000 
nid=0x10b0 runnable [0x2a2df000]
 java.lang.Thread.State: RUNNABLE
 at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
 at 
sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:296)
 at 
sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:278)
 at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:159)
 at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
 - locked <0xc70c3798> (a sun.nio.ch.Util$3)
 - locked <0xc70c3788> (a java.util.Collections$UnmodifiableSet)
 - locked <0xc70c32e8> (a sun.nio.ch.WindowsSelectorImpl)
 at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
 at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:101)
 at 
org.netbeans.modules.netserver.SocketFramework.doRun(SocketFramework.java:97)
 at org.netbeans.modules.netserver.SocketServer.run(SocketServer.java:53)
 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) 



--
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-2126] Use correct grammar for javaee-endorsed-api-7.0.xml

2019-03-06 Thread geertjan
This is an automated email from the ASF dual-hosted git repository.

geertjan 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 ed31425  [NETBEANS-2126] Use correct grammar for 
javaee-endorsed-api-7.0.xml
 new db5e802  Merge pull request #1155 from matthiasblaesing/netbeans-2126
ed31425 is described below

commit ed3142561b1ab713346a75dc74e7d90bcae9d88f
Author: Matthias Bläsing 
AuthorDate: Wed Mar 6 19:45:45 2019 +0100

[NETBEANS-2126] Use correct grammar for javaee-endorsed-api-7.0.xml

Version 1 of the library grammar did not support properties. The addition
of the information about maven dependencies broke loading of the library
definition.
---
 .../src/org/netbeans/modules/javaee7/api/javaee-endorsed-api-7.0.xml   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/enterprise/javaee7.api/src/org/netbeans/modules/javaee7/api/javaee-endorsed-api-7.0.xml
 
b/enterprise/javaee7.api/src/org/netbeans/modules/javaee7/api/javaee-endorsed-api-7.0.xml
index 4bc3edf..ee7ec37 100644
--- 
a/enterprise/javaee7.api/src/org/netbeans/modules/javaee7/api/javaee-endorsed-api-7.0.xml
+++ 
b/enterprise/javaee7.api/src/org/netbeans/modules/javaee7/api/javaee-endorsed-api-7.0.xml
@@ -20,8 +20,7 @@
 under the License.
 
 -->
-http://www.netbeans.org/dtds/library-declaration-1_0.dtd;>
-
+http://www.netbeans.org/ns/library-declaration/3;>
 javaee-endorsed-api-7.0
 j2se
 
org/netbeans/modules/javaee7/api/Bundle


-
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: Removing the version suffix (if present) to allow using dev versions of the command line SVN client.

2019-03-06 Thread geertjan
This is an automated email from the ASF dual-hosted git repository.

geertjan 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 4f45b42  Removing the version suffix (if present) to allow using dev 
versions of the command line SVN client.
 new 809f349  Merge pull request #1156 from jan-tosovsky-cz/NETBEANS-1936
4f45b42 is described below

commit 4f45b424ce9ae504ee3e7a0b94b8e6b39e2d9fe6
Author: jan-tosovsky-cz 
AuthorDate: Wed Mar 6 23:07:29 2019 +0100

Removing the version suffix (if present) to allow using dev versions of the 
command line SVN client.
---
 .../netbeans/modules/subversion/client/cli/commands/VersionCommand.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ide/subversion/src/org/netbeans/modules/subversion/client/cli/commands/VersionCommand.java
 
b/ide/subversion/src/org/netbeans/modules/subversion/client/cli/commands/VersionCommand.java
index 81ef659..aa900ec 100644
--- 
a/ide/subversion/src/org/netbeans/modules/subversion/client/cli/commands/VersionCommand.java
+++ 
b/ide/subversion/src/org/netbeans/modules/subversion/client/cli/commands/VersionCommand.java
@@ -84,7 +84,7 @@ public class VersionCommand extends SvnCommand {
 if (pos > -1) {
 String vString = string.substring(pos + 9);
 Subversion.LOG.log(Level.INFO, "Commandline client version: 
{0}", vString);
-Version version = Version.parse(vString);
+Version version = Version.parse(vString.replace("-dev", ""));
 if (version.lowerThan(VERSION_15)) {
 unsupportedVersion = true;
 return false;


-
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-2160) Platform project runs with JDK 11.0.1 but not with JDK 11.0.2

2019-03-06 Thread Michal Hlavac (JIRA)


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

Michal Hlavac commented on NETBEANS-2160:
-

I saw same exception between versions of apache-karaf 4.2.2 vs. 4.2.3. There is 
update of felix framework library from 5.6.10 to 5.6.12

Maybe you can try update felix. Related felix issue: 
https://issues.apache.org/jira/browse/FELIX-6035

> Platform project runs with JDK 11.0.1 but not with JDK 11.0.2
> -
>
> Key: NETBEANS-2160
> URL: https://issues.apache.org/jira/browse/NETBEANS-2160
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Other
>Affects Versions: 10.0, 11.0
>Reporter: Artur Sonnenhohl
>Assignee: Jaroslav Tulach
>Priority: Blocker
> Attachments: NETBEANS-2160-felix-stream-exception.txt, app3.zip, 
> messages.log
>
>
> The attached app3.zip is reproducing the problem:
> The problem is related to loading modules from the IDE cluster into Netbeans.
> Error:
> 1) Import app3.zip
> 2) Compile and run the project hangs
> Success:
> 1) Import app3.zip
> 2) Disable module External Execution Process into IDE cluster.
> 3) Compile and run the project runs successfully.
>  
> I think Netbeans is not detecting modules conflicts/dependencies, i don't 
> know why this problem also occurs only on JDK 11.0.2 and not on 11.0.1.
>  
>  
>  
> 
> Our application based on the Netbeans Platform RCP isn't unable to boot 
> hanging during the process, this problems happens with JDK 11.0.2 and JDK 12, 
> i also tested with NetBeans 11 (preview) and it also hangs. With JDK 11.0.1 
> and JDK8 it runs perfectlly.
> The error that happens is:
> java.lang.ExceptionInInitializerError
>      at 
> org.netbeans.core.windows.view.ui.toolbars.DnDSupport.(DnDSupport.java:95)
>      at 
> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:107)
>      at 
> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:287)
>      at 
> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(ToolbarConfiguration.java:375)
>      at org.openide.awt.ToolbarPool.activate(ToolbarPool.java:220)
>      at org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:304)
>      at org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:276)
>      at 
> org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:542)
>      at 
> org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:517)
>      at 
> org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:162)
>      at 
> org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:250)
>      at 
> org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:239)
>      at 
> org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(ViewRequestor.java:176)
>      at 
> org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:96)
>      at org.netbeans.core.windows.Central.setVisible(Central.java:115)
>      at 
> org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:907)
>      at 
> org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:80)
>      at org.netbeans.core.GuiRunLevel$InitWinSys.run(GuiRunLevel.java:215)
>      at 
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
>      at 
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
>      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>      at java.base/java.security.AccessController.doPrivileged(Native Method)
>      at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>      at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>      at 
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>      at 
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>      at 
> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>      at 
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>      at 
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>      at 
> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>  Caused by: java.lang.RuntimeException: failed to load system cursor: 
> DnD.Cursor.CopyDrop : 

[jira] [Assigned] (NETBEANS-782) C/C++ External Terminal Error

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond reassigned NETBEANS-782:
--

Assignee: Daes Mond

> C/C++ External Terminal Error
> -
>
> Key: NETBEANS-782
> URL: https://issues.apache.org/jira/browse/NETBEANS-782
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2
>Reporter: NDelt
>Assignee: Daes Mond
>Priority: Major
>
> *sh: 
> /C/Users/(username)/AppData/local/Temp/dlight_(username)/f9ac1580/dlight16178248912105294974termexec.sh:
>  No such file or directory*
> This error message comes out sometimes when I run C/C++ code through external 
> terminal.(Type: Command Window)



--
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-2126) Ant Web Application project - missing reference javaee-endorsed-api-7.0

2019-03-06 Thread ASF GitHub Bot (JIRA)


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

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

> Ant Web Application project - missing reference javaee-endorsed-api-7.0
> ---
>
> Key: NETBEANS-2126
> URL: https://issues.apache.org/jira/browse/NETBEANS-2126
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Web Project
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-384-on-20190213)
> Java: 12; OpenJDK 64-Bit Server VM 12+32
> Runtime: OpenJDK Runtime Environment 12+32
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Vano Beridze
>Assignee: Matthias Bläsing
>Priority: Blocker
>  Labels: pull-request-available
>
> When you create ant web project with Java EE 7 profile it complains about 
> missing reference.
> javaee-endorsed-api-7.0



--
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-2126) Ant Web Application project - missing reference javaee-endorsed-api-7.0

2019-03-06 Thread JIRA


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

Matthias Bläsing edited comment on NETBEANS-2126 at 3/6/19 7:12 PM:


I tracked it down into the library definition. The XML library definitions 
exist in multiple versions. The library definition for the endorsed api was 
reviewed and the maven dependency informations were added. The necessary 
elements did not exist in version 1, so the fix is simple: Switch to version 3, 
which supports the new elements.

I'm currently preparing a PR to fix that.

Please see, if that fixes the problem for you.


was (Author: mblaesing):
I tracked it down into the library definition. The XML library definitions 
exist in multiple versions. The library definition for the endorsed api was 
reviewed and the maven dependency informations were added. The necessary 
elements did not exist in version 1, so the fix is simple: Switch to version 3, 
which supports the new elements.

I'm currently preparing a PR to fix that.

> Ant Web Application project - missing reference javaee-endorsed-api-7.0
> ---
>
> Key: NETBEANS-2126
> URL: https://issues.apache.org/jira/browse/NETBEANS-2126
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Web Project
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-384-on-20190213)
> Java: 12; OpenJDK 64-Bit Server VM 12+32
> Runtime: OpenJDK Runtime Environment 12+32
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Vano Beridze
>Assignee: Matthias Bläsing
>Priority: Blocker
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> When you create ant web project with Java EE 7 profile it complains about 
> missing reference.
> javaee-endorsed-api-7.0



--
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-2126) Ant Web Application project - missing reference javaee-endorsed-api-7.0

2019-03-06 Thread JIRA


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

Matthias Bläsing commented on NETBEANS-2126:


I tracked it down into the library definition. The XML library definitions 
exist in multiple versions. The library definition for the endorsed api was 
reviewed and the maven dependency informations were added. The necessary 
elements did not exist in version 1, so the fix is simple: Switch to version 3, 
which supports the new elements.

I'm currently preparing a PR to fix that.

> Ant Web Application project - missing reference javaee-endorsed-api-7.0
> ---
>
> Key: NETBEANS-2126
> URL: https://issues.apache.org/jira/browse/NETBEANS-2126
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Web Project
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-384-on-20190213)
> Java: 12; OpenJDK 64-Bit Server VM 12+32
> Runtime: OpenJDK Runtime Environment 12+32
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Vano Beridze
>Assignee: Matthias Bläsing
>Priority: Blocker
>
> When you create ant web project with Java EE 7 profile it complains about 
> missing reference.
> javaee-endorsed-api-7.0



--
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-2126) Ant Web Application project - missing reference javaee-endorsed-api-7.0

2019-03-06 Thread JIRA


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

Matthias Bläsing reassigned NETBEANS-2126:
--

Assignee: Matthias Bläsing

> Ant Web Application project - missing reference javaee-endorsed-api-7.0
> ---
>
> Key: NETBEANS-2126
> URL: https://issues.apache.org/jira/browse/NETBEANS-2126
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Web Project
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-384-on-20190213)
> Java: 12; OpenJDK 64-Bit Server VM 12+32
> Runtime: OpenJDK Runtime Environment 12+32
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Vano Beridze
>Assignee: Matthias Bläsing
>Priority: Blocker
>
> When you create ant web project with Java EE 7 profile it complains about 
> missing reference.
> javaee-endorsed-api-7.0



--
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-2085) Crash everytime when accessing c:\ root

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond commented on NETBEANS-2085:
-

Right click C: Drive from "My Computer"

Click properties

Click Security tab

Then screen shot and upload here

It's probably UAC related

> Crash everytime when accessing c:\ root
> ---
>
> Key: NETBEANS-2085
> URL: https://issues.apache.org/jira/browse/NETBEANS-2085
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 10.0
> Environment: win 10. Netabeans 10.0 64bit
>Reporter: Titum
>Priority: Major
>
> Everywhere I try to open "c:\" into "open" windows, Netbeans closes 
> immediately without error message, and without saving anything.
> It happens when opening a project, select PHP interpreter binary, add 
> downloaded plugin... even if I run neatbeans as administrator.
> It is not hapenning with other hard drives. C: contains the Windows system.
> It is not happening if I give a subfolder like "c:\wamp64" then click on 
> "Browse" (to search for "PHP interpreter" for example), or if I give the 
> subfolder as "filename" in "Open" window then click on "open".



--
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-2189) MinGW TDM Bug for fixing and temp workaround ("No shell found. Cannot proceed. Please install either CYGWIN or Msys.")

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond updated NETBEANS-2189:

Description: 
Problem using MinGW-TDM compiler

"No shell found. Cannot proceed. Please install either CYGWIN or Msys."

A work around is to choose MinGW (The 32-bit compatible version being use by 
netbeans previous versions), then rebuild the project, switch back to 
MinGW-TDM-64 bit and rebuild the project.  It will now work. Then when netbeans 
10 restarted back to same old routine to be able to use TDM.

[video of 
bug|http://topline2019.000webhostapp.com/nb10_mingw_tdm_bug_work_around_for_fix.mp4]

 

 

Hopefully I can find a much viable solution since I kinda figure it out while 
dealing with External "Terminal Error"

 

  was:
Problem using MinGW-TDM compiler

"No shell found. Cannot proceed. Please install either CYGWIN or Msys."

A work around is to choose MinGW (The 32-bit compatible version being use by 
netbeans previous versions), then rebuild the project, switch back to 
MinGW-TDM-64 bit and rebuild the project.  It will now work. Then when netbeans 
10 restarted back to same old routine to be able to use TDM.

[video of 
bug|http://topline2019.000webhostapp.com/nb10_mingw_tdm_bug_work_around_for_fix.mp4]


> MinGW TDM Bug for fixing and temp workaround ("No shell found. Cannot 
> proceed. Please install either CYGWIN or Msys.")
> --
>
> Key: NETBEANS-2189
> URL: https://issues.apache.org/jira/browse/NETBEANS-2189
> Project: NetBeans
>  Issue Type: Bug
>  Components: third-party - Other
>Affects Versions: 10.0
> Environment: Windows 10 Pro 64 bit with Msys/MinGW32 installed and 
> MinGW-TDM-64bit
>Reporter: Daes Mond
>Priority: Trivial
>
> Problem using MinGW-TDM compiler
> "No shell found. Cannot proceed. Please install either CYGWIN or Msys."
> A work around is to choose MinGW (The 32-bit compatible version being use by 
> netbeans previous versions), then rebuild the project, switch back to 
> MinGW-TDM-64 bit and rebuild the project.  It will now work. Then when 
> netbeans 10 restarted back to same old routine to be able to use TDM.
> [video of 
> bug|http://topline2019.000webhostapp.com/nb10_mingw_tdm_bug_work_around_for_fix.mp4]
>  
>  
> Hopefully I can find a much viable solution since I kinda figure it out while 
> dealing with External "Terminal Error"
>  



--
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-294) Running project is impossible when C/C++ files is opened

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond commented on NETBEANS-294:


It's  because projects are being loaded and objects are being parsed. Otherwise 
tolerable just click a project :D

> Running project is impossible when C/C++ files is opened
> 
>
> Key: NETBEANS-294
> URL: https://issues.apache.org/jira/browse/NETBEANS-294
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Actions/Menu/Toolbar
>Affects Versions: 8.2
> Environment: Windows 10
>Reporter: NDelt
>Priority: Major
>  Labels: features
> Attachments: nbissue.png
>
>
> When the file opened after starting NetBeans is C/C++ source file, or 
> changing project group to another group that only includes C/C++ files, 'Run 
> Project' button is disabled.
> I can activate it with clicking empty spaces or other file tabs, but it 
> should be fixed quickly.



--
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-2213) Java Malware found in my netbeans cnd/modules

2019-03-06 Thread Daes Mond (JIRA)
Daes Mond created NETBEANS-2213:
---

 Summary: Java Malware found in my netbeans cnd/modules
 Key: NETBEANS-2213
 URL: https://issues.apache.org/jira/browse/NETBEANS-2213
 Project: NetBeans
  Issue Type: Test
  Components: cnd - Other
Affects Versions: 8.2, 10.0
 Environment: Windows 10 Pro 64 bit
Reporter: Daes Mond
 Attachments: Java_Malware.jpg

While I have a scheduled  boot-up scanning on my laptop using avasts

I've seen two jar file move to virus chests from netbeans 8.2 and 10 folders.



--
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-782) C/C++ External Terminal Error

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond edited comment on NETBEANS-782 at 3/6/19 5:40 PM:


Whew, I finally figure out how to compile Netbeans 10 source from git :D

I have a much tolerable work around for the problem.

There are still some hicks apparently .  Still will have an error but the 
console will still display. When  application exits with negative code it's 
either 0 or 127 (weird), but positive codes seemed ok (still error but when you 
got apps that uses negative error exit codes tsk tsk tsk).

 

I tested it with msys/msys2 TDM_MinGW_64 On Windows 10

 

https://issues.apache.org/jira/browse/NETBEANS-782?focusedCommentId=16784229=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16784229
 

[~GeertjanWielenga], I'll hold your words for that :D

 

[http://topline2019.000webhostapp.com/java/TerminalLocalNativeProcess.java]
 
[http://topline2019.000webhostapp.com/java/org-netbeans-modules-dlight-nativeexecution.zip]

 


was (Author: daesmond2018):
Whew, I finally figure out how to compile Netbeans 10 source from git :D

I have a much tolerable work around for the problem.

There are still some hicks apparently .  Still will have an error but the 
console will still display. When  application exits with negative code it's 
either 0 or 127 (weird), but positive codes seemed ok (still error but when you 
got apps that uses negative error exit codes tsk tsk tsk).

 

I tested it with msys/msys2 TDM_MinGW_64 On Windows 10

https://issues.apache.org/jira/browse/NETBEANS-782?focusedCommentId=16784229=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16784229

I'll hold your words for that :D

 

[http://topline2019.000webhostapp.com/java/TerminalLocalNativeProcess.java]
 
[http://topline2019.000webhostapp.com/java/org-netbeans-modules-dlight-nativeexecution.zip]

 

> C/C++ External Terminal Error
> -
>
> Key: NETBEANS-782
> URL: https://issues.apache.org/jira/browse/NETBEANS-782
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2
>Reporter: NDelt
>Priority: Major
>
> *sh: 
> /C/Users/(username)/AppData/local/Temp/dlight_(username)/f9ac1580/dlight16178248912105294974termexec.sh:
>  No such file or directory*
> This error message comes out sometimes when I run C/C++ code through external 
> terminal.(Type: Command Window)



--
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-782) C/C++ External Terminal Error

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond edited comment on NETBEANS-782 at 3/6/19 5:39 PM:


Whew, I finally figure out how to compile Netbeans 10 source from git :D

I have a much tolerable work around for the problem.

There are still some hicks apparently .  Still will have an error but the 
console will still display. When  application exits with negative code it's 
either 0 or 127 (weird), but positive codes seemed ok (still error but when you 
got apps that uses negative error exit codes tsk tsk tsk).

 

I tested it with msys/msys2 TDM_MinGW_64 On Windows 10

https://issues.apache.org/jira/browse/NETBEANS-782?focusedCommentId=16784229=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16784229

I'll hold your words for that :D

 

[http://topline2019.000webhostapp.com/java/TerminalLocalNativeProcess.java]
 
[http://topline2019.000webhostapp.com/java/org-netbeans-modules-dlight-nativeexecution.zip]

 


was (Author: daesmond2018):
I have a much tolerable work around for the problem.

Although I tested it on msys/msys2 using Windows 10

https://issues.apache.org/jira/browse/NETBEANS-782?focusedCommentId=16784229=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16784229

I'll hold your words for that :D

 

[http://topline2019.000webhostapp.com/java/TerminalLocalNativeProcess.java]
[http://topline2019.000webhostapp.com/java/org-netbeans-modules-dlight-nativeexecution.zip]

 

> C/C++ External Terminal Error
> -
>
> Key: NETBEANS-782
> URL: https://issues.apache.org/jira/browse/NETBEANS-782
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2
>Reporter: NDelt
>Priority: Major
>
> *sh: 
> /C/Users/(username)/AppData/local/Temp/dlight_(username)/f9ac1580/dlight16178248912105294974termexec.sh:
>  No such file or directory*
> This error message comes out sometimes when I run C/C++ code through external 
> terminal.(Type: Command Window)



--
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-782) C/C++ External Terminal Error

2019-03-06 Thread Daes Mond (JIRA)


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

Daes Mond commented on NETBEANS-782:


I have a much tolerable work around for the problem.

Although I tested it on msys/msys2 using Windows 10

https://issues.apache.org/jira/browse/NETBEANS-782?focusedCommentId=16784229=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16784229

I'll hold your words for that :D

 

[http://topline2019.000webhostapp.com/java/TerminalLocalNativeProcess.java]
[http://topline2019.000webhostapp.com/java/org-netbeans-modules-dlight-nativeexecution.zip]

 

> C/C++ External Terminal Error
> -
>
> Key: NETBEANS-782
> URL: https://issues.apache.org/jira/browse/NETBEANS-782
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2
>Reporter: NDelt
>Priority: Major
>
> *sh: 
> /C/Users/(username)/AppData/local/Temp/dlight_(username)/f9ac1580/dlight16178248912105294974termexec.sh:
>  No such file or directory*
> This error message comes out sometimes when I run C/C++ code through external 
> terminal.(Type: Command Window)



--
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-2125) Could not enable Java EE on clean install

2019-03-06 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi resolved NETBEANS-2125.
---
   Resolution: Fixed
Fix Version/s: 11.0

Marked resolved as the corresponding PR got merged and cherry picked to 11.0

> Could not enable Java EE on clean install
> -
>
> Key: NETBEANS-2125
> URL: https://issues.apache.org/jira/browse/NETBEANS-2125
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Features On Demand
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-384-on-20190213)
> Java: 12; OpenJDK 64-Bit Server VM 12+32
> Runtime: OpenJDK Runtime Environment 12+32
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Vano Beridze
>Assignee: Jaroslav Tulach
>Priority: Blocker
>  Labels: netcat, pull-request-available
> Fix For: 11.0
>
> Attachments: bug1.PNG
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> On default install Java EE modules are disabled.
> If you go Services -> Servers -> Add Server -> GlassFish Server and press 
> Next, the system says that not all request modules can be enabled. Please see 
> the attached screenshot.
> Also go to New Project -> Java with Ant -> Java Enterprise -> Enterprise 
> Application the error is basically the same.



--
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-2050) Profiling point not working

2019-03-06 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi updated NETBEANS-2050:
--
Priority: Major  (was: Blocker)

> Profiling point not working
> ---
>
> Key: NETBEANS-2050
> URL: https://issues.apache.org/jira/browse/NETBEANS-2050
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - IDE
>Affects Versions: 10.0
>Reporter: Aldo Brucale
>Priority: Major
>
> I have set a profiling point in a junit test file: the profiler should take 
> an heap dump when that line is executed, but it doesnt. When I run the test 
> (menu Profile/Profile Test File) these two lines are logged: 
> {noformat}
> INFO [org.netbeans.lib.profiler.infolog]: Profiler.OutOfMemoryDetection: 
> Enabled
> WARNING [org.netbeans.modules.profiler.NetBeansProfiler]: Could not find a 
> CCT provider in lookup!{noformat}



--
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-2050) Profiling point not working

2019-03-06 Thread Laszlo Kishalmi (JIRA)


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

Laszlo Kishalmi commented on NETBEANS-2050:
---

Demoted to major as it is just affect one sub functionality of an IDE 
functionality, not the entire IDE or licensing.

> Profiling point not working
> ---
>
> Key: NETBEANS-2050
> URL: https://issues.apache.org/jira/browse/NETBEANS-2050
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - IDE
>Affects Versions: 10.0
>Reporter: Aldo Brucale
>Priority: Major
>
> I have set a profiling point in a junit test file: the profiler should take 
> an heap dump when that line is executed, but it doesnt. When I run the test 
> (menu Profile/Profile Test File) these two lines are logged: 
> {noformat}
> INFO [org.netbeans.lib.profiler.infolog]: Profiler.OutOfMemoryDetection: 
> Enabled
> WARNING [org.netbeans.modules.profiler.NetBeansProfiler]: Could not find a 
> CCT provider in lookup!{noformat}



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



svn commit: r32785 - /dev/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/

2019-03-06 Thread skygo
Author: skygo
Date: Wed Mar  6 15:34:14 2019
New Revision: 32785

Log:
remove staged Apache NetBeans (incubating) parent pom

Removed:

dev/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/


-
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



svn commit: r32784 - in /release/incubator/netbeans/incubating-netbeans-mavenutils: ./ apache-netbeans-parent-1/

2019-03-06 Thread skygo
Author: skygo
Date: Wed Mar  6 15:30:52 2019
New Revision: 32784

Log:
Add release of Apache NetBeans (incubating) parent pom

Added:
release/incubator/netbeans/incubating-netbeans-mavenutils/

release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/

release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip
   (with props)

release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.asc
   (with props)

release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.sha512
   (with props)

Added: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip
==
Binary file - no diff available.

Propchange: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip
--
svn:executable = *

Propchange: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip
--
svn:mime-type = application/octet-stream

Added: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.asc
==
--- 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.asc
 (added)
+++ 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.asc
 Wed Mar  6 15:30:52 2019
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIzBAABCgAdFiEEj+HCbxXgMg50C67YSiYBztqTgvMFAlxthg4ACgkQSiYBztqT
+gvNXvg//cN5vAKak6yrAjJTZX8FL5tV9WQEYtnBxvjej0fMlFHmndumaPMIbC9PX
+08MYsz8GnHSjRsy0IGLwMb0pKq1LRNzLe6c3yUXhXzsKzu3/2sfbYsGpRbRfI6Yn
+ahqJ4yRCz/5msgGzHl6DI311JtedCeer3lY9SwESVkBuL/hidj/t+C74A0ElTuVX
+kecbE5AJDfTFBAQzCnQIwf4FaIHNI0Y3us9K5RPiJNvaoIkbria3WyCbZ/syRlgf
+xg4/zb43zCgNbgbZnnk0C65RnPsm/il17c06Dbm55YlIzLF2cF0TBl4GJs7ky53o
+m3o51zVDPg/setZ1K4fnr+t7zoHzO6VkMGnGuo17WO9M1Ey3Q6giHb/qA3qt1zZM
+U1D3rqLE4WJsJmW/unAB0my4TxDwyvsvi2TFD0zbrFu4XxUyZyubZXPova+RYQ1R
+bG9GYzc9yryN5VftZ1glK0wcAF5ZSBEwnl/jehtRprw7tvhMF/+wNhKCcE6lR7P4
+juf6EXyRFyld9+z+pUwzhGxrVU/c0le9cRsEmJ4I5YL4awPBUSt8EtirWcoS1eg8
+oVhWT/0wFBugn/RfR6umxlcmegp7xMzjwJZ+XPbLaAGTLefYaifQrEm9vO1vxUwp
+N4dp8G2tuigNpkhOz/sBrxNtlaL15mpEYDSXl+AK6X+veNU5vYY=
+=iTfM
+-END PGP SIGNATURE-

Propchange: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.asc
--
svn:executable = *

Added: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.sha512
==
--- 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.sha512
 (added)
+++ 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.sha512
 Wed Mar  6 15:30:52 2019
@@ -0,0 +1 @@
+dfdf51ecaea0bc4481effd0184c52ebb371ea190b073d8ea147f4bb19b19210c89909c06a76e8da672457b98e4f3bafac58a984ca090685e19f420c738437235
\ No newline at end of file

Propchange: 
release/incubator/netbeans/incubating-netbeans-mavenutils/apache-netbeans-parent-1/incubating-apache-netbeans-parent-1-source-release.zip.sha512
--
svn:executable = *



-
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-1675]Java Hint to fix error :different case kinds used in s… (#1126)

2019-03-06 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 a91ade4  [NETBEANS-1675]Java Hint to fix error :different case kinds 
used in s… (#1126)
a91ade4 is described below

commit a91ade4963d0322b575402375b3a169c1eabc11b
Author: Vikas Prabhakar 
AuthorDate: Wed Mar 6 20:26:33 2019 +0530

[NETBEANS-1675]Java Hint to fix error :different case kinds used in s… 
(#1126)

* [NETBEANS-1675]Java Hint to fix error :different case kinds used in 
switch expressions

* Use getBody method

* Add review comment changes

* Change hint message
---
 .../modules/java/hints/errors/Bundle.properties|   2 +
 .../java/hints/errors/DifferentCaseKindsFix.java   | 143 
 .../modules/java/hints/errors/Utilities.java   | 195 +-
 .../java/hints/jdk/ConvertSwitchToRuleSwitch.java  | 185 +-
 .../modules/java/hints/resources/layer.xml |   1 +
 .../java/hints/errors/Bundle_test.properties   |   1 +
 .../hints/errors/DifferentCaseKindsFixTest.java| 397 +
 java/java.source.base/apichanges.xml   |  12 +
 java/java.source.base/nbproject/project.properties |   2 +-
 .../org/netbeans/api/java/source/TreeMaker.java|  14 +-
 .../org/netbeans/api/java/source/WorkingCopy.java  |   6 +
 .../netbeans/modules/java/source/TreeShims.java|  15 +
 .../modules/java/source/builder/TreeFactory.java   |   7 +-
 .../modules/java/source/matching/CopyFinder.java   |  11 +-
 .../modules/java/source/pretty/VeryPretty.java |  19 +-
 .../modules/java/source/save/CasualDiff.java   |  31 ++
 .../source/transform/ImmutableTreeTranslator.java  |  13 +
 .../api/java/source/gen/SwitchExpressionTest.java  | 215 +++
 18 files changed, 1073 insertions(+), 196 deletions(-)

diff --git 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/Bundle.properties 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/Bundle.properties
index 4b69f81..6f8a035 100644
--- 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/Bundle.properties
+++ 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/Bundle.properties
@@ -197,3 +197,5 @@ FIX_AccessError_PROTECTED=Make {0} protected
 FIX_AccessError_PACKAGE_PRIVATE=Make {0} package private
 ImportClassCustomizer.organizeImports.text=Format and sort imports
 FIX_VarCompDeclaration=Split compound declaration
+FIX_DifferentCaseKinds=Convert to rule switch case
+
diff --git 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/DifferentCaseKindsFix.java
 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/DifferentCaseKindsFix.java
new file mode 100644
index 000..c91f65e1
--- /dev/null
+++ 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/DifferentCaseKindsFix.java
@@ -0,0 +1,143 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+package org.netbeans.modules.java.hints.errors;
+
+import com.sun.source.tree.CaseTree;
+import com.sun.source.tree.SwitchTree;
+import com.sun.source.tree.Tree;
+import com.sun.source.util.TreePath;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.netbeans.api.java.queries.CompilerOptionsQuery;
+import org.netbeans.api.java.source.CompilationInfo;
+import org.netbeans.modules.java.hints.spi.ErrorRule;
+import org.netbeans.modules.java.source.TreeShims;
+import org.netbeans.spi.editor.hints.Fix;
+import org.netbeans.spi.java.hints.JavaFix;
+import org.netbeans.spi.java.hints.JavaFix.TransformationContext;
+import org.openide.util.NbBundle;
+
+/**
+ * Handle error rule "compiler.err.switch.mixing.case.types" and provide the
+ * fix.
+ *
+ * @author vkprabha
+ */
+public class DifferentCaseKindsFix implements ErrorRule {
+
+private static final Set ERROR_CODES = new 
HashSet(Arrays.asList(
+"compiler.err.switch.mixing.case.types")); // NOI18N
+
+@Override
+public Set getCodes() {
+return 

[incubator-netbeans] branch master updated: [NETBEANS-1780]:Fixed formatting issue in Switch Expression(JDK-12) (#1079)

2019-03-06 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 f718d2a  [NETBEANS-1780]:Fixed formatting issue in Switch 
Expression(JDK-12) (#1079)
f718d2a is described below

commit f718d2a1c20c511ecb2836be479f0aa7c14e92ac
Author: Arunava Sinha 
AuthorDate: Wed Mar 6 20:25:28 2019 +0530

[NETBEANS-1780]:Fixed formatting issue in Switch Expression(JDK-12) (#1079)

* [NETBEANS-1780]:Fixed formatting issue in Switch Expression(JDK-12)

* [NETBEANS-1780]: Refactored code for formatting issue in Switch 
Expression(JDK-12)

* [NETBEANS-1780]: Refactored code and added test-cases for formatting 
issue in Switch Expression/Switch Rule
---
 .../modules/java/source/save/Reformatter.java  | 160 ++---
 .../modules/java/source/save/FormatingTest.java| 381 +
 2 files changed, 491 insertions(+), 50 deletions(-)

diff --git 
a/java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
 
b/java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
index 6e25ab6..2bcf4b4 100644
--- 
a/java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
+++ 
b/java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
@@ -53,6 +53,7 @@ import org.netbeans.modules.editor.indent.spi.ExtraLock;
 import org.netbeans.modules.editor.indent.spi.ReformatTask;
 import org.netbeans.modules.java.source.JavaSourceAccessor;
 import org.netbeans.modules.java.source.NoJavacHelper;
+import org.netbeans.modules.java.source.TreeShims;
 import org.netbeans.modules.java.source.parsing.FileObjects;
 import org.netbeans.modules.java.source.parsing.JavacParser;
 import org.netbeans.modules.parsing.api.Embedding;
@@ -577,7 +578,7 @@ public class Reformatter implements ReformatTask {
 try {
 if (endPos < 0)
 return false;
-Boolean ret = tokens.offset() <= endPos ? super.scan(tree, p) 
: null;
+Boolean ret = tokens.offset() <= endPos ? 
(tree.getKind().toString().equals("SWITCH_EXPRESSION")) ? 
scanSwitchExpression(tree,p) : super.scan(tree, p) : null; //NOI18N
 return ret != null ? ret : true;
 }
 finally {
@@ -2565,32 +2566,49 @@ public class Reformatter implements ReformatTask {
 
 @Override
 public Boolean visitSwitch(SwitchTree node, Void p) {
+return handleSwitch(node, p);
+}
+
+private Boolean scanSwitchExpression(Tree node, Void p) {
+ return handleSwitch(node,p);
+}
+
+private boolean handleSwitch(Tree node, Void p) {
 accept(SWITCH);
 boolean oldContinuationIndent = continuationIndent;
 try {
 continuationIndent = true;
 spaces(cs.spaceBeforeSwitchParen() ? 1 : 0);
-scan(node.getExpression(), p);
+List exprTrees = 
TreeShims.getExpressions(node);
+if (!exprTrees.isEmpty()) {
+ExpressionTree expressionTree = exprTrees.get(0);
+scan(expressionTree, p);
+}
 } finally {
 continuationIndent = oldContinuationIndent;
 }
 CodeStyle.BracePlacement bracePlacement = 
cs.getOtherBracePlacement();
 boolean spaceBeforeLeftBrace = cs.spaceBeforeSwitchLeftBrace();
-boolean indentCases = cs.indentCasesFromSwitch();
+boolean indentCases = cs.indentCasesFromSwitch() ;
 int old = lastIndent;
 int halfIndent = lastIndent;
-switch(bracePlacement) {
+if (node.getKind().toString().equals("SWITCH_EXPRESSION")) {
+continuationIndent = false;
+}
+switch (bracePlacement) {
 case SAME_LINE:
 spaces(spaceBeforeLeftBrace ? 1 : 0, tokens.offset() < 
startOffset);
 accept(LBRACE);
-if (indentCases)
+if (indentCases) {
 indent = lastIndent + indentSize;
+}
 break;
 case NEW_LINE:
 newline();
 accept(LBRACE);
-if (indentCases)
+if (indentCases) {
 indent = lastIndent + indentSize;
+}
 break;
 case NEW_LINE_HALF_INDENTED:
 int oldLast = lastIndent;
@@ -2598,53 +2616,68 @@ public class Reformatter implements ReformatTask {
 halfIndent = indent;
 newline();
 accept(LBRACE);
-if 

[incubator-netbeans-website] branch asf-site updated: Automated site publishing by Jenkins build 628

2019-03-06 Thread git-site-role
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/asf-site by this push:
 new 99d3dbb  Automated site publishing by Jenkins build 628
99d3dbb is described below

commit 99d3dbb1d3dc14dcc2c91a63656d895643bc842c
Author: jenkins 
AuthorDate: Wed Mar 6 13:51:02 2019 +

Automated site publishing by Jenkins build 628
---
 content/participate/submit-pr.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/participate/submit-pr.html 
b/content/participate/submit-pr.html
index ff351bd..c353a82 100644
--- a/content/participate/submit-pr.html
+++ b/content/participate/submit-pr.html
@@ -85,7 +85,7 @@
 Learn to 
run and debug NetBeans IDE or Platform applications
 Contributing to 
Apache NetBeans in GitHub
 
-Boostraping (do this once)
+Bootstrapping (do this 
once)
 Branching and 
submitting pull requests
 Be patient
 Squashing commits on a Pull Request
@@ -195,7 +195,7 @@ If the commit fixes a reported issue, the summary line 
should hold the issue num
 Contributing to Apache 
NetBeans in GitHub
 
 
-Boostraping (do this once)
+Bootstrapping (do this once)
 
 Since you dont have write permissions to the GitHub apache mirror, 
you need to
 fork https://github.com/apache/incubator-netbeans; 
class="bare">https://github.com/apache/incubator-netbeans in GitHub, this 
is done using


-
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-website] branch master updated: Fix "boostraping" typo (#334)

2019-03-06 Thread vieiro
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new ad43020  Fix "boostraping" typo (#334)
ad43020 is described below

commit ad43020684d746d7c9d6d40554ff780b9fbb8859
Author: Andrew Janke 
AuthorDate: Wed Mar 6 08:48:58 2019 -0500

Fix "boostraping" typo (#334)
---
 netbeans.apache.org/src/content/participate/submit-pr.asciidoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netbeans.apache.org/src/content/participate/submit-pr.asciidoc 
b/netbeans.apache.org/src/content/participate/submit-pr.asciidoc
index b6c3816..4fb3dfd 100644
--- a/netbeans.apache.org/src/content/participate/submit-pr.asciidoc
+++ b/netbeans.apache.org/src/content/participate/submit-pr.asciidoc
@@ -62,7 +62,7 @@ link:/participate/build-run-debug-tutorials.html[Watch a 
series of 5 short video
 
 == Contributing to Apache NetBeans in GitHub
 
-=== Boostraping (do this once)
+=== Bootstrapping (do this once)
 
 Since you don't have write permissions to the GitHub apache mirror, you need to
 fork https://github.com/apache/incubator-netbeans in GitHub, this is done using


-
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-2183) CDNJS access no longer works

2019-03-06 Thread Jesper Johnson (JIRA)


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

Jesper Johnson commented on NETBEANS-2183:
--

The ampersand in the searchurl (**) option needs to be escaped. The 
workaround for NetBeans 8.2 on OS X is to edit 
{code:java}
/Applications/NetBeans/NetBeans 
8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf{code}
adding the option
{code:java}
-J-Dnetbeans.cdnjs.searchurl=https://api.cdnjs.com/libraries?fields=description,homepage,assets\={code}
to *netbeans_default_options*

> CDNJS access no longer works
> 
>
> Key: NETBEANS-2183
> URL: https://issues.apache.org/jira/browse/NETBEANS-2183
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 10.0
> Environment: Windows 10 Professional 64 bit
> OpenJDK 11.0.2
> NetBeans 10.0 - latest updates
>Reporter: Mark Eggers
>Priority: Major
> Attachments: cdnjs-search.png, cdnjs-update.png, 
> messages-with-additional-properties.log, messages.log
>
>
> # Right-mouse button on a project and select properties
>  # Select CDNJS under Javascript libraries
>  # The list of libraries comes up
>  # Expect either a green checkbox or the latest version in the far right 
> column
>  # Question marks are there instead
> Also, when searching for a new library via CDNJS, a "Search Failed :(" 
> message is displayed.
> The trace in the logs:
> INFO [org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask]
> Unexpected token END OF FILE at position 0.
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
> [catch] at 
> org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.parse(LibraryProvider.java:303)
>  at 
> org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.run(LibraryProvider.java:260)
>  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)
> INFO [null]: Last record repeated 9 more times.
> Note that this also fails on an old NetBeans 8.2 installation running on JDK 
> 8. I suspect that the remote request is failing.
>  



--
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-2212) Upgrade of Plugin portal to 11.0

2019-03-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-2212:

Fix Version/s: 11.0

> Upgrade of Plugin portal to 11.0
> 
>
> Key: NETBEANS-2212
> URL: https://issues.apache.org/jira/browse/NETBEANS-2212
> Project: NetBeans
>  Issue Type: Task
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
> Fix For: 11.0
>
>
> Currently apache:master branch is pointing to NB-10 plugin portal, needs to 
> changes it to 11.0



--
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-2212) Upgrade of Plugin portal to 11.0

2019-03-06 Thread ARUNAVA SINHA (JIRA)
ARUNAVA SINHA created NETBEANS-2212:
---

 Summary: Upgrade of Plugin portal to 11.0
 Key: NETBEANS-2212
 URL: https://issues.apache.org/jira/browse/NETBEANS-2212
 Project: NetBeans
  Issue Type: Task
Reporter: ARUNAVA SINHA
Assignee: ARUNAVA SINHA


Currently apache:master branch is pointing to NB-10 plugin portal, needs to 
changes it to 11.0



--
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-2126) Ant Web Application project - missing reference javaee-endorsed-api-7.0

2019-03-06 Thread Frank Jung (JIRA)


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

Frank Jung commented on NETBEANS-2126:
--

It's all JDK 8 since this is the only platform in this NetBeans installation. 
So NetBeans, the project and glassfish were running on JDK 8.
Thanks for the workaround, that helped out.

> Ant Web Application project - missing reference javaee-endorsed-api-7.0
> ---
>
> Key: NETBEANS-2126
> URL: https://issues.apache.org/jira/browse/NETBEANS-2126
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Web Project
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-384-on-20190213)
> Java: 12; OpenJDK 64-Bit Server VM 12+32
> Runtime: OpenJDK Runtime Environment 12+32
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Vano Beridze
>Priority: Blocker
>
> When you create ant web project with Java EE 7 profile it complains about 
> missing reference.
> javaee-endorsed-api-7.0



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