[jira] [Created] (NETBEANS-6161) "Import project" function has confusing warnings and exerts dangerous behavior

2021-10-28 Thread John Doe (Jira)
John Doe created NETBEANS-6161:
--

 Summary: "Import project" function has confusing warnings and 
exerts dangerous behavior
 Key: NETBEANS-6161
 URL: https://issues.apache.org/jira/browse/NETBEANS-6161
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.4
 Environment: OS: {{Linux 5.14.0-3-amd64 #1 SMP Debian 5.14.12-1 
(2021-10-14) x86_64 GNU/Linux}}

Distro: Debian unstable
Reporter: John Doe


The function _Import Project_ has some problems that I would like to address:
h2. Confusing warnings

The import dialog isn't clear about target folder, that means, whether the 
project in the ZIP file will be extracted to the target folder or that folder 
will become folder of the project. The field is not editable and even when an 
empty folder is selected, it stills prompt the user to _replace_ the selected 
folder or not. This leads to the problem below…
h2. NetBeans nuking an entire folder *and* a then opened project

I faced a problem just yesterday: When I imported a project into an existing 
folder, NB not only nuked that folder *but also a currently opened project*. 
The project just vanished into thin air even on the hard disk and there was no 
way to get it back. I didn't even click on anything, it just vanished after 
closing the _Import project_ dialog.

I suggest that the warning should make it clear that the target folder will be 
_*deleted*_, not _replaced_ if it already exists. Even better, the function 
should unpack the ZIP file into a subfolder with name the same as project name.



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

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

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



[jira] [Created] (NETBEANS-6160) Can't set breakpoints in Groovy until a Java file is displayed

2021-10-28 Thread Blake McBride (Jira)
Blake McBride created NETBEANS-6160:
---

 Summary: Can't set breakpoints in Groovy until a Java file is 
displayed
 Key: NETBEANS-6160
 URL: https://issues.apache.org/jira/browse/NETBEANS-6160
 Project: NetBeans
  Issue Type: Bug
  Components: groovy - Code
Affects Versions: 12.6
 Environment: NetBeans 12.6-rc1

Java 8

64-bit Linux

 
Reporter: Blake McBride


If I bring up NetBeans 12.6-rc1 on a project with Java & Groovy source files, 
and go to a Groovy source file, the system will not allow me to set a 
breakpoint.  However if I display a Java file and then go back to the Groovy 
file, I can then set breakpoint in the Groovy file.

It appears like displaying a Java file is activating something needed by the 
Groovy file.  Once it is activated all works well until I exit NetBeans and go 
back in.



--
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-6054) PHP Template missing Namespace option

2021-10-28 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-6054:


[~kevinandrews]

Fixed. It would be nice if you can verify it with NetBeans 12.6-RC2. (RC2 is 
not available yet.)

> PHP Template missing Namespace option
> -
>
> Key: NETBEANS-6054
> URL: https://issues.apache.org/jira/browse/NETBEANS-6054
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Project, platform - Templates
>Affects Versions: 12.4
>Reporter: Kevin Andrews
>Assignee: Junichi Yamamoto
>Priority: Minor
>  Labels: pull-request-available
> Attachments: Screenshot from 2021-09-24 10-01-01.png, Screenshot from 
> 2021-09-24 10-01-40.png, Screenshot from 2021-09-24 10-02-43.png, Screenshot 
> from 2021-09-24 10-02-56.png, Screenshot from 2021-09-24 10-03-34.png, 
> Screenshot from 2021-09-24 10-04-15.png, Screenshot from 2021-09-24 
> 10-05-00.png, Screenshot from 2021-09-24 10-05-18.png, Screenshot from 
> 2021-09-24 10-05-27.png
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> As a 
> PHP Developer
> I want to
> Create additional PHP Class template files which still allow entering 
> namespace in the file creation wizard after moving them to sub-directories 
> and restarting the IDE
> So that
> Namespaces are automatically entered into the file created.
> Issue Details:
> Creating a new template by going to:
> Tools -> Templates
> Navigating to the PHP folder
> Duplicate "PHP Class"
> Creating a new file from this template correctly fills out and asks about 
> Namespace (context is obtained when using the tree right click -> new).
> After restarting NetBeans it seems to lose this ability and no longer 
> displays the namespace box when creating a new file from this duplicated 
> template.
> Also moving the template into a sub folder loses this context as well.
>  
>  



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

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

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



[netbeans] branch delivery updated: Fix RAT and (some) verify-all-libs-and-licenses errors and warnings

2021-10-28 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 273353e  Fix RAT and (some) verify-all-libs-and-licenses errors and 
warnings
 new 378b3ee  Merge pull request #3276 from matthiasblaesing/fix_rat
273353e is described below

commit 273353e499669091f3a845f57814dbba8677dd74
Author: Matthias Bläsing 
AuthorDate: Wed Oct 27 19:43:56 2021 +0200

Fix RAT and (some) verify-all-libs-and-licenses errors and warnings

- 
ide/xml.retriever/test/unit/src/org/netbeans/modules/xml/retriever/impl/badssl.com-client.p12

  was included as part of a fix for NETBEANS-5956 and contributor
  explicitly agreed, that the change set is donated to the ASF. This
  change clarifies that for this binary.

- contrib/j2ee.jboss4/external/j2ee.jboss-external-resources.txt

  The file holds the license information for the external libraries,
  but does not follow the naming convention. Changed the suffix from
  .txt to license.txt

- fix formatting of licenses in:
  contrib/j2ee.weblogic9/external
  contrib/libs.oracle.jsparser/external
  contrib/libs.svnClientAdapter.svnkit/external
  contrib/websvc.wsitmodelext/external
  nbbuild/installer/jnlp/external
---
 ... => j2ee.jboss4-external-resources-license.txt} |   0
 weblogic9-generated-schema-classes-license.txt | 421 +++-
 ...9-generated-schema-classes-netbeans-license.txt | 141 
 .../com.oracle.js.parser-ba7a8bc42268-license.txt  | 748 +
 ..._1.0.0.build220_r167_v20150618_1733-license.txt |   2 +-
 ...svnkit_1.8.12.r10533_v20160129_0158-license.txt |  58 +-
 .../external/sqljet-1.1.10-license.txt |  10 +-
 ...c.wsitmodelext-glassfish-resources-license.txt} |   6 +
 ...ebsvc.wsitmodelext-oasis-resources-license.txt} |   6 +
 ... websvc.wsitmodelext-w3c-resources-license.txt} |   6 +
 ide/xml.retriever/licenseinfo.xml  |  28 +
 .../jnlp/external/jnlp-definitions-7.0-license.txt | 748 +
 12 files changed, 1161 insertions(+), 1013 deletions(-)

diff --git a/contrib/j2ee.jboss4/external/j2ee.jboss4-external-resources.txt 
b/contrib/j2ee.jboss4/external/j2ee.jboss4-external-resources-license.txt
similarity index 100%
rename from contrib/j2ee.jboss4/external/j2ee.jboss4-external-resources.txt
rename to 
contrib/j2ee.jboss4/external/j2ee.jboss4-external-resources-license.txt
diff --git a/nbbuild/installer/jnlp/external/jnlp-definitions-7.0-license.txt 
b/contrib/j2ee.weblogic9/external/j2ee.weblogic9-generated-schema-classes-license.txt
similarity index 51%
copy from nbbuild/installer/jnlp/external/jnlp-definitions-7.0-license.txt
copy to 
contrib/j2ee.weblogic9/external/j2ee.weblogic9-generated-schema-classes-license.txt
index 98cd374..4af74c8 100644
--- a/nbbuild/installer/jnlp/external/jnlp-definitions-7.0-license.txt
+++ 
b/contrib/j2ee.weblogic9/external/j2ee.weblogic9-generated-schema-classes-license.txt
@@ -1,15 +1,414 @@
-Name: JNLP
-License: GPL-2-CP
-Description: Java Web Start APIs
-Origin: https://github.com/rpax/jnlp-definitions
-Version: 7.0
-Type: compile-time
-Comment: The usage in the compilation is unclear, but it is not packaged, so 
should be safe
+Name: Weblogic Schema Classes
+Version: 9
+Description: Classes generated from Weblogic deployment descriptors
+License: CDDL-GPL-2-CP
+Origin: From weblogic distribution
+
+COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
+
+1. Definitions.
+
+1.1. "Contributor" means each individual or entity that
+creates or contributes to the creation of Modifications.
+
+1.2. "Contributor Version" means the combination of the
+Original Software, prior Modifications used by a
+Contributor (if any), and the Modifications made by that
+particular Contributor.
+
+1.3. "Covered Software" means (a) the Original Software, or
+(b) Modifications, or (c) the combination of files
+containing Original Software with files containing
+Modifications, in each case including portions thereof.
+
+1.4. "Executable" means the Covered Software in any form
+other than Source Code.
+
+1.5. "Initial Developer" means the individual or entity
+that first makes Original Software available under this
+License.
+
+1.6. "Larger Work" means a work which combines Covered
+Software or portions thereof with code not governed by the
+terms of this License.
+
+1.7. "License" means this document.
+
+1.8. "Licensable" means having the right to grant, to the
+maximum extent possible, whether at the time of the initial
+grant or subsequently acquired, any and all of the rights
+conveyed herein.
+
+1.9. "Modifications" means the Source Code and Executable
+form of any of the following:
+
+A. Any file that results from an addition to,
+deletion from or modification of the contents of a
+file 

[netbeans] branch delivery updated: [NETBEANS-6054] PHP Template missing Namespace option

2021-10-28 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 012e2ea  [NETBEANS-6054] PHP Template missing Namespace option
 new 30aa6f1  Merge pull request #3280 from 
junichi11/netbeans-6054-php-template-namespace
012e2ea is described below

commit 012e2eaac7fe78f87a49bf8d49071630edf2260f
Author: Junichi Yamamoto 
AuthorDate: Wed Oct 27 12:35:05 2021 +0900

[NETBEANS-6054] PHP Template missing Namespace option

- https://issues.apache.org/jira/browse/NETBEANS-6054

Duplicated templates are saved as the following:
```xml

http://www.netbeans.org/dtds/attributes-1_0.dtd;>












...




...



```
The original template:
```xml









```
So, NewFileWizardIterator.withNamespace() is not invoked with the
duplicated template.

To avoid this, introduce NewFileWizardIteratorWithNamespace which has
the namespace panel by default as a new class.
---
 .../modules/php/project/resources/layer.xml|  6 +-
 .../NewFileWizardIteratorWithNamespace.java| 92 ++
 2 files changed, 95 insertions(+), 3 deletions(-)

diff --git 
a/php/php.project/src/org/netbeans/modules/php/project/resources/layer.xml 
b/php/php.project/src/org/netbeans/modules/php/project/resources/layer.xml
index bc541af..cfc72ad 100644
--- a/php/php.project/src/org/netbeans/modules/php/project/resources/layer.xml
+++ b/php/php.project/src/org/netbeans/modules/php/project/resources/layer.xml
@@ -115,7 +115,7 @@
 
 
 
-
+
 
 
 
@@ -124,7 +124,7 @@
 
 
 
-
+
 
 
 
@@ -133,7 +133,7 @@
 
 
 
-
+
 
 
 
diff --git 
a/php/php.project/src/org/netbeans/modules/php/project/ui/wizards/NewFileWizardIteratorWithNamespace.java
 
b/php/php.project/src/org/netbeans/modules/php/project/ui/wizards/NewFileWizardIteratorWithNamespace.java
new file mode 100644
index 000..5d9e7f2
--- /dev/null
+++ 
b/php/php.project/src/org/netbeans/modules/php/project/ui/wizards/NewFileWizardIteratorWithNamespace.java
@@ -0,0 +1,92 @@
+/*
+ * 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.php.project.ui.wizards;
+
+import java.io.IOException;
+import java.util.Set;
+import javax.swing.event.ChangeListener;
+import org.openide.WizardDescriptor;
+
+public final class NewFileWizardIteratorWithNamespace implements 
WizardDescriptor.AsynchronousInstantiatingIterator {
+
+private final NewFileWizardIterator delegate = 
NewFileWizardIterator.withNamespace();
+
+private NewFileWizardIteratorWithNamespace() {
+}
+
+public static NewFileWizardIteratorWithNamespace create() {
+return new NewFileWizardIteratorWithNamespace();
+}
+
+@Override
+public Set instantiate() throws IOException {
+return delegate.instantiate();
+}
+
+@Override
+public void initialize(WizardDescriptor wizard) {
+delegate.initialize(wizard);
+}
+
+@Override
+public void uninitialize(WizardDescriptor wizard) {
+delegate.uninitialize(wizard);
+}
+
+@Override
+public WizardDescriptor.Panel current() {
+return delegate.current();
+}
+
+@Override
+public String name() {
+return delegate.name();
+}
+
+@Override
+public boolean hasNext() {
+return delegate.hasNext();

[netbeans] branch master updated (8e19dd9 -> 76448e5)

2021-10-28 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


from 8e19dd9  Merge pull request #3269 from 
matthiasblaesing/effective-pom-antialias
 add 49bb186  Changed ConvertTextBlockToString warning to a hint/suggestion 
and updated description.
 add 30d7043  set category to 'rules15', unset hintKind + minSourceVersion.
 add f1c11cf  replace "verifier" with "hint" in test.
 add 317b89b  redundant cast + String.isEmpty().
 add d197870  Merge pull request #3160 from mbien/convert_textblock
 add dec7836  Assure that the decorated ranges in editor do not disappear 
when editor visibility changes.
 add ce65373  Merge pull request #3261 from 
entlicher/DisappearanceOfShadedRanges
 add 0377486  [NETBEANS-6111] auto completion for "record" is now prefix 
aware.
 add 4645ebd  [NETBEANS-6111] updated test to cover basic prefix awareness 
of record keyword completion.
 add 484bf09  Merge pull request #3227 from mbien/record
 add a02e54a  installer jdk 11 fixes
 add 33d95c5  Merge pull request #3272 from ebarboni/installerjdk11
 new 76448e5  Merge pull request #3268 from apache/delivery

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


Summary of changes:
 .../java/completion/JavaCompletionTask.java|  4 ++--
 .../JavaCompletionTask114FeaturesTest.java | 18 +---
 .../java/hints/jdk/ConvertTextBlockToString.java   | 11 +-
 .../hints/jdk/ConvertTextBlockToStringTest.java| 24 +++---
 java/java.lsp.server/vscode/src/extension.ts   | 21 +++
 .../nb-javaee/nbproject/project.properties |  2 +-
 .../products/nb-php/nbproject/project.properties   |  2 +-
 nbi/infra/build/.common/common.properties  |  2 +-
 8 files changed, 59 insertions(+), 25 deletions(-)

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

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



[netbeans] 01/01: Merge pull request #3268 from apache/delivery

2021-10-28 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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

commit 76448e5011d37650a804a9a1c4fdf36f676807f3
Merge: 8e19dd9 33d95c5
Author: Neil C Smith 
AuthorDate: Thu Oct 28 10:33:42 2021 +0100

Merge pull request #3268 from apache/delivery

Merge delivery to master after 12.6-rc1

 .../java/completion/JavaCompletionTask.java|  4 ++--
 .../JavaCompletionTask114FeaturesTest.java | 18 +---
 .../java/hints/jdk/ConvertTextBlockToString.java   | 11 +-
 .../hints/jdk/ConvertTextBlockToStringTest.java| 24 +++---
 java/java.lsp.server/vscode/src/extension.ts   | 21 +++
 .../nb-javaee/nbproject/project.properties |  2 +-
 .../products/nb-php/nbproject/project.properties   |  2 +-
 nbi/infra/build/.common/common.properties  |  2 +-
 8 files changed, 59 insertions(+), 25 deletions(-)

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

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