[jira] [Assigned] (NETBEANS-5884) Jackpot doesn't work on JDK 17

2021-07-28 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach reassigned NETBEANS-5884:
-

   Assignee: Jan Lahoda
Description: 
{code:java}
java.lang.NoSuchMethodError: 'void 
com.sun.tools.javac.util.Log.(com.sun.tools.javac.util.Context, 
java.io.PrintWriter, java.io.PrintWriter, java.io.PrintWriter)'
at org.netbeans.lib.nbjavac.services.NBLog.(NBLog.java:55)
at org.netbeans.lib.nbjavac.services.NBLog.(NBLog.java:40)
at org.netbeans.lib.nbjavac.services.NBLog$1.make(NBLog.java:73)
at org.netbeans.lib.nbjavac.services.NBLog$1.make(NBLog.java:70) {code}

> Jackpot doesn't work on JDK 17
> --
>
> Key: NETBEANS-5884
> URL: https://issues.apache.org/jira/browse/NETBEANS-5884
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler
>Affects Versions: 12.3
>Reporter: Jaroslav Tulach
>Assignee: Jan Lahoda
>Priority: Major
>
> {code:java}
> java.lang.NoSuchMethodError: 'void 
> com.sun.tools.javac.util.Log.(com.sun.tools.javac.util.Context, 
> java.io.PrintWriter, java.io.PrintWriter, java.io.PrintWriter)'
>   at org.netbeans.lib.nbjavac.services.NBLog.(NBLog.java:55)
>   at org.netbeans.lib.nbjavac.services.NBLog.(NBLog.java:40)
>   at org.netbeans.lib.nbjavac.services.NBLog$1.make(NBLog.java:73)
>   at org.netbeans.lib.nbjavac.services.NBLog$1.make(NBLog.java:70) {code}



--
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-5884) Jackpot doesn't work on JDK 17

2021-07-28 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach updated NETBEANS-5884:
--
Affects Version/s: 12.3

> Jackpot doesn't work on JDK 17
> --
>
> Key: NETBEANS-5884
> URL: https://issues.apache.org/jira/browse/NETBEANS-5884
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler
>Affects Versions: 12.3
>Reporter: Jaroslav Tulach
>Priority: Major
>




--
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-5884) Jackpot doesn't work on JDK 17

2021-07-28 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach updated NETBEANS-5884:
--
Component/s: java - Compiler

> Jackpot doesn't work on JDK 17
> --
>
> Key: NETBEANS-5884
> URL: https://issues.apache.org/jira/browse/NETBEANS-5884
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler
>Reporter: Jaroslav Tulach
>Priority: Major
>




--
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-5884) Jackpot doesn't work on JDK 17

2021-07-28 Thread Jaroslav Tulach (Jira)
Jaroslav Tulach created NETBEANS-5884:
-

 Summary: Jackpot doesn't work on JDK 17
 Key: NETBEANS-5884
 URL: https://issues.apache.org/jira/browse/NETBEANS-5884
 Project: NetBeans
  Issue Type: Bug
Reporter: Jaroslav Tulach






--
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-4540) SyntaxException for specific grammar

2021-07-28 Thread Christian Lenz (Jira)


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

Christian Lenz updated NETBEANS-4540:
-
Affects Version/s: 12.4

> SyntaxException for specific grammar
> 
>
> Key: NETBEANS-4540
> URL: https://issues.apache.org/jira/browse/NETBEANS-4540
> Project: NetBeans
>  Issue Type: Bug
>  Components: textmate-lexer
>Affects Versions: 12.0, 12.4
> Environment: Product Version: Apache NetBeans IDE 12.0
> Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.0
> Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.0
>Reporter: Christian Lenz
>Assignee: Jan Lahoda
>Priority: Major
> Attachments: example.jl, example.tex
>
>
> When I use this grammar file: 
> https://github.com/James-Yu/LaTeX-Workshop/blob/master/syntax/LaTeX.tmLanguage.json
>  for tex files, I got an SyntaxException fot the attached file (example.tex)
> {code}
> org.joni.exception.SyntaxException: premature end of char-class
>   at org.joni.ScannerSupport.newSyntaxException(ScannerSupport.java:166)
>   at org.joni.Parser.parseCharClass(Parser.java:342)
>   at org.joni.Parser.parseCharClass(Parser.java:318)
>   at org.joni.Parser.parseExp(Parser.java:892)
>   at org.joni.Parser.parseBranch(Parser.java:1116)
>   at org.joni.Parser.parseSubExp(Parser.java:1133)
>   at org.joni.Parser.parseRegexp(Parser.java:1166)
>   at org.joni.Parser.parse(Parser.java:65)
>   at org.joni.Analyser.compile(Analyser.java:80)
>   at org.joni.Regex.(Regex.java:159)
>   at org.joni.Regex.(Regex.java:136)
>   at 
> org.eclipse.tm4e.core.internal.oniguruma.OnigRegExp.(OnigRegExp.java:49)
>   at 
> org.eclipse.tm4e.core.internal.oniguruma.OnigSearcher.(OnigSearcher.java:29)
>   at 
> org.eclipse.tm4e.core.internal.oniguruma.OnigScanner.(OnigScanner.java:24)
>   at 
> org.eclipse.tm4e.core.internal.rule.RegExpSourceList.createOnigScanner(RegExpSourceList.java:132)
>   at 
> org.eclipse.tm4e.core.internal.rule.RegExpSourceList.compile(RegExpSourceList.java:86)
>   at 
> org.eclipse.tm4e.core.internal.rule.BeginEndRule.compile(BeginEndRule.java:77)
>   at 
> org.eclipse.tm4e.core.internal.grammar.LineTokenizer.matchRule(LineTokenizer.java:276)
>   at 
> org.eclipse.tm4e.core.internal.grammar.LineTokenizer.matchRuleOrInjections(LineTokenizer.java:299)
>   at 
> org.eclipse.tm4e.core.internal.grammar.LineTokenizer.scanNext(LineTokenizer.java:110)
>   at 
> org.eclipse.tm4e.core.internal.grammar.LineTokenizer.scan(LineTokenizer.java:97)
>   at 
> org.eclipse.tm4e.core.internal.grammar.LineTokenizer._tokenizeString(LineTokenizer.java:537)
>   at 
> org.eclipse.tm4e.core.internal.grammar.Grammar._tokenize(Grammar.java:239)
>   at 
> org.eclipse.tm4e.core.internal.grammar.Grammar.tokenizeLine(Grammar.java:191)
>   at 
> org.netbeans.modules.textmate.lexer.TextmateLexer.nextToken(TextmateLexer.java:75)
>   at 
> org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
>   at 
> org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingImpl(IncTokenList.java:170)
>   at 
> org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbedding(IncTokenList.java:165)
>   at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:463)
>   at 
> org.netbeans.modules.textmate.lexer.SyntaxHighlighting$TSInfo.moveNextToken(SyntaxHighlighting.java:779)
>   at 
> org.netbeans.modules.textmate.lexer.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:476)
>   at 
> org.netbeans.modules.textmate.lexer.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:405)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:600)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.updateMergeVars(DirectMergeContainer.java:337)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.nextMerge(DirectMergeContainer.java:303)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.moveNext(DirectMergeContainer.java:234)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.readUntil(HighlightsReader.java:59)
>   at 
> org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:168)
>   at 
> org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:1299)
>   at 
> 

[jira] [Updated] (NETBEANS-4539) No syntax highlighting for specific textmate grammar

2021-07-28 Thread Christian Lenz (Jira)


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

Christian Lenz updated NETBEANS-4539:
-
Affects Version/s: 12.4

> No syntax highlighting for specific textmate grammar
> 
>
> Key: NETBEANS-4539
> URL: https://issues.apache.org/jira/browse/NETBEANS-4539
> Project: NetBeans
>  Issue Type: Bug
>  Components: textmate-lexer
>Affects Versions: 12.0, 12.4
> Environment: Product Version: Apache NetBeans IDE 12.0
> Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.0
> Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.0
>Reporter: Christian Lenz
>Assignee: Jan Lahoda
>Priority: Major
>
> I don't have syntax highlighting, when I use/register this grammar file: 
> https://github.com/microsoft/vscode-markdown-tm-grammar/blob/master/syntaxes/markdown.tmLanguage
> Steps to reproduce:
> * Open options
> * Go to Editor -> Language Servers
> * Create a new entry for md files
> * Use the given grammar file to register it for md files
> * Save and apply options.
> * Open any *.md file
> * See no syntax highlighting



--
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-4530) NPE for specific textmate grammar

2021-07-28 Thread Christian Lenz (Jira)


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

Christian Lenz updated NETBEANS-4530:
-
Affects Version/s: 12.4

> NPE for specific textmate grammar
> -
>
> Key: NETBEANS-4530
> URL: https://issues.apache.org/jira/browse/NETBEANS-4530
> Project: NetBeans
>  Issue Type: Bug
>  Components: textmate-lexer
>Affects Versions: 12.0, 12.4
> Environment: Product Version: Apache NetBeans IDE 12.0
> Updates: Updates available
> Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.0
> Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.0
>Reporter: Christian Lenz
>Assignee: Jan Lahoda
>Priority: Major
> Attachments: example.d, example.nim
>
>
> When I use this grammar file: 
> https://github.com/pragmagic/vscode-nim/blob/master/syntaxes/nim.json for the 
> nim language, I got a NPE:
> {code}
> java.lang.NullPointerException
>   at 
> org.eclipse.tm4e.core.internal.grammar.Grammar._tokenize(Grammar.java:220)
>   at 
> org.eclipse.tm4e.core.internal.grammar.Grammar.tokenizeLine(Grammar.java:191)
>   at 
> org.netbeans.modules.textmate.lexer.TextmateLexer.nextToken(TextmateLexer.java:75)
>   at 
> org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
>   at 
> org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingImpl(IncTokenList.java:170)
>   at 
> org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbedding(IncTokenList.java:165)
>   at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:463)
>   at 
> org.netbeans.modules.textmate.lexer.SyntaxHighlighting$TSInfo.moveNextToken(SyntaxHighlighting.java:779)
>   at 
> org.netbeans.modules.textmate.lexer.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:476)
>   at 
> org.netbeans.modules.textmate.lexer.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:405)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:600)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.updateMergeVars(DirectMergeContainer.java:337)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.nextMerge(DirectMergeContainer.java:303)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.moveNext(DirectMergeContainer.java:234)
>   at 
> org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.readUntil(HighlightsReader.java:59)
>   at 
> org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:168)
>   at 
> org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:1299)
>   at 
> org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:699)
>   at 
> org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:660)
>   at 
> org.netbeans.modules.editor.lib2.view.ViewUpdates.reinitAllViews(ViewUpdates.java:189)
>   at 
> org.netbeans.modules.editor.lib2.view.DocumentViewOp.checkViewsInited(DocumentViewOp.java:619)
>   at 
> org.netbeans.modules.editor.lib2.view.DocumentView.getPreferredSpan(DocumentView.java:226)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.getPreferredSpan(BasicTextUI.java:1452)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:957)
>   at 
> java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1680)
>   at 
> java.desktop/javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1345)
>   at 
> org.netbeans.modules.editor.NbEditorUI$LayeredEditorPane.getPreferredSize(NbEditorUI.java:453)
>   at 
> java.desktop/javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:795)
>   at java.desktop/java.awt.Container.layout(Container.java:1537)
>   at java.desktop/java.awt.Container.doLayout(Container.java:1526)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1722)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1731)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1731)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1731)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1731)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1731)
>   at java.desktop/java.awt.Container.validateTree(Container.java:1731)
>   

[jira] [Commented] (NETBEANS-5781) Priming gradle build does not honor the gradle version set in Options/Java/Gradle

2021-07-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-5781:
---

Oh, just seen the env section. OpenJDK 16. I guess your Gradle project using a 
6.x wrapper (or maybe older). Gradle supports Java 16 form 7.0+.

Due to some Gradle limitations priming build can only use the JDK what the IDE 
is running on. In these situations the IDE has to Gradle 7.0+ for priming 
builds.

You can either upgrade your project to Gradle 7.x or use Java 15 for the IDE.

Yes it is true, the IDE should have display something when this setting is 
overruled by JDK-Gradle compatibility.

> Priming gradle build does not honor the gradle version set in 
> Options/Java/Gradle
> -
>
> Key: NETBEANS-5781
> URL: https://issues.apache.org/jira/browse/NETBEANS-5781
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.4
> Environment: Ubuntu 20.04, AdoptOpenjdk 16.0.1, Netbeans 12.4.  JDK 
> and Netbeans were installed by downloads, not by the Ubuntu package manager.
>  
>Reporter: Guntram Blohm
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: gradle, version
> Attachments: Screenshot_2021-06-15_11-31-49.png
>
>
> When opening a gradle project, Netbeans does not honor the gradle version set 
> in Tools/Options/Java/Gradle, instead, it seems to always use gradle 7.0.0.
> I have an older project that uses deprecated features, so it needs gradle 
> 4.10.2 to load. Even when I set "Use Standard Gradle Version" to "4.10.2", 
> Netbeans uses gradle 7 to load the project, decides it can't, and makes the 
> project unusable. Pressing the "hammer" button (F11) to build the project 
> correctly uses Gradle 4.10.2 and builds the project.
> Attached screenshot shows, after "reload project", how Netbeans uses Gradle 
> 7.0 even with gradle 4.10.2 selected in Options.
>  



--
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-5781) Priming gradle build does not honor the gradle version set in Options/Java/Gradle

2021-07-28 Thread Guntram Blohm (Jira)


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

Guntram Blohm commented on NETBEANS-5781:
-

Adoptopenjdk 16.0.1 on Ubuntu 20.04. Both AdoptOpenJdk and Netbeans installed 
from download, not by the Ubuntu package manager.

 

> Priming gradle build does not honor the gradle version set in 
> Options/Java/Gradle
> -
>
> Key: NETBEANS-5781
> URL: https://issues.apache.org/jira/browse/NETBEANS-5781
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.4
> Environment: Ubuntu 20.04, AdoptOpenjdk 16.0.1, Netbeans 12.4.  JDK 
> and Netbeans were installed by downloads, not by the Ubuntu package manager.
>  
>Reporter: Guntram Blohm
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: gradle, version
> Attachments: Screenshot_2021-06-15_11-31-49.png
>
>
> When opening a gradle project, Netbeans does not honor the gradle version set 
> in Tools/Options/Java/Gradle, instead, it seems to always use gradle 7.0.0.
> I have an older project that uses deprecated features, so it needs gradle 
> 4.10.2 to load. Even when I set "Use Standard Gradle Version" to "4.10.2", 
> Netbeans uses gradle 7 to load the project, decides it can't, and makes the 
> project unusable. Pressing the "hammer" button (F11) to build the project 
> correctly uses Gradle 4.10.2 and builds the project.
> Attached screenshot shows, after "reload project", how Netbeans uses Gradle 
> 7.0 even with gradle 4.10.2 selected in Options.
>  



--
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-5781) Priming gradle build does not honor the gradle version set in Options/Java/Gradle

2021-07-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-5781:
---

Quick question. What is the JDK you are running NetBeans on?

> Priming gradle build does not honor the gradle version set in 
> Options/Java/Gradle
> -
>
> Key: NETBEANS-5781
> URL: https://issues.apache.org/jira/browse/NETBEANS-5781
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.4
> Environment: Ubuntu 20.04, AdoptOpenjdk 16.0.1, Netbeans 12.4.  JDK 
> and Netbeans were installed by downloads, not by the Ubuntu package manager.
>  
>Reporter: Guntram Blohm
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: gradle, version
> Attachments: Screenshot_2021-06-15_11-31-49.png
>
>
> When opening a gradle project, Netbeans does not honor the gradle version set 
> in Tools/Options/Java/Gradle, instead, it seems to always use gradle 7.0.0.
> I have an older project that uses deprecated features, so it needs gradle 
> 4.10.2 to load. Even when I set "Use Standard Gradle Version" to "4.10.2", 
> Netbeans uses gradle 7 to load the project, decides it can't, and makes the 
> project unusable. Pressing the "hammer" button (F11) to build the project 
> correctly uses Gradle 4.10.2 and builds the project.
> Attached screenshot shows, after "reload project", how Netbeans uses Gradle 
> 7.0 even with gradle 4.10.2 selected in Options.
>  



--
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-5882) Allow to set PHP version for syntax check

2021-07-28 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto closed NETBEANS-5882.
--
Resolution: Won't Fix

> Allow to set PHP version for syntax check
> -
>
> Key: NETBEANS-5882
> URL: https://issues.apache.org/jira/browse/NETBEANS-5882
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4
>Reporter: Andreas Erhard
>Priority: Minor
>
> The possibility to set/utilize the PHP version (as selectable in the project 
> properties) for the PHP syntax check would be quite useful. Due to the fact 
> that PHP8 reserves more keywords, code which uses those e.g. in namespace or 
> for class names is marked as invalid (syntax error).
> However, those PHP files have perfectly valid PHP 7.x syntax. Due to the 
> error, working with the affected code becomes much harder (no auto-complete, 
> no spotting of real syntax-errors, ...).
> Is there some way to override the PHP version used for syntax checks? Thank 
> you!



--
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-5882) Allow to set PHP version for syntax check

2021-07-28 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-5882:


No problem.

> Then I'll schedule some time to change the class/namespace names to make our 
> code more forward-compatible with PHP8

Great!

Thank you for your understanding. Will close this.

> Allow to set PHP version for syntax check
> -
>
> Key: NETBEANS-5882
> URL: https://issues.apache.org/jira/browse/NETBEANS-5882
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code Analysis
>Affects Versions: 12.4
>Reporter: Andreas Erhard
>Priority: Minor
>
> The possibility to set/utilize the PHP version (as selectable in the project 
> properties) for the PHP syntax check would be quite useful. Due to the fact 
> that PHP8 reserves more keywords, code which uses those e.g. in namespace or 
> for class names is marked as invalid (syntax error).
> However, those PHP files have perfectly valid PHP 7.x syntax. Due to the 
> error, working with the affected code becomes much harder (no auto-complete, 
> no spotting of real syntax-errors, ...).
> Is there some way to override the PHP version used for syntax checks? Thank 
> you!



--
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-5882) Allow to set PHP version for syntax check

2021-07-28 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto updated NETBEANS-5882:
---
Component/s: (was: php - Code Analysis)
 php - Editor

> Allow to set PHP version for syntax check
> -
>
> Key: NETBEANS-5882
> URL: https://issues.apache.org/jira/browse/NETBEANS-5882
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4
>Reporter: Andreas Erhard
>Priority: Minor
>
> The possibility to set/utilize the PHP version (as selectable in the project 
> properties) for the PHP syntax check would be quite useful. Due to the fact 
> that PHP8 reserves more keywords, code which uses those e.g. in namespace or 
> for class names is marked as invalid (syntax error).
> However, those PHP files have perfectly valid PHP 7.x syntax. Due to the 
> error, working with the affected code becomes much harder (no auto-complete, 
> no spotting of real syntax-errors, ...).
> Is there some way to override the PHP version used for syntax checks? Thank 
> you!



--
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-5882) Allow to set PHP version for syntax check

2021-07-28 Thread Andreas Erhard (Jira)


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

Andreas Erhard commented on NETBEANS-5882:
--

Thank you very much for the incredibly fast response, Junichi! Then I'll 
schedule some time to change the class/namespace names to make our code more 
forward-compatible with PHP8 - which we would need to do at one point anyway. 
Just wanted to make sure I did not miss something like a hidden setting.

Best regards from Austria

Andreas

> Allow to set PHP version for syntax check
> -
>
> Key: NETBEANS-5882
> URL: https://issues.apache.org/jira/browse/NETBEANS-5882
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code Analysis
>Affects Versions: 12.4
>Reporter: Andreas Erhard
>Priority: Minor
>
> The possibility to set/utilize the PHP version (as selectable in the project 
> properties) for the PHP syntax check would be quite useful. Due to the fact 
> that PHP8 reserves more keywords, code which uses those e.g. in namespace or 
> for class names is marked as invalid (syntax error).
> However, those PHP files have perfectly valid PHP 7.x syntax. Due to the 
> error, working with the affected code becomes much harder (no auto-complete, 
> no spotting of real syntax-errors, ...).
> Is there some way to override the PHP version used for syntax checks? Thank 
> you!



--
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-5882) Allow to set PHP version for syntax check

2021-07-28 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-5882:


Well, we support the syntax of only the latest version of PHP if there is a BC 
break(e.g. "match" keyword) because we don't want to have multiple parsers.

In such a case, sooner or later, I think a user has to fix it.

 

> Allow to set PHP version for syntax check
> -
>
> Key: NETBEANS-5882
> URL: https://issues.apache.org/jira/browse/NETBEANS-5882
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code Analysis
>Affects Versions: 12.4
>Reporter: Andreas Erhard
>Priority: Minor
>
> The possibility to set/utilize the PHP version (as selectable in the project 
> properties) for the PHP syntax check would be quite useful. Due to the fact 
> that PHP8 reserves more keywords, code which uses those e.g. in namespace or 
> for class names is marked as invalid (syntax error).
> However, those PHP files have perfectly valid PHP 7.x syntax. Due to the 
> error, working with the affected code becomes much harder (no auto-complete, 
> no spotting of real syntax-errors, ...).
> Is there some way to override the PHP version used for syntax checks? Thank 
> you!



--
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-5841) NullPointerException at MarkOccurrences.computeHighlights(MarkOccurrences.java:104)

2021-07-28 Thread ASF GitHub Bot (Jira)


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

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

> NullPointerException at 
> MarkOccurrences.computeHighlights(MarkOccurrences.java:104)
> ---
>
> Key: NETBEANS-5841
> URL: https://issues.apache.org/jira/browse/NETBEANS-5841
> Project: NetBeans
>  Issue Type: Bug
>  Components: lsp
>Affects Versions: 12.4
>Reporter: Michael Küttner
>Assignee: Jan Lahoda
>Priority: Major
>  Labels: pull-request-available
> Attachments: lsp-setup.png
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> I tried to add Python language support using the language server: 
> [https://github.com/palantir/python-language-server]
> I frequently get following NPE:
> java.lang.NullPointerException
>  at 
> org.netbeans.modules.lsp.client.bindings.MarkOccurrences.computeHighlights(MarkOccurrences.java:104)
>  at 
> org.netbeans.modules.lsp.client.bindings.MarkOccurrences.run(MarkOccurrences.java:82)
>  at 
> org.netbeans.modules.lsp.client.LSPBindings.lambda$addBackgroundTask$13(LSPBindings.java:411)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  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)
>  
> The Language Server was added using Tools -> Options menu (see attached 
> Screenshot)



--
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-5882) Allow to set PHP version for syntax check

2021-07-28 Thread Andreas Erhard (Jira)
Andreas Erhard created NETBEANS-5882:


 Summary: Allow to set PHP version for syntax check
 Key: NETBEANS-5882
 URL: https://issues.apache.org/jira/browse/NETBEANS-5882
 Project: NetBeans
  Issue Type: Bug
  Components: php - Code Analysis
Affects Versions: 12.4
Reporter: Andreas Erhard


The possibility to set/utilize the PHP version (as selectable in the project 
properties) for the PHP syntax check would be quite useful. Due to the fact 
that PHP8 reserves more keywords, code which uses those e.g. in namespace or 
for class names is marked as invalid (syntax error).

However, those PHP files have perfectly valid PHP 7.x syntax. Due to the error, 
working with the affected code becomes much harder (no auto-complete, no 
spotting of real syntax-errors, ...).

Is there some way to override the PHP version used for syntax checks? Thank you!



--
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-2443) Can't start profiler

2021-07-28 Thread ASF GitHub Bot (Jira)


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

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

> Can't start profiler
> 
>
> Key: NETBEANS-2443
> URL: https://issues.apache.org/jira/browse/NETBEANS-2443
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - Attach, profiler - Base, profiler - Engine, 
> profiler - IDE
>Affects Versions: 11.0, 12.3
> Environment: Windows 10
> NetBeans 11 using Java 12 (tried with 8 also)
>Reporter: HenryDL
>Assignee: Moacir da Roza Flores
>Priority: Blocker
>  Labels: pull-request-available
> Attachments: image-2020-07-06-19-01-34-316.png, 
> image-2021-07-21-02-56-43-096.png, image-2021-07-21-02-57-38-437.png, 
> image-2021-07-21-02-58-15-148.png, image-2021-07-21-02-59-19-737.png, 
> image-2021-07-21-02-59-42-180.png, image-2021-07-21-03-01-40-283.png, 
> image-2021-07-21-03-02-51-206.png, image-2021-07-21-03-03-15-783.png, 
> image-2021-07-21-03-04-15-005.png, image-2021-07-21-03-05-35-690.png
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> I'm not able to start the NetBeans Profiler for Maven projects.
> *Recreate:*
>  # Create a new Maven Java Application using the IDE.
>  # Using the IDE add a new JFrame file (it contains a main method that simply 
> opens the a new JFrame).
>  # Right-click the new project and select _Profile_.
>  # This opens a Profiler tab. Do the calibration, then press the Profile 
> button at the top of the tab. A _Progress_ popup appears thatgets stuck on 
> the message "Connecting to the target VM...". The _Output_ tab shows a 
> message: "The syntax of the command is incorrect.".
> *Error (in Output tab):*
> {noformat}
> cd C:\_Code\TEMP_CODE\mavenproject1; "JAVA_HOME=C:\\Program 
> Files\\Java\\jdk-12" M2_HOME=C:\\_Code\\_TOOLS\\apache-maven-3.6.0 cmd /c 
> "\"\"C:\\_Code\\_TOOLS\\apache-maven-3.6.0\\bin\\mvn.cmd\" 
> -Dexec.args=\"-agentpath:\\\"C:/_Code/_TOOLS/netbeans 
> 11.0/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\_Code\\_TOOLS\\netbeans
>  11.0\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError 
> -XX:HeapDumpPath=C:\\Users\\Henry\\AppData\\Local\\NetBeans\\Cache\\11.0\\mavencachedirs\\645799279\\org-netbeans-modules-profiler
>  -classpath %classpath com.mycompany.mavenproject1.NewJFrame\" 
> -Dexec.executable=\"C:\\Program Files\\Java\\jdk-12\\bin\\java.exe\" 
> -Dmaven.ext.class.path=\"C:\\_Code\\_TOOLS\\netbeans 
> 11.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 
> process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""
> The syntax of the command is incorrect.
> {noformat}



--
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-5781) Priming gradle build does not honor the gradle version set in Options/Java/Gradle

2021-07-28 Thread Alex lewis (Jira)


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

Alex lewis commented on NETBEANS-5781:
--

I should add that I think this may be a regression as a project that runs into 
this issue in 12.4 works in 12.3.

> Priming gradle build does not honor the gradle version set in 
> Options/Java/Gradle
> -
>
> Key: NETBEANS-5781
> URL: https://issues.apache.org/jira/browse/NETBEANS-5781
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.4
> Environment: Ubuntu 20.04, AdoptOpenjdk 16.0.1, Netbeans 12.4.  JDK 
> and Netbeans were installed by downloads, not by the Ubuntu package manager.
>  
>Reporter: Guntram Blohm
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: gradle, version
> Attachments: Screenshot_2021-06-15_11-31-49.png
>
>
> When opening a gradle project, Netbeans does not honor the gradle version set 
> in Tools/Options/Java/Gradle, instead, it seems to always use gradle 7.0.0.
> I have an older project that uses deprecated features, so it needs gradle 
> 4.10.2 to load. Even when I set "Use Standard Gradle Version" to "4.10.2", 
> Netbeans uses gradle 7 to load the project, decides it can't, and makes the 
> project unusable. Pressing the "hammer" button (F11) to build the project 
> correctly uses Gradle 4.10.2 and builds the project.
> Attached screenshot shows, after "reload project", how Netbeans uses Gradle 
> 7.0 even with gradle 4.10.2 selected in Options.
>  



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