[netbeans] branch delivery updated: Annotation processors may generate class files: -that have a name different from any source file in the source roots -even while running in the editor

2020-10-18 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

lkishalmi 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 43e625b  Annotation processors may generate class files: -that have a 
name different from any source file in the source roots -even while running in 
the editor
43e625b is described below

commit 43e625b1ba19505b6d2a6f7f94463a9ac5f1b9fb
Author: Jan Lahoda 
AuthorDate: Sun Oct 18 10:06:55 2020 +0200

Annotation processors may generate class files:
-that have a name different from any source file in the source roots
-even while running in the editor

But neither of these seems to be working - fixing.
---
 .../java/source/parsing/OutputFileManager.java |  48 ++--
 .../parsing/WriteArbitraryClassFileAPTest.java | 269 +
 2 files changed, 288 insertions(+), 29 deletions(-)

diff --git 
a/java/java.source.base/src/org/netbeans/modules/java/source/parsing/OutputFileManager.java
 
b/java/java.source.base/src/org/netbeans/modules/java/source/parsing/OutputFileManager.java
index 65bf36e..146ead0 100644
--- 
a/java/java.source.base/src/org/netbeans/modules/java/source/parsing/OutputFileManager.java
+++ 
b/java/java.source.base/src/org/netbeans/modules/java/source/parsing/OutputFileManager.java
@@ -21,14 +21,12 @@ package org.netbeans.modules.java.source.parsing;
 
 import java.io.File;
 import java.io.IOException;
-import java.net.MalformedURLException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.URL;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -116,22 +114,28 @@ public class OutputFileManager extends CachingFileManager 
{
 File activeRoot = getClassFolderForSource(l, sibling, baseName);
 if (activeRoot == null) {
 activeRoot = getClassFolderForApt(l, sibling, baseName);
+}
+if (activeRoot == null && siblings.hasSibling()) {
+URL siblingURL = siblings.getSibling();
+activeRoot = getClassFolderForSourceImpl(siblingURL);
 if (activeRoot == null) {
-//Deleted project
-if (this.scp.getRoots().length > 0) {
-LOG.log(
-Level.WARNING,
-"No output for class: {0} sibling: {1} srcRoots: 
{2}",//NOI18N
-new Object[]{
-className,
-sibling,
-this.scp
-});
-}
-throw new InvalidSourcePath ();
+activeRoot = getClassFolderForApt(siblingURL);
 }
 }
-assertValidRoot(activeRoot, l);
+if (activeRoot == null) {
+//Deleted project
+if (this.scp.getRoots().length > 0) {
+LOG.log(
+Level.WARNING,
+"No output for class: {0} sibling: {1} srcRoots: {2}", 
   //NOI18N
+new Object[]{
+className,
+sibling,
+this.scp
+});
+}
+throw new InvalidSourcePath ();
+}
 baseName = className.replace('.', File.separatorChar);   
//NOI18N
 String nameStr = baseName + '.' + FileObjects.SIG;
 final File f = new File (activeRoot, nameStr);
@@ -166,7 +170,6 @@ public class OutputFileManager extends CachingFileManager {
 throw new InvalidSourcePath ();
 }
 }
-assertValidRoot(activeRoot, l);
 final String path = FileObjects.resolveRelativePath(pkgName, 
relativeName);
 final File file = FileUtil.normalizeFile(new File 
(activeRoot,path.replace(FileObjects.NBFS_SEPARATOR_CHAR, File.separatorChar)));
 return tx.createFileObject(l, file, activeRoot,null,null);
@@ -461,17 +464,4 @@ public class OutputFileManager extends CachingFileManager {
 return ModuleLocation.cast(l).getModuleRoots();
 }
 }
-
-private void assertValidRoot(
-final File activeRoot,
-final Location l) throws IOException {
-final Collection roots = getLocationRoots(l);
-if (!roots.contains(BaseUtilities.toURI(activeRoot).toURL())) {
-throw new IOException(String.format(
-"Wrong cache folder: %s, allowed: %s, location: %s",
//NOI18N
-activeRoot,
-roots,
-l));
-}
-}
 }
diff --git 
a/java/ja

[jira] [Updated] (NETBEANS-4919) javadoc's Analyzer crashes on JDK 16

2020-10-18 Thread ASF GitHub Bot (Jira)


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

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

> javadoc's Analyzer crashes on JDK 16
> 
>
> Key: NETBEANS-4919
> URL: https://issues.apache.org/jira/browse/NETBEANS-4919
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Javadoc
>Affects Versions: 12.2
>Reporter: Jan Lahoda
>Assignee: Jan Lahoda
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> The Analyzer from the java/javadoc module may fail with exception like:
> ---
> Caused by: java.lang.NoClassDefFoundError: com/sun/tools/doclint/HtmlTag
>  at 
> org.netbeans.modules.javadoc.hints.Analyzer.visitStartElement(Analyzer.java:625)
>  at 
> org.netbeans.modules.javadoc.hints.Analyzer.visitStartElement(Analyzer.java:115)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.DCTree$DCStartElement.accept(DCTree.java:850)
>  at 
> jdk.compiler/com.sun.source.util.DocTreePathScanner.scan(DocTreePathScanner.java:76)
>  at org.netbeans.modules.javadoc.hints.Analyzer.scan(Analyzer.java:738)
>  at org.netbeans.modules.javadoc.hints.Analyzer.scan(Analyzer.java:115)
>  at 
> jdk.compiler/com.sun.source.util.DocTreeScanner.scan(DocTreeScanner.java:102)
>  at 
> jdk.compiler/com.sun.source.util.DocTreeScanner.scanAndReduce(DocTreeScanner.java:110)
>  at 
> jdk.compiler/com.sun.source.util.DocTreeScanner.visitDocComment(DocTreeScanner.java:188)
>  at 
> org.netbeans.modules.javadoc.hints.Analyzer.visitDocComment(Analyzer.java:256)
>  at 
> org.netbeans.modules.javadoc.hints.Analyzer.visitDocComment(Analyzer.java:115)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.DCTree$DCDocComment.accept(DCTree.java:138)
>  at 
> jdk.compiler/com.sun.source.util.DocTreePathScanner.scan(DocTreePathScanner.java:55)
>  at org.netbeans.modules.javadoc.hints.Analyzer.analyze(Analyzer.java:169)
>  at 
> org.netbeans.modules.javadoc.hints.JavadocHint.errorHint(JavadocHint.java:192)
>  at jdk.internal.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
>  at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at 
> org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317)
> ---
>  
> While running on a development build of JDK 16. HtmlTag is an internal class 
> in JDK, and was moved to a different location recently. Would be better to 
> avoid dependency on JDK classes if we can.



--
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-4505) Strange formatting for try/catch within switch

2020-10-18 Thread Fernando Scherrer (Jira)


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

Fernando Scherrer commented on NETBEANS-4505:
-

As a work around, I reverted [this 
change|https://github.com/apache/netbeans/commit/eb9f15df149411f287988fde63da54a9b059095c#diff-a5309f14f4ad89d39d71d17b338d293b44eb85812421f507717ff5ba61c95839R4289].

> Strange formatting for try/catch within switch
> --
>
> Key: NETBEANS-4505
> URL: https://issues.apache.org/jira/browse/NETBEANS-4505
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 12.0
> Environment: Windows 10 Version 1803
>Reporter: Gary Sheppard
>Priority: Trivial
> Attachments: NetBeansFormatSwitchTryApp_caseIndent_correct.java, 
> NetBeansFormatSwitchTryApp_caseIndent_formatted.java, 
> NetBeansFormatSwitchTryApp_noCaseIndent_correct.java, 
> NetBeansFormatSwitchTryApp_noCaseIndent_formatted.java
>
>
> When I write a try/catch block inside a switch statement, and then I use 
> Source > Format or Alt-Shift-F to format the code, the formatting seems wrong.
> The behavior depends on whether Tools > Options > Editor > Formatting > 
> Indent Case Statements in Switch is checked.
> *If Indent Case Statements in Switch is checked*, I would expect formatting 
> to look like this: 
> {code:java}
> switch (val) {
>   case 0:
>   case 1:
> try {
>   result = 42 / val;
> } catch (ArithmeticException ex) {
>   System.out.println("You can't do that: " + ex.getMessage());
>   throw ex;
> }
> }{code}
> Instead, the formatting looks like this:
> {code:java}
> switch (val) {
>   case 0:
>   case 1:
> try {
> result = 42 / val;
>   } catch (ArithmeticException ex) {
> System.out.println("You can't do that: " + ex.getMessage());
> throw ex;
>   }
> }{code}
> *If Indent Case Statements in Switch is not checked*, I would expect 
> formatting to look like this: 
> {code:java}
> switch (val) {
> case 0:
> case 1:
>   try {
> result = 42 / val;
>   } catch (ArithmeticException ex) {
> System.out.println("You can't do that: " + ex.getMessage());
> throw ex;
>   }
> }{code}
> Instead, the formatting looks like this:
> {code:java}
> switch (val) {
> case 0:
> case 1:
>   try {
>   result = 42 / val;
> } catch (ArithmeticException ex) {
>   System.out.println("You can't do that: " + ex.getMessage());
>   throw ex;
> }
> }{code}
> I have attached complete Java source files that illustrate the behavior in 
> both cases.



--
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-4920) Shows error for grid-template-rows or related properties in CSS editor

2020-10-18 Thread Omid Nejadabbasi (Jira)
Omid Nejadabbasi created NETBEANS-4920:
--

 Summary: Shows error for grid-template-rows or related properties 
in CSS editor
 Key: NETBEANS-4920
 URL: https://issues.apache.org/jira/browse/NETBEANS-4920
 Project: NetBeans
  Issue Type: Bug
  Components: web - CSS Editor
 Environment: Windows 10, Netbeans version:12.0, java: 14.0.2
Reporter: Omid Nejadabbasi


Netbeans is really great for web development but some properties are not 
recognized by the CSS editor. If those issues are solved netbeans is the best 
free ide for web development. These properties are:

grid-template-columns

grid-template-rows

grid-row

grid-column

grid-template-areas

grid-auto-columns

grid-auto-rows

There might be other properties that I am unaware of. So please add them too. 
Also when we set an element to "display:grid" we can set their "align-items" to 
"start" it is not recognized. So I think that netbeans does not know anything 
about grid layouts in CSS!!!

 



--
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] [Closed] (NETBEANS-4918) standard of teaching

2020-10-18 Thread Christian Lenz (Jira)


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

Christian Lenz closed NETBEANS-4918.

Resolution: Invalid

Spam

> standard of teaching
> 
>
> Key: NETBEANS-4918
> URL: https://issues.apache.org/jira/browse/NETBEANS-4918
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Grace Hensley
>Priority: Major
>
> To provide a high standard of teaching, training and research in all aspects 
> of Homoeopathic system, National Institute of Homoeopathy, Calcutta was 
> established by the Government of India as a model institute. Career Prospects 
> - Homeopaths For homeopaths, there are many job opportunities both in India 
> and abroad. A homoeopathic practitioner can get employment as a medical 
> officer/doctor at any government and private homoeopathic hospitals. One can 
> always start his /her own practice or open a retail shop of homoeopathy 
> medicines. Besides that, Homoeopathic doctors can work industries engaged in 
> homoeopathic preparations. He /she can also work as a Professor /lecturer in 
> homoeopathic colleges or do a research. Institutes Offering these courses 
> Bachelor's and Master's degree [professional essay writing 
> services|https://topessaycompanies.com/] are offered by many colleges and 
> universities in India such as National University of Homoeopathy, Calcutta; 
> University of Health Science, Vijayawada and Rajiv Gandhi University of 
> Health Sciences, Bangalore. There are other institutions like Yeral a 
> Homoeopathic Medical College and Research Centre, Mumbai; Venutai Yashwantrao 
> Chavan Homoeopathic Medical College, Vengurla; Homoeopathic Medical College& 
> Hospital, Vengurla; Vasundhra Raje Homoeopathic Medical College and Hospital, 
> Gwalior; Swami Vivekananda Homoeopathic Medical College, Bhavnagar. 
> Remuneration The starting salary scale in government Homeopathy hospitals is 
> Rs.8000. for graduates. Professors working in Homeopathic College get more 
> than Rs 8000/- per month. Whereas, in private practice, the remuneration 
> depends totally on the effort you put in and your professional reputation.



--
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-4919) javadoc's Analyzer crashes on JDK 16

2020-10-18 Thread Jan Lahoda (Jira)
Jan Lahoda created NETBEANS-4919:


 Summary: javadoc's Analyzer crashes on JDK 16
 Key: NETBEANS-4919
 URL: https://issues.apache.org/jira/browse/NETBEANS-4919
 Project: NetBeans
  Issue Type: Bug
  Components: java - Javadoc
Affects Versions: 12.2
Reporter: Jan Lahoda
Assignee: Jan Lahoda


The Analyzer from the java/javadoc module may fail with exception like:

---

Caused by: java.lang.NoClassDefFoundError: com/sun/tools/doclint/HtmlTag
 at 
org.netbeans.modules.javadoc.hints.Analyzer.visitStartElement(Analyzer.java:625)
 at 
org.netbeans.modules.javadoc.hints.Analyzer.visitStartElement(Analyzer.java:115)
 at 
jdk.compiler/com.sun.tools.javac.tree.DCTree$DCStartElement.accept(DCTree.java:850)
 at 
jdk.compiler/com.sun.source.util.DocTreePathScanner.scan(DocTreePathScanner.java:76)
 at org.netbeans.modules.javadoc.hints.Analyzer.scan(Analyzer.java:738)
 at org.netbeans.modules.javadoc.hints.Analyzer.scan(Analyzer.java:115)
 at 
jdk.compiler/com.sun.source.util.DocTreeScanner.scan(DocTreeScanner.java:102)
 at 
jdk.compiler/com.sun.source.util.DocTreeScanner.scanAndReduce(DocTreeScanner.java:110)
 at 
jdk.compiler/com.sun.source.util.DocTreeScanner.visitDocComment(DocTreeScanner.java:188)
 at 
org.netbeans.modules.javadoc.hints.Analyzer.visitDocComment(Analyzer.java:256)
 at 
org.netbeans.modules.javadoc.hints.Analyzer.visitDocComment(Analyzer.java:115)
 at 
jdk.compiler/com.sun.tools.javac.tree.DCTree$DCDocComment.accept(DCTree.java:138)
 at 
jdk.compiler/com.sun.source.util.DocTreePathScanner.scan(DocTreePathScanner.java:55)
 at org.netbeans.modules.javadoc.hints.Analyzer.analyze(Analyzer.java:169)
 at 
org.netbeans.modules.javadoc.hints.JavadocHint.errorHint(JavadocHint.java:192)
 at jdk.internal.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
 at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at 
org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317)

---

 

While running on a development build of JDK 16. HtmlTag is an internal class in 
JDK, and was moved to a different location recently. Would be better to avoid 
dependency on JDK classes if we can.



--
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] [Updated] (NETBEANS-4910) No go to definition available when using LSP server, even if it is supported, eg:pyls

2020-10-18 Thread ASF GitHub Bot (Jira)


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

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

> No go to definition available when using LSP server, even if it is supported, 
> eg:pyls
> -
>
> Key: NETBEANS-4910
> URL: https://issues.apache.org/jira/browse/NETBEANS-4910
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: Next, 12.0, 12.1
> Environment: Ubuntu (20.04)/Kde Neon(5.20.0)
> Java-> AdoptOpenjdk openj9 11.0.8
> Netbeans 12.1, also tried on Netbeans master branch.
>Reporter: Borwe
>Priority: Blocker
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> It might be just me, but it appears there is no go to definition, when using 
> an lsp client in Apache netbeans even if the LSP server supports it, eg: pyls 
> LSP server. I did not see any Key mappings that suggested this, or even by 
> right clicking a word in the code, there was no such option...
> The server works fine, as I can get code completion hints when I press 
> Ctrl+Space, just no definitions available.



--
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-4918) standard of teaching

2020-10-18 Thread Grace Hensley (Jira)
Grace Hensley created NETBEANS-4918:
---

 Summary: standard of teaching
 Key: NETBEANS-4918
 URL: https://issues.apache.org/jira/browse/NETBEANS-4918
 Project: NetBeans
  Issue Type: Bug
Reporter: Grace Hensley


To provide a high standard of teaching, training and research in all aspects of 
Homoeopathic system, National Institute of Homoeopathy, Calcutta was 
established by the Government of India as a model institute. Career Prospects - 
Homeopaths For homeopaths, there are many job opportunities both in India and 
abroad. A homoeopathic practitioner can get employment as a medical 
officer/doctor at any government and private homoeopathic hospitals. One can 
always start his /her own practice or open a retail shop of homoeopathy 
medicines. Besides that, Homoeopathic doctors can work industries engaged in 
homoeopathic preparations. He /she can also work as a Professor /lecturer in 
homoeopathic colleges or do a research. Institutes Offering these courses 
Bachelor's and Master's degree [professional essay writing 
services|https://topessaycompanies.com/] are offered by many colleges and 
universities in India such as National University of Homoeopathy, Calcutta; 
University of Health Science, Vijayawada and Rajiv Gandhi University of Health 
Sciences, Bangalore. There are other institutions like Yeral a Homoeopathic 
Medical College and Research Centre, Mumbai; Venutai Yashwantrao Chavan 
Homoeopathic Medical College, Vengurla; Homoeopathic Medical College& Hospital, 
Vengurla; Vasundhra Raje Homoeopathic Medical College and Hospital, Gwalior; 
Swami Vivekananda Homoeopathic Medical College, Bhavnagar. Remuneration The 
starting salary scale in government Homeopathy hospitals is Rs.8000. for 
graduates. Professors working in Homeopathic College get more than Rs 8000/- 
per month. Whereas, in private practice, the remuneration depends totally on 
the effort you put in and your professional reputation.



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