[jira] [Commented] (NETBEANS-2951) There is no way to create glassfish-web.xml

2019-09-17 Thread Josh Juneau (Jira)


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

Josh Juneau commented on NETBEANS-2951:
---

The repair includes pointing to the glassfish-web.xml DTD which resides within 
the Eclipse Foundation repository, and copying glassfish-web.xml into place.  
The PR for repairing this issue is forthcoming.

> There is no way to create glassfish-web.xml
> ---
>
> Key: NETBEANS-2951
> URL: https://issues.apache.org/jira/browse/NETBEANS-2951
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0, 11.1
> Environment: JDK 64-Bit Server VM 8 or 11 (MS Windows 10 64 bit)
>Reporter: SergeyT
>Assignee: Josh Juneau
>Priority: Critical
> Attachments: glassfish-web.png, ide_log.png, nb_about.png, 
> no_file.png, payara_is_ok.png
>
>
> There is no way to create glassfish-web.xml file in Maven Web Application 
> project (attach)
>  After creation, this file does not appear in the project tree
>  
> Environment: JDK 64-Bit Server VM 8 or 11



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

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

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



[jira] [Assigned] (NETBEANS-2951) There is no way to create glassfish-web.xml

2019-09-17 Thread Josh Juneau (Jira)


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

Josh Juneau reassigned NETBEANS-2951:
-

Assignee: Josh Juneau

> There is no way to create glassfish-web.xml
> ---
>
> Key: NETBEANS-2951
> URL: https://issues.apache.org/jira/browse/NETBEANS-2951
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0, 11.1
> Environment: JDK 64-Bit Server VM 8 or 11 (MS Windows 10 64 bit)
>Reporter: SergeyT
>Assignee: Josh Juneau
>Priority: Critical
> Attachments: glassfish-web.png, ide_log.png, nb_about.png, 
> no_file.png, payara_is_ok.png
>
>
> There is no way to create glassfish-web.xml file in Maven Web Application 
> project (attach)
>  After creation, this file does not appear in the project tree
>  
> Environment: JDK 64-Bit Server VM 8 or 11



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

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

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



[jira] [Commented] (NETBEANS-2888) Project Context Path problem for Java Maven Web Application

2019-09-17 Thread Josh Juneau (Jira)


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

Josh Juneau commented on NETBEANS-2888:
---

I believe that I have implemented a repair for this issue.  I want to test a 
bit more locally before creating PR.

> Project Context Path problem for Java Maven Web Application
> ---
>
> Key: NETBEANS-2888
> URL: https://issues.apache.org/jira/browse/NETBEANS-2888
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Maven, apisupport - Project, javaee - 
> Maven, javaee - Web Project
>Affects Versions: 11.0, 11.1
> Environment: Netbeans 11.1 with Java 8 or 11 (Windows 10 64 bit),
> Eclipse GlassFish 5.1 or Payara app server for project app deployment
>Reporter: SergeyT
>Assignee: Josh Juneau
>Priority: Blocker
> Attachments: ctx_path_webapp.png
>
>
> There is no possibility to save/change the Project property -> Run for Java 
> Maven Web Application: Context Path (see attach)
> The context path in NB11.1 is always the same as the name of the project and 
> cannot be changed.
>  
> Environment: JDK 64-Bit Server VM 8 or 11



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

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

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



[netbeans] branch master updated: [NETBEANS-3103] Formatting is broken with class constant code completion(self::)

2019-09-17 Thread tmysik
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 3c18c5a  [NETBEANS-3103] Formatting is broken with class constant code 
completion(self::)
 new 47d3e95  Merge pull request #1510 from 
junichi11/netbeans-3103-const-formatting
3c18c5a is described below

commit 3c18c5a5f0bb6ef42052acee8dfaf6f20e369008
Author: Junichi Yamamoto 
AuthorDate: Tue Sep 17 09:39:35 2019 +0900

[NETBEANS-3103] Formatting is broken with class constant code 
completion(self::)

- The parser ignores "::" because example code is incorrect syntax
- Check whether the token behind self or parent is "::" in the FormatVisitor

Example code:
```
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.
+ */
+class ClassName {
+
+private const CONSTANT = /*FORMAT_START*/parent::/*FORMAT_END*/;
+
+}
diff --git 
a/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_01.php.formatted
 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_01.php.formatted
new file mode 100644
index 000..fb60f1b
--- /dev/null
+++ 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_01.php.formatted
@@ -0,0 +1,24 @@
+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.
+ */
+class ClassName {
+
+private const CONSTANT = parent::;
+
+}
diff --git 
a/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_02.php
 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_02.php
new file mode 100644
index 000..94ff2cf
--- /dev/null
+++ 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_02.php
@@ -0,0 +1,24 @@
+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.
+ */
+class ClassName {
+
+private const CONSTANT = /*FORMAT_START*/parent::/*FORMAT_END*/
+
+}
diff --git 
a/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_02.php.formatted
 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_02.php.formatted
new file mode 100644
index 000..f296309
--- /dev/null
+++ 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_parent_02.php.formatted
@@ -0,0 +1,24 @@
+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.
+ */
+class ClassName {
+
+private const CONSTANT = parent::
+
+}
diff --git 
a/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_self_01.php
 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_self_01.php
new file mode 100644
index 000..f2d8d45
--- /dev/null
+++ 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_self_01.php
@@ -0,0 +1,24 @@
+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.
+ */
+class ClassName {
+
+private const CONSTANT = /*FORMAT_START*/self::/*FORMAT_END*/;
+
+}
diff --git 
a/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_self_01.php.formatted
 
b/php/php.editor/test/unit/data/testfiles/formatting/broken/netbeans3103_self_01.php.formatted
new file mode 100644
index 000..fd65f8d
--- /dev/null
+++ 

[jira] [Updated] (NETBEANS-3107) cleanup use of generics

2019-09-17 Thread ASF GitHub Bot (Jira)


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

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

> cleanup use of generics
> ---
>
> Key: NETBEANS-3107
> URL: https://issues.apache.org/jira/browse/NETBEANS-3107
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Brad Walker
>Priority: Major
>  Labels: pull-request-available
>
> I'm trying to clean up the use of generics when there is a private method or 
> variable.
> For example, we see a lot of the follow code in the source tree:
> {code:java}
> private Map/**/ conn2Driver = new WeakHashMap();{code}
> Change this to
> {code:java}
> private Map conn2Driver = new WeakHashMap<>();{code}
> Java really wants us to use Generics and this looks like it was a work in 
> progress. So I'm simply trying to complete it.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3107) cleanup use of generics

2019-09-17 Thread Brad Walker (Jira)
Brad Walker created NETBEANS-3107:
-

 Summary: cleanup use of generics
 Key: NETBEANS-3107
 URL: https://issues.apache.org/jira/browse/NETBEANS-3107
 Project: NetBeans
  Issue Type: Improvement
Reporter: Brad Walker


I'm trying to clean up the use of generics when there is a private method or 
variable.

For example, we see a lot of the follow code in the source tree:
{code:java}
private Map/**/ conn2Driver = new WeakHashMap();{code}
Change this to
{code:java}
private Map conn2Driver = new WeakHashMap<>();{code}
Java really wants us to use Generics and this looks like it was a work in 
progress. So I'm simply trying to complete it.

 

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

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



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

2019-09-17 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/netbeans-website.git


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

commit f310b118a5f82102d75bec8ef699bf68074d9244
Author: jenkins 
AuthorDate: Tue Sep 17 19:25:18 2019 +

Automated site publishing by Jenkins build 887
---
 content/help/commercial-support.html | 7 ---
 1 file changed, 7 deletions(-)

diff --git a/content/help/commercial-support.html 
b/content/help/commercial-support.html
index c461ae0..e5c12c6 100644
--- a/content/help/commercial-support.html
+++ b/content/help/commercial-support.html
@@ -113,13 +113,6 @@ Software Foundation.
 
 
 
-Emilian 
Bold
-Java 
Swing,NetBeans APIs, NetBeans Platform
-Emilian 
Bold is a Java developer with a decade of experience in rich desktop 
applications, usually based on Swing and the NetBeans Platform. NetBeans Dream 
Team member. Apache committer. Emilian and his colleagues are available for 
work through his own company Joseki Bold SRL.
-Timisoara, 
Romania
-mailto:e...@apache.org;>e...@apache.org, http://www.josekibold.ro/; 
class="bare">http://www.josekibold.ro/
-
-
 Oliver 
Rettig
 Java 
Swing,NetBeans APIs, NetBeans Platform
 Oliver 
Rettig is a scientist in the field of motion analysis and a Java developer with 
a decade of experience in scientific desktop  application development, usually 
based on Swing and the NetBeans Platform (http://upperlimb.orat.de; 
class="bare">http://upperlimb.orat.de and  http://www.motion-science.org/; 
class="bare">http://www.motion-science.org/). Oliver is available for work 
through his ow [...]


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

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



[netbeans-website] branch master updated: Remove Emilian from Commercial Support page (#414)

2019-09-17 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/netbeans-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 0ca5497  Remove Emilian from Commercial Support page (#414)
0ca5497 is described below

commit 0ca549767b2a3471346b74b003c6d386dcefb68e
Author: Emilian Bold 
AuthorDate: Tue Sep 17 22:22:32 2019 +0300

Remove Emilian from Commercial Support page (#414)

Of course, as you wish.
---
 netbeans.apache.org/src/content/help/commercial-support.asciidoc | 6 --
 1 file changed, 6 deletions(-)

diff --git a/netbeans.apache.org/src/content/help/commercial-support.asciidoc 
b/netbeans.apache.org/src/content/help/commercial-support.asciidoc
index dc8b666..dc7398c 100644
--- a/netbeans.apache.org/src/content/help/commercial-support.asciidoc
+++ b/netbeans.apache.org/src/content/help/commercial-support.asciidoc
@@ -36,12 +36,6 @@ Software Foundation.
 |
 |Applicant Name|Skills|Details|Location|Contact details
 
-| Emilian Bold
-| Java Swing,NetBeans APIs, NetBeans Platform
-| Emilian Bold is a Java developer with a decade of experience in rich desktop 
applications, usually based on Swing and the NetBeans Platform. NetBeans Dream 
Team member. Apache committer. Emilian and his colleagues are available for 
work through his own company Joseki Bold SRL.
-| Timisoara, Romania
-| link:mailto:e...@apache.org[e...@apache.org], http://www.josekibold.ro/
-
 | Oliver Rettig
 | Java Swing,NetBeans APIs, NetBeans Platform
 | Oliver Rettig is a scientist in the field of motion analysis and a Java 
developer with a decade of experience in scientific desktop  application 
development, usually based on Swing and the NetBeans Platform 
(http://upperlimb.orat.de and  http://www.motion-science.org/). Oliver is 
available for work through his own company ORAT (http://www.orat.de).


-
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-3106) Ant based Groovy projects should set javahome for groovyc ant task

2019-09-17 Thread ASF GitHub Bot (Jira)


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

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

> Ant based Groovy projects should set javahome for groovyc ant task
> --
>
> Key: NETBEANS-3106
> URL: https://issues.apache.org/jira/browse/NETBEANS-3106
> Project: NetBeans
>  Issue Type: Improvement
>  Components: groovy - Code
>Affects Versions: 11.1
>Reporter: Benjamin Graf
>Priority: Major
>  Labels: pull-request-available
>
> Generation of ant based build script "groovy-build.xml" does not set javahome 
> property of groovyc task description. Therefore, the default JDK running the 
> whole IDE is used for compilation which might differ to the JDK wished to be 
> used and configured in project settings.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3106) Ant based Groovy projects should set javahome for groovyc ant task

2019-09-17 Thread Benjamin Graf (Jira)
Benjamin Graf created NETBEANS-3106:
---

 Summary: Ant based Groovy projects should set javahome for groovyc 
ant task
 Key: NETBEANS-3106
 URL: https://issues.apache.org/jira/browse/NETBEANS-3106
 Project: NetBeans
  Issue Type: Improvement
  Components: groovy - Code
Affects Versions: 11.1
Reporter: Benjamin Graf


Generation of ant based build script "groovy-build.xml" does not set javahome 
property of groovyc task description. Therefore, the default JDK running the 
whole IDE is used for compilation which might differ to the JDK wished to be 
used and configured in project settings.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2543) File names clipped in Files window

2019-09-17 Thread Eugene Kung (Jira)


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

Eugene Kung commented on NETBEANS-2543:
---

[https://bugs.openjdk.java.net/browse/JDK-8217731|JDK bug] which looks related.

> File names clipped in Files window
> --
>
> Key: NETBEANS-2543
> URL: https://issues.apache.org/jira/browse/NETBEANS-2543
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Other, projects - Generic Projects UI
>Affects Versions: 9.0, 10.0, 11.0
> Environment: Windows Pro 10 1809, HP 500-210qe
>Reporter: Geo B
>Priority: Trivial
> Attachments: netbeans_display.jpg
>
>
> File name extensions appear clipped in Files window. For example, files with 
> extension `.yaml` may appear as .yaml, .yam or .yar. See attached screen grab.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2543) File names clipped in Files window

2019-09-17 Thread Eugene Kung (Jira)


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

Eugene Kung edited comment on NETBEANS-2543 at 9/17/19 1:49 PM:


[JDK bug|https://bugs.openjdk.java.net/browse/JDK-8217731] which looks related.


was (Author: eugenek):
[https://bugs.openjdk.java.net/browse/JDK-8217731|JDK bug] which looks related.

> File names clipped in Files window
> --
>
> Key: NETBEANS-2543
> URL: https://issues.apache.org/jira/browse/NETBEANS-2543
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Other, projects - Generic Projects UI
>Affects Versions: 9.0, 10.0, 11.0
> Environment: Windows Pro 10 1809, HP 500-210qe
>Reporter: Geo B
>Priority: Trivial
> Attachments: netbeans_display.jpg
>
>
> File name extensions appear clipped in Files window. For example, files with 
> extension `.yaml` may appear as .yaml, .yam or .yar. See attached screen grab.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3101) Can't launch (and connect) NetBeans from node

2019-09-17 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach commented on NETBEANS-3101:
---

For the record, my original plan to fix this was to prefer IPv4 address in 
{{CLIHandler}}:
{code:java}
netbeans$ git show
commit 02434b973c88d06b1cf30d821a6f8a9d5d5d7877 (HEAD -> jtulach/PreferIPv4, 
alm/jtulach/PreferIPv4)
Author: Jaroslav Tulach 
Date:   Mon Sep 16 12:46:57 2019 +0200Prefer IPv4 address for localhostdiff 
--git a/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java 
b/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
index 12abdec2e591..7c2ffd1df4b1 100644
--- a/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
+++ b/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java
@@ -31,6 +31,7 @@ import java.io.InterruptedIOException;
 import java.io.OutputStream;
 import java.io.PrintWriter;
 import java.io.RandomAccessFile;
+import java.net.Inet4Address;
 import java.net.InetAddress;
 import java.net.ServerSocket;
 import java.net.Socket;
@@ -44,6 +45,7 @@ import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
+import java.util.Enumeration;
 import java.util.List;
 import java.util.Random;
 import java.util.logging.Level;
@@ -459,16 +461,29 @@ public abstract class CLIHandler extends Object {
 
 /** Enhanced search for localhost address that works also behind VPN
  */
-private static InetAddress localHostAddress () throws IOException {
+private static InetAddress localHostAddress() throws IOException {
+return localHostAddresses().get(0);
+}
+
+private static List localHostAddresses() throws IOException {
 java.net.NetworkInterface net = java.net.NetworkInterface.getByName 
("lo");
 if (net == null || !net.getInetAddresses().hasMoreElements()) {
 net = 
java.net.NetworkInterface.getByInetAddress(InetAddress.getByAddress(new byte[] 
{ 127, 0, 0, 1 }));
 }
 if (net == null || !net.getInetAddresses().hasMoreElements()) {
-return InetAddress.getLocalHost();
-}
-else {
-return net.getInetAddresses().nextElement();
+return Collections.singletonList(InetAddress.getLocalHost());
+} else {
+List arr = new ArrayList<>();
+Enumeration en = net.getInetAddresses();
+while (en.hasMoreElements()) {
+InetAddress addr = en.nextElement();
+if (addr instanceof Inet4Address) {
+arr.add(0, addr);
+} else {
+arr.add(addr);
+}
+}
+return arr;
 }
 }
 
 {code}

> Can't launch (and connect) NetBeans from node
> -
>
> Key: NETBEANS-3101
> URL: https://issues.apache.org/jira/browse/NETBEANS-3101
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Reporter: Jaroslav Tulach
>Priority: Minor
>
>  
> I am trying to connect to a *NetBeans* based application from _Visual Studio_ 
> - aka _Electron_ - aka *node*. Somehow the *node* mangles network setup and 
> the InetAddress.getHostAddress() isn't the same. To reproduce create 
> following structure of files:
> {code:java}
> $ ls -l | cut -c50-
> dump.hprof
> nb.js
> nb.sh
> netbeans -> /home/devel/bin/netbeans/bin/netbeans
> $ cat nb.sh 
> ./netbeans 'dump.hprof'
> $ cat nb.js 
> var exec = require("child_process").execFile;
> let path = './netbeans';let vvm = exec(path, [ 'dump.hprof' ]){code}
> Then start *./netbeans* on background and wait for the GUI to launch. Then do 
> following from command line:
> {code:java}
> ./jvm.sh
> {code}
> The dump.hprof file opens in the the GUI. Close it and try the same via 
> *node.js*:
> {code:java}
> node ./jvm.js
> {code}
> The heap dump isn't shown (on my computer), rather a warning dialog appears. 
> Result of node and shell script disagreeing on what is local host address. 
> One is using IPv6 and one IPv4.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3101) Can't launch (and connect) NetBeans from node

2019-09-17 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach resolved NETBEANS-3101.
---
Resolution: Won't Fix

This problem is a 
[JDK-8211842|https://bugs.openjdk.java.net/browse/JDK-8211842] which has been 
fixed in JDK12.0.2. Moreover it is possible to use {{spawn}} instead of 
{{execFile}}:
{code:java}
var spawn = require("child_process").spawn;
let path = './netbeans';

let vvm = exec(path, [ 'dump.hprof' ], { 
stdio : [ 'ignore', 'ignore', 'ignore' ]
}); {code}
Closing as won'tfix.

> Can't launch (and connect) NetBeans from node
> -
>
> Key: NETBEANS-3101
> URL: https://issues.apache.org/jira/browse/NETBEANS-3101
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Reporter: Jaroslav Tulach
>Priority: Minor
>
>  
> I am trying to connect to a *NetBeans* based application from _Visual Studio_ 
> - aka _Electron_ - aka *node*. Somehow the *node* mangles network setup and 
> the InetAddress.getHostAddress() isn't the same. To reproduce create 
> following structure of files:
> {code:java}
> $ ls -l | cut -c50-
> dump.hprof
> nb.js
> nb.sh
> netbeans -> /home/devel/bin/netbeans/bin/netbeans
> $ cat nb.sh 
> ./netbeans 'dump.hprof'
> $ cat nb.js 
> var exec = require("child_process").execFile;
> let path = './netbeans';let vvm = exec(path, [ 'dump.hprof' ]){code}
> Then start *./netbeans* on background and wait for the GUI to launch. Then do 
> following from command line:
> {code:java}
> ./jvm.sh
> {code}
> The dump.hprof file opens in the the GUI. Close it and try the same via 
> *node.js*:
> {code:java}
> node ./jvm.js
> {code}
> The heap dump isn't shown (on my computer), rather a warning dialog appears. 
> Result of node and shell script disagreeing on what is local host address. 
> One is using IPv6 and one IPv4.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-1538) NetBeans installer Not locating Java properly

2019-09-17 Thread Allen Watson (Jira)


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

Allen Watson commented on NETBEANS-1538:


[Epson Printer Offline|https://printeroffline.co/epson-printer/] Windows 10 
issue may crop up due to various reasons. Resolve Epson Printer Offline issue 
by following easy steps in the article.

> NetBeans installer Not locating Java properly
> -
>
> Key: NETBEANS-1538
> URL: https://issues.apache.org/jira/browse/NETBEANS-1538
> Project: NetBeans
>  Issue Type: Bug
>Reporter: martha
>Priority: Trivial
> Fix For: 10.0
>
>
> I'm trying to install the NetBeans "all" package, and, I'm pretty sure I 
> already have Java SE Development Kit installed, however, it's not locating it 
> properly, it comes with an error.
>  {{Java SE Development Kit (JDK) was not found on this 
> computer[!https://issues.apache.org/jira/images/icons/emoticons/sad.png!|https://www.essayhave.com/essay-writing-service.html]}}
>  So I ran the CMD and typed:
>  {{netbeans-7.1.3-windows.exe --javahome "C:\Program Files\Java\jdk1.7.0_25"}}
>  As I checked, I was in the right directory (E:\Mark\Downloads) where the 
> setup file of netbeans is supposed to be. After pressing ENTER, it did locate 
> JDK, however it would not locate JRE and came up with this error.
>  {{Java Runtime Environment (JRE) was not found There is no JRE at the 
> specified location C:\Program Files\Java\jdk1.7.0_25}}
>  So I tried installing the JDK+NetBeans Bundle by Oracle [x86 (32-bit) for 
> Windows (I'm running a 32-bit Windows XP SP3 so it should have worked)] but 
> it says that it's not compatible with my current platform. I also tried 
> --jdkhome but it didn't seem to work at all. Please, this has been going on 
> for two days.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2415) Bring back support for WildFly server

2019-09-17 Thread Hans Adler (Jira)


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

Hans Adler edited comment on NETBEANS-2415 at 9/17/19 7:38 AM:
---

Edited: Ooops. I must have missed the Dropbox link above. I thought this was 
referring to installing the 8.0 plugin in 11, as opposed to a new one. Thanks, 
Geertjan Wielenga, and sorry for the confusion! Everyone, please ignore the 
following. 

I would recommend not to follow Geertjan Wielenga's advice to download and 
install the NBM for NetBeans 8.0 as described by Rik Giepmann. It has a known 
bug that prevents deployment via NetBeans. The bug was fixed in NetBeans 8.2, 
but since this was part of the core functionality in 8.2, there is no NBM to 
download.

See my post above for what needs to be done instead on Linux to transfer the 
plugin manually from NetBeans 8.2 to NetBeans 11. On other operating systems it 
will be similar. Maybe someone wants to post a similar procedure for Windows 
for everyone's convenience.


was (Author: hans.adler):
I would recommend not to follow Geertjan Wielenga's advice to download and 
install the NBM for NetBeans 8.0 as described by Rik Giepmann. It has a known 
bug that prevents deployment via NetBeans. The bug was fixed in NetBeans 8.2, 
but since this was part of the core functionality in 8.2, there is no NBM to 
download.

See my post above for what needs to be done instead on Linux to transfer the 
plugin manually from NetBeans 8.2 to NetBeans 11. On other operating systems it 
will be similar. Maybe someone wants to post a similar procedure for Windows 
for everyone's convenience.

Edited: Ooops. I must have missed the Dropbox link above. I thought this was 
referring to installing the 8.0 plugin in 11, as opposed to a new one. Thanks, 
Geertjan Wielenga, and sorry for the confusion!

> Bring back support for WildFly server
> -
>
> Key: NETBEANS-2415
> URL: https://issues.apache.org/jira/browse/NETBEANS-2415
> Project: NetBeans
>  Issue Type: Wish
>  Components: serverplugins - WildFly
>Affects Versions: 11.0
> Environment: n.a.
>Reporter: Dominik Derwiński
>Assignee: Emmanuel Hugonnet
>Priority: Minor
>
> NetBeans 8.2 had WildFly server module, which helped greatly in debugging 
> Java EE applications directly from IDE. NetBeans 11.0 does not contain this 
> module, despite boasting to be the first version of Apache NetBeans to offer 
> full support for developing Java EE applications.
> I don't think it would be very hard to bring back WildFly server module 
> (currently it does not complile), because copying files of the module from 
> NetBeans 8.2 into NetBeans 11.0 installation, and recreating userdir is 
> enough to bring back that functionality (so the old module still works, but 
> for how long?).
> The files I have copied (after removing references to localization files) are:
>  * enterprise/config/Modules/org-netbeans-modules-javaee-wildfly.xml
>  * enterprise/modules/org-netbeans-modules-javaee-wildfly.jar
>  * enterprise/update_tracking/org-netbeans-modules-javaee-wildfly.xml
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2941) Hint "convert rule to switch" not shown with Gradle - openjdk12 - --enable-preview

2019-09-17 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-2941:
---

The requested query has been implemented.

> Hint "convert rule to switch" not shown with Gradle - openjdk12 - 
> --enable-preview
> --
>
> Key: NETBEANS-2941
> URL: https://issues.apache.org/jira/browse/NETBEANS-2941
> Project: NetBeans
>  Issue Type: Improvement
>  Components: projects - Gradle
>Affects Versions: 11.0
> Environment: Gradle 5.5.1, Netbeans 11.1, Windows10, openjdk12
>Reporter: Helmut Leininger
>Assignee: Laszlo Kishalmi
>Priority: Minor
>  Labels: gradle, hints, pull-request-available
> Fix For: 11.2
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> in the project's build.gradle are these specifications:
> {code:java}
> compileJava {
>     options.compilerArgs.addAll(['--enable-preview']) 
> }
> run {
>     jvmArgs(['--enable-preview'])
> }
>  
> {code}
> A program containing
> {code:java}
> switch (string) {
>      case"a123" -> System.out.println("a123");
>      ...
>  }{code}
> compiles and runs well in the IDE.
>  
> if "old" switch format like
> {code:java}
> switch (string) {
>      case "a123":  
>    System.out.println("a123");
>    break;
>      ...
>  }{code}
> is used, not hint
> {code:java}
> convert to rule switch{code}
> is shown
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2941) Hint "convert rule to switch" not shown with Gradle - openjdk12 - --enable-preview

2019-09-17 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-2941.
---
Fix Version/s: 11.2
   Resolution: Fixed

> Hint "convert rule to switch" not shown with Gradle - openjdk12 - 
> --enable-preview
> --
>
> Key: NETBEANS-2941
> URL: https://issues.apache.org/jira/browse/NETBEANS-2941
> Project: NetBeans
>  Issue Type: Improvement
>  Components: projects - Gradle
>Affects Versions: 11.0
> Environment: Gradle 5.5.1, Netbeans 11.1, Windows10, openjdk12
>Reporter: Helmut Leininger
>Assignee: Laszlo Kishalmi
>Priority: Minor
>  Labels: gradle, hints, pull-request-available
> Fix For: 11.2
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> in the project's build.gradle are these specifications:
> {code:java}
> compileJava {
>     options.compilerArgs.addAll(['--enable-preview']) 
> }
> run {
>     jvmArgs(['--enable-preview'])
> }
>  
> {code}
> A program containing
> {code:java}
> switch (string) {
>      case"a123" -> System.out.println("a123");
>      ...
>  }{code}
> compiles and runs well in the IDE.
>  
> if "old" switch format like
> {code:java}
> switch (string) {
>      case "a123":  
>    System.out.println("a123");
>    break;
>      ...
>  }{code}
> is used, not hint
> {code:java}
> convert to rule switch{code}
> is shown
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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