[jira] [Commented] (NETBEANS-501) Support (clone $object)->method() in PHP

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto commented on NETBEANS-501:
---

Thank you for reporting it.

Please write example code to reproduce it since next time :) Like the 
following: 
{code}
testMethod(); // OK
$example->testMethod(); // OK
(clone $example)->testMethod(); // CC doesn't work
{code}

> Support (clone $object)->method() in PHP
> 
>
> Key: NETBEANS-501
> URL: https://issues.apache.org/jira/browse/NETBEANS-501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Reporter: Varun Agrawal
>Assignee: Junichi Yamamoto
>Priority: Minor
>
> PHP supports this. While NetBeans support (new $object)->method(), it doesn't 
> support clone keyword here.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-501) Support (clone $object)->method() in PHP

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto updated NETBEANS-501:
--
Component/s: (was: php - Code)

> Support (clone $object)->method() in PHP
> 
>
> Key: NETBEANS-501
> URL: https://issues.apache.org/jira/browse/NETBEANS-501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Reporter: Varun Agrawal
>Assignee: Junichi Yamamoto
>Priority: Minor
>
> PHP supports this. While NetBeans support (new $object)->method(), it doesn't 
> support clone keyword here.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-501) Support (clone $object)->method() in PHP

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto reassigned NETBEANS-501:
-

Assignee: Junichi Yamamoto

> Support (clone $object)->method() in PHP
> 
>
> Key: NETBEANS-501
> URL: https://issues.apache.org/jira/browse/NETBEANS-501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, php - Editor
>Reporter: Varun Agrawal
>Assignee: Junichi Yamamoto
>Priority: Minor
>
> PHP supports this. While NetBeans support (new $object)->method(), it doesn't 
> support clone keyword here.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2997) Can not open files by double clicking in the OS file manager

2019-08-16 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga commented on NETBEANS-2997:
-

Discussion has started on Apache NetBeans dev mailing list:

https://lists.apache.org/thread.html/85d3f3779e4532e99392b7d8bd7e244f53d9bd58fd260f251c605132@%3Cdev.netbeans.apache.org%3E

> Can not open files by double clicking in the OS file manager
> 
>
> Key: NETBEANS-2997
> URL: https://issues.apache.org/jira/browse/NETBEANS-2997
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Reporter: Geertjan Wielenga
>Priority: Major
>
> https://netbeans.org/bugzilla/show_bug.cgi?id=138943



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2997) Can not open files by double clicking in the OS file manager

2019-08-16 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga commented on NETBEANS-2997:
-

https://youtu.be/zBT_tVQialI is a workaround.

Two relevant GitHub repos:

https://github.com/bunam/NetBeans-Open/blob/master/NetBeans-Open.scpt

http://www.johnkramlich.com/blog/2011/06/01/launch-netbeans-when-opening-files-in-the-finder/



> Can not open files by double clicking in the OS file manager
> 
>
> Key: NETBEANS-2997
> URL: https://issues.apache.org/jira/browse/NETBEANS-2997
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Reporter: Geertjan Wielenga
>Priority: Major
>
> https://netbeans.org/bugzilla/show_bug.cgi?id=138943



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2993) PHP 7.1 generated setter return void

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto resolved NETBEANS-2993.

   Resolution: Fixed
Fix Version/s: 11.2

Thank you for reporting it. Fixed.

> PHP 7.1 generated setter return void
> 
>
> Key: NETBEANS-2993
> URL: https://issues.apache.org/jira/browse/NETBEANS-2993
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Editor
>Reporter: Tomáš Procházka
>Assignee: Junichi Yamamoto
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Add "void" return type for generated setter in PHP >7.1 when setter is not 
> fluent.
> Example:
> {code:java}
>  public function setFoo(?string $foo): void {
> $this->foo = $foo;
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2992) Code completion does not work well inside Closures

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto resolved NETBEANS-2992.

   Resolution: Fixed
Fix Version/s: 11.2

Thank you for reporting it. Fixed.

> Code completion does not work well inside Closures
> --
>
> Key: NETBEANS-2992
> URL: https://issues.apache.org/jira/browse/NETBEANS-2992
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 11.1
>Reporter: Czukowski
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> PHP code completion does not offer a method of an object member, eg 
> {{$this->service->process()}} when invoked from within a closure. It does 
> offer the object member itself ({{$this->service}}) though.
> See a minimal gist with a code example to reproduce the issue:
> https://gist.github.com/czukowski/8181ff90a7271a3f9bab9c5dc83a62a1



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2997) Can not open files by double clicking in the OS file manager

2019-08-16 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga commented on NETBEANS-2997:
-

According to the issue referenced in the description above: "the fact that we 
are using a shell script to start netbeans prohibits us from opening the file 
from finder. The shell script blocks the OS from calling the java event 
callback."

> Can not open files by double clicking in the OS file manager
> 
>
> Key: NETBEANS-2997
> URL: https://issues.apache.org/jira/browse/NETBEANS-2997
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Reporter: Geertjan Wielenga
>Priority: Major
>
> https://netbeans.org/bugzilla/show_bug.cgi?id=138943



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2998) com.sun.tools.javac.util.CouplingAbort

2019-08-16 Thread Shevek (JIRA)
Shevek created NETBEANS-2998:


 Summary: com.sun.tools.javac.util.CouplingAbort
 Key: NETBEANS-2998
 URL: https://issues.apache.org/jira/browse/NETBEANS-2998
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.1
Reporter: Shevek


FYI. I don't care if you don't, but here it is. I get quite a few of these. 
Feel free to close if unimportant.

com.sun.tools.javac.util.CouplingAbort
at 
org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.loadTreeFor(TreeLoader.java:215)
at 
com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:813)
at 
com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:839)
at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:418)
at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:408)
at 
org.netbeans.lib.nbjavac.services.NBJavacTrees.getPath(NBJavacTrees.java:71)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolveElementValue(ArithmeticUtilities.java:442)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolve(ArithmeticUtilities.java:490)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitIdentifier(ArithmeticUtilities.java:385)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitIdentifier(ArithmeticUtilities.java:197)
at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2337)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:197)
at 
com.sun.source.util.TreeScanner.visitParenthesized(TreeScanner.java:599)
at com.sun.tools.javac.tree.JCTree$JCParens.accept(JCTree.java:1940)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:234)
at 
org.netbeans.modules.java.hints.ArithmeticUtilities.compute(ArithmeticUtilities.java:178)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitConditional(InfiniteRecursion.java:463)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitIf(InfiniteRecursion.java:454)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitIf(InfiniteRecursion.java:227)
at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1506)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:285)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:227)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:298)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:227)
at com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:249)
at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1044)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
at 
org.netbeans.modules.java.hints.bugs.InfiniteRecursion.run(InfiniteRecursion.java:152)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:676)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
at 

[jira] [Created] (NETBEANS-2997) Can not open files by double clicking in the OS file manager

2019-08-16 Thread Geertjan Wielenga (JIRA)
Geertjan Wielenga created NETBEANS-2997:
---

 Summary: Can not open files by double clicking in the OS file 
manager
 Key: NETBEANS-2997
 URL: https://issues.apache.org/jira/browse/NETBEANS-2997
 Project: NetBeans
  Issue Type: Bug
Reporter: Geertjan Wielenga


https://netbeans.org/bugzilla/show_bug.cgi?id=138943



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2997) Can not open files by double clicking in the OS file manager

2019-08-16 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga updated NETBEANS-2997:

Component/s: php - Editor

> Can not open files by double clicking in the OS file manager
> 
>
> Key: NETBEANS-2997
> URL: https://issues.apache.org/jira/browse/NETBEANS-2997
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Reporter: Geertjan Wielenga
>Priority: Major
>
> https://netbeans.org/bugzilla/show_bug.cgi?id=138943



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-501) Support (clone $object)->method() in PHP

2019-08-16 Thread JIRA


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

Vítězslav Dvořák updated NETBEANS-501:
--
Description: PHP supports this. While NetBeans support (new 
$object)->method(), it doesn't support clone keyword here.  (was: PHP supports 
this. While NetBeans support (new $object)->method(), it doesn't support clone 
keyboard here.)

> Support (clone $object)->method() in PHP
> 
>
> Key: NETBEANS-501
> URL: https://issues.apache.org/jira/browse/NETBEANS-501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, php - Editor
>Reporter: Varun Agrawal
>Priority: Minor
>
> PHP supports this. While NetBeans support (new $object)->method(), it doesn't 
> support clone keyword here.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2956) NullPointerException during Import Classes operation after pasting Java code into Editor

2019-08-16 Thread Travis (JIRA)


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

Travis commented on NETBEANS-2956:
--

I'm aware that my previous comment showed a different exception than the one in 
the original description, and that this may represent two unrelated bugs.

This is about the 5th or 6th random exception I've seen after we migrated our 
project from Oracle JDK 8 to OpenJDK 12.  Netbeans was my favorite stable IDE 
prior to that.  Now I'm just getting more and more discouraged about the number 
of scary and complex looking exceptions that I'm getting while attempting to do 
my normal work.  And the various exceptions are totally blocking me from using 
the IDE as well.  I'm forced to use another IDE for the time being.

But I am still willing to continue to spent a small portion of my time 
contributing to the Netbeans project by attempting to provide helpful tickets 
about the problems I'm getting.

 

That's all the time that I have for this today, but later I will still try to 
reduce my project down to a tiny obfuscated code example that reproduces one of 
the exceptions mentioned here.

> NullPointerException during Import Classes operation after pasting Java code 
> into Editor
> 
>
> Key: NETBEANS-2956
> URL: https://issues.apache.org/jira/browse/NETBEANS-2956
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.0, 11.1
> Environment: Project is being built using OpenJDK 12
> Same on Windows 10 and Linux
> Same when Netbeans is running on either JDK 8 or OpenJDK 12
> Same on Netbeans 11.0 and Netbeans 11.1 (both with nb-javac 1.6 installed)
> Same with new built-in Gradle plugin, or old Gradle Support plugin 2.0.0
> Gradle 5.5
>Reporter: Travis
>Assignee: ARUNAVA SINHA
>Priority: Major
>
> I'm building my Java project using OpenJDK 12 and Netbeans 11.1.  Everything 
> was working fine with the same project when it was built on JDK 8.  We 
> recently updated to JDK 12 and this problem appeared immediately at that time.
>  
> The problem happens reliably whenever I copy-paste code from one file to 
> another, and the code requires several imports to be added to the destination 
> file.  This causes the "Import Classes" dialog to appear.  When I hit "OK" 
> button there, I immediately get the NullPointerException shown below.  After 
> the exception, the code is still pasted, but the necessary import lines do 
> not get added.  Furthermore, manually running "Source:Fix Imports..." 
> afterward also fails to add the necessary imports.
> This bug makes the IDE pretty unusable for ongoing development work.  This is 
> forcing me and others on my team, sadly, to use a different IDE for now, as 
> we have found no workaround yet.
>  
> java.lang.NullPointerException
>  at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:334)
>  at 
> org.netbeans.lib.nbjavac.services.NBResolve.isAccessible(NBResolve.java:72)
>  at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:379)
>  at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:441)
>  at 
> org.netbeans.lib.nbjavac.services.NBResolve.isAccessible(NBResolve.java:66)
>  at com.sun.tools.javac.api.JavacTrees.isAccessible(JavacTrees.java:913)
>  at 
> org.netbeans.api.java.source.GeneratorUtilities.getImportedElement(GeneratorUtilities.java:1826)
>  at 
> org.netbeans.api.java.source.GeneratorUtilities.addImports(GeneratorUtilities.java:1173)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$1.run(ClipboardHandler.java:159)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$1.run(ClipboardHandler.java:126)
>  at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:673)
>  at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:663)
>  at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:502)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>  at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
>  at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>  at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>  at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>  at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>  at 
> 

[jira] [Commented] (NETBEANS-2956) NullPointerException during Import Classes operation after pasting Java code into Editor

2019-08-16 Thread Travis (JIRA)


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

Travis commented on NETBEANS-2956:
--

I completely wiped out Netbeans 11.1 from my system (installation, cache, and 
personal settings).

Then I did a fresh installation from netbeans-11.1-bin.zip on my Windows 10 
machine.  This machine has only OpenJDK 12, OpenJFX 12, and Gradle 5.5 
installed currently, to avoid any confusion about what software versions are 
being used.

When I started Netbeans, I did not allow it to import my settings from prior 
version, and did not allow it to install any additional plugins (i.e. nb-javac 
is definitely not installed).

This is the most vanilla installation I know how to do, and still be able to 
open my private large multi-project to test for the same exception.

I also did "gradle --stop" and deleted the system gradle caches, and the 
project's .gradle folder, to avoid any pollution from prior runs through Gradle.

 

Netbeans was able to open the projects without generating any exceptions.  I 
didn't not interact the the GUI during this time (i.e. no editor windows open, 
navigator pane not present, etc), and only the Projects browser and 
Notifications panes were present and visible.  The background scan 
automatically started, and ran to completion, but partway through the run, the 
following exception appeared this time: (the "REDACTED" was a line of code from 
my project)

java.lang.AssertionError: Analyzer error when processing: 
 at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:162)
 at jdk.compiler/com.sun.tools.javac.comp.Analyzer.doAnalysis(Analyzer.java:568)
 at jdk.compiler/com.sun.tools.javac.comp.Analyzer$2.flush(Analyzer.java:539)
 at jdk.compiler/com.sun.tools.javac.comp.Analyzer.flush(Analyzer.java:576)
 at 
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1407)
 at 
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1375)
 at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl$1.process(JavacTaskImpl.java:396)
 at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:506)
 at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:399)
[catch] at 
org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:245)
 at 
org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
 at 
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
 at 
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
 at 
org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork$4.call(RepositoryUpdater.java:5714)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork$4.call(RepositoryUpdater.java:5622)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$4.run(RepositoryUpdater.java:2127)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2123)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2104)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1500(RepositoryUpdater.java:136)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:5749)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:5419)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:5038)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5821)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420)
 at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183)
 at 

[netbeans] branch master updated: [NETBEANS-2992] Code completion does not work well inside Closures

2019-08-16 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 acdaf52  [NETBEANS-2992] Code completion does not work well inside 
Closures
 new 2f16e2e  Merge pull request #1434 from junichi11/netbeans-2992
acdaf52 is described below

commit acdaf52d880133c6c9153c6caecb00f22cde47ff
Author: Junichi Yamamoto 
AuthorDate: Fri Aug 16 21:35:45 2019 +0900

[NETBEANS-2992] Code completion does not work well inside Closures

- Change the current scope when `$this` is used in anonymous functions
---
 .../modules/php/editor/model/ModelUtils.java   | 12 
 .../php/editor/model/impl/ModelVisitor.java| 14 -
 .../php/editor/model/impl/VariousUtils.java| 21 ++-
 .../testfiles/completion/lib/nb2992/nb2992.php | 70 ++
 .../lib/nb2992/nb2992.php.testNb2992_01.completion |  4 ++
 .../lib/nb2992/nb2992.php.testNb2992_02.completion |  4 ++
 .../lib/nb2992/nb2992.php.testNb2992_03.completion |  4 ++
 .../issue247082.php.testForKeywords.completion |  1 -
 .../completion/PHPCodeCompletionNb2992Test.java| 58 ++
 9 files changed, 185 insertions(+), 3 deletions(-)

diff --git 
a/php/php.editor/src/org/netbeans/modules/php/editor/model/ModelUtils.java 
b/php/php.editor/src/org/netbeans/modules/php/editor/model/ModelUtils.java
index 869eced..d79558f 100644
--- a/php/php.editor/src/org/netbeans/modules/php/editor/model/ModelUtils.java
+++ b/php/php.editor/src/org/netbeans/modules/php/editor/model/ModelUtils.java
@@ -631,4 +631,16 @@ public final class ModelUtils {
 }
 return result;
 }
+
+/**
+ * Check whether the scope is anonymous function scope.
+ *
+ * @param scope the scope
+ * @return {@code true} if the scope is anonymous function scope,
+ * {@code false} otherwise
+ */
+public static boolean isAnonymousFunction(Scope scope) {
+return scope instanceof FunctionScope
+&& ((FunctionScope) scope).isAnonymous();
+}
 }
diff --git 
a/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/ModelVisitor.java
 
b/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/ModelVisitor.java
index 90d6a7a..c9e38ae 100644
--- 
a/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/ModelVisitor.java
+++ 
b/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/ModelVisitor.java
@@ -760,9 +760,21 @@ public final class ModelVisitor extends 
DefaultTreePathVisitor {
 return;
 }
 Scope scope = modelBuilder.getCurrentScope();
+ASTNodeInfo varInfo = ASTNodeInfo.create(node);
+// NETBEANS-2992
+// when $this is used in anonymous function, change the current scope
+if (ModelUtils.isAnonymousFunction(scope)
+&& "$this".equals(varInfo.getName())) { // NOI18N
+Scope inScope = scope.getInScope();
+while (!(inScope instanceof MethodScope) && inScope instanceof 
FunctionScope) {
+inScope = inScope.getInScope();
+}
+if (inScope instanceof MethodScope) {
+scope = inScope;
+}
+}
 prepareVariable(node, scope);
 if (scope instanceof VariableNameFactory) {
-ASTNodeInfo varInfo = ASTNodeInfo.create(node);
 if (scope instanceof MethodScope && 
"$this".equals(varInfo.getName())) { //NOI18N
 scope = scope.getInScope();
 }
diff --git 
a/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/VariousUtils.java
 
b/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/VariousUtils.java
index 432dce8..a6dd8c9 100644
--- 
a/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/VariousUtils.java
+++ 
b/php/php.editor/src/org/netbeans/modules/php/editor/model/impl/VariousUtils.java
@@ -593,7 +593,7 @@ public final class VariousUtils {
 || 
(operation.startsWith(VariousUtils.ARRAY_TYPE_PREFIX))) {
 Set newRecentTypes = new HashSet<>();
 String varName = frag;
-VariableName var = 
ModelUtils.getFirst(varScope.getDeclaredVariables(), varName);
+VariableName var = getVariableName(varScope, varName);
 if (var != null) {
 if (i + 2 < len && 
VariousUtils.FIELD_TYPE_PREFIX.startsWith(fragments[i + 1])) {
 fldVarStack.push(var);
@@ -684,6 +684,25 @@ public final class VariousUtils {
 return recentTypes;
 }
 
+@CheckForNull
+private static VariableName getVariableName(final VariableScope varScope, 
String varName) {
+VariableName var = 
ModelUtils.getFirst(varScope.getDeclaredVariables(), varName);
+   

[netbeans] branch master updated: [NETBEANS-2993] PHP 7.1: Add void return type to generated setter

2019-08-16 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 d46f2ed  [NETBEANS-2993] PHP 7.1: Add void return type to generated 
setter
 new 9b15c4e  Merge pull request #1433 from junichi11/netbeans-2993
d46f2ed is described below

commit d46f2edf5008f7746655b5562d922d84e816f860
Author: Junichi Yamamoto 
AuthorDate: Fri Aug 16 07:54:47 2019 +0900

[NETBEANS-2993] PHP 7.1: Add void return type to generated setter

- Add void return type when fluent is disabled
---
 php/php.api.phpmodule/manifest.mf  |  2 +-
 .../org/netbeans/modules/php/api/PhpVersion.java   | 11 +++
 php/php.editor/nbproject/project.properties|  2 +-
 php/php.editor/nbproject/project.xml   |  2 +-
 .../codegen/SinglePropertyMethodCreator.java   | 13 ++--
 testTypedPropertiesSetter_PHP70Fluent.codegen} | 24 +--
 ...ter.php.testTypedPropertiesSetter_PHP71.codegen | 36 +++---
 testTypedPropertiesSetter_PHP71Fluent.codegen} | 18 +++
 ...ter.php.testTypedPropertiesSetter_PHP74.codegen | 36 +++---
 .../SelectedPropertyMethodsCreatorTest.java| 14 +
 10 files changed, 114 insertions(+), 44 deletions(-)

diff --git a/php/php.api.phpmodule/manifest.mf 
b/php/php.api.phpmodule/manifest.mf
index cd7b570..b7d4bda 100644
--- a/php/php.api.phpmodule/manifest.mf
+++ b/php/php.api.phpmodule/manifest.mf
@@ -1,4 +1,4 @@
 Manifest-Version: 1.0
 OpenIDE-Module: org.netbeans.modules.php.api.phpmodule
 OpenIDE-Module-Localizing-Bundle: 
org/netbeans/modules/php/api/phpmodule/resources/Bundle.properties
-OpenIDE-Module-Specification-Version: 2.67
+OpenIDE-Module-Specification-Version: 2.68
diff --git 
a/php/php.api.phpmodule/src/org/netbeans/modules/php/api/PhpVersion.java 
b/php/php.api.phpmodule/src/org/netbeans/modules/php/api/PhpVersion.java
index ebcd426..8d6f3cf 100644
--- a/php/php.api.phpmodule/src/org/netbeans/modules/php/api/PhpVersion.java
+++ b/php/php.api.phpmodule/src/org/netbeans/modules/php/api/PhpVersion.java
@@ -159,6 +159,17 @@ public enum PhpVersion {
 }
 
 /**
+ * Check whether this version supports a void return type.
+ *
+ * @return {@code true} if this version supports a void return type,
+ * {@code false} otherwise
+ * @since 2.68
+ */
+public boolean hasVoidReturnType() {
+return this.compareTo(PhpVersion.PHP_71) >= 0;
+}
+
+/**
  * Check whether this version supports typed properties.
  *
  * @return {@code true} if this version supports typed properties,
diff --git a/php/php.editor/nbproject/project.properties 
b/php/php.editor/nbproject/project.properties
index 6beb2a9..534068c 100644
--- a/php/php.editor/nbproject/project.properties
+++ b/php/php.editor/nbproject/project.properties
@@ -20,7 +20,7 @@ build.compiler=extJavac
 nbjavac.ignore.missing.enclosing=**/CUP$ASTPHP5Parser$actions.class
 javac.compilerargs=-J-Xmx512m
 nbm.needs.restart=true
-spec.version.base=1.82.0
+spec.version.base=1.83.0
 release.external/predefined_vars-1.0.zip=docs/predefined_vars.zip
 sigtest.gen.fail.on.error=false
 
diff --git a/php/php.editor/nbproject/project.xml 
b/php/php.editor/nbproject/project.xml
index e662367..c26f3b0 100644
--- a/php/php.editor/nbproject/project.xml
+++ b/php/php.editor/nbproject/project.xml
@@ -304,7 +304,7 @@
 
 
 
-2.67
+2.68
 
 
 
diff --git 
a/php/php.editor/src/org/netbeans/modules/php/editor/codegen/SinglePropertyMethodCreator.java
 
b/php/php.editor/src/org/netbeans/modules/php/editor/codegen/SinglePropertyMethodCreator.java
index 5eb3288..545bf7f 100644
--- 
a/php/php.editor/src/org/netbeans/modules/php/editor/codegen/SinglePropertyMethodCreator.java
+++ 
b/php/php.editor/src/org/netbeans/modules/php/editor/codegen/SinglePropertyMethodCreator.java
@@ -22,8 +22,8 @@ import java.util.ArrayList;
 import org.netbeans.modules.php.api.PhpVersion;
 import org.netbeans.modules.php.editor.api.elements.BaseFunctionElement;
 import org.netbeans.modules.php.editor.api.elements.MethodElement;
-
 import static org.netbeans.modules.php.editor.codegen.CGSGenerator.NEW_LINE;
+import org.netbeans.modules.php.editor.model.impl.Type;
 
 /**
  *
@@ -129,8 +129,9 @@ public interface SinglePropertyMethodCreator {
 final class SingleSetterCreator extends SinglePropertyMethodCreatorImpl {
 private static final String PARAM_TYPE = "${PARAM_TYPE}"; //NOI18N
 private static final String FLUENT_SETTER = "${FluentSetter}"; //NOI18N
+private static final String RETURN_TYPE = "${ReturnType}"; // NOI18N
 private static final String SETTER_TEMPLATE
-= 

[jira] [Commented] (NETBEANS-2994) PHP - formatting of unary operators adds extra space

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto commented on NETBEANS-2994:


Reproducible. Thank you for reporting it.

> PHP - formatting of unary operators adds extra space
> 
>
> Key: NETBEANS-2994
> URL: https://issues.apache.org/jira/browse/NETBEANS-2994
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Formatting  Indentation
>Affects Versions: 11.1
>Reporter: Tomáš Procházka
>Priority: Minor
>
> Formatting of unary operators in PHP adds extra space around operator, where 
> it is not wanted.
> Input:
> {code:java}
>  $noSpace++;
> $spaces   ++;
> $afterIndexNoSpace[ 1 ]++;
> $afterIndexSpaces[ 1 ]   ++;
> ++$noSpace;
> ++   $spaces;
> ++  $afterIndex[ 1 ];{code}
>  # In PHP project properties set Formatting - Use project specific options.
>  # Language: PHP, Category: Spaces
>  # Uncheck Around Operators - Unary Operators
>  # Format code
> Actual result:
> {code:java}
>  $noSpace++; // OK
> $spaces ++; // Still one space left
> $afterIndexNoSpace[ 1 ] ++; // Space is added before ++
> $afterIndexSpaces[ 1 ] ++; // Still one space left before ++
> ++$noSpace;
> ++$spaces;
> ++$afterIndex[ 1 ];
> {code}
> Expected result:
> {code:java}
>  $noSpace++;
> $spaces++;
> $afterIndexNoSpace[ 1 ]++;
> $afterIndexSpaces[ 1 ]++;
> ++$noSpace;
> ++$spaces;
> ++$afterIndex[ 1 ];
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2994) PHP - formatting of unary operators adds extra space

2019-08-16 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto reassigned NETBEANS-2994:
--

Assignee: Junichi Yamamoto

> PHP - formatting of unary operators adds extra space
> 
>
> Key: NETBEANS-2994
> URL: https://issues.apache.org/jira/browse/NETBEANS-2994
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Formatting  Indentation
>Affects Versions: 11.1
>Reporter: Tomáš Procházka
>Assignee: Junichi Yamamoto
>Priority: Minor
>
> Formatting of unary operators in PHP adds extra space around operator, where 
> it is not wanted.
> Input:
> {code:java}
>  $noSpace++;
> $spaces   ++;
> $afterIndexNoSpace[ 1 ]++;
> $afterIndexSpaces[ 1 ]   ++;
> ++$noSpace;
> ++   $spaces;
> ++  $afterIndex[ 1 ];{code}
>  # In PHP project properties set Formatting - Use project specific options.
>  # Language: PHP, Category: Spaces
>  # Uncheck Around Operators - Unary Operators
>  # Format code
> Actual result:
> {code:java}
>  $noSpace++; // OK
> $spaces ++; // Still one space left
> $afterIndexNoSpace[ 1 ] ++; // Space is added before ++
> $afterIndexSpaces[ 1 ] ++; // Still one space left before ++
> ++$noSpace;
> ++$spaces;
> ++$afterIndex[ 1 ];
> {code}
> Expected result:
> {code:java}
>  $noSpace++;
> $spaces++;
> $afterIndexNoSpace[ 1 ]++;
> $afterIndexSpaces[ 1 ]++;
> ++$noSpace;
> ++$spaces;
> ++$afterIndex[ 1 ];
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2992) Code completion does not work well inside Closures

2019-08-16 Thread ASF GitHub Bot (JIRA)


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

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

> Code completion does not work well inside Closures
> --
>
> Key: NETBEANS-2992
> URL: https://issues.apache.org/jira/browse/NETBEANS-2992
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 11.1
>Reporter: Czukowski
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: pull-request-available
>
> PHP code completion does not offer a method of an object member, eg 
> {{$this->service->process()}} when invoked from within a closure. It does 
> offer the object member itself ({{$this->service}}) though.
> See a minimal gist with a code example to reproduce the issue:
> https://gist.github.com/czukowski/8181ff90a7271a3f9bab9c5dc83a62a1



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2993) PHP 7.1 generated setter return void

2019-08-16 Thread ASF GitHub Bot (JIRA)


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

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

> PHP 7.1 generated setter return void
> 
>
> Key: NETBEANS-2993
> URL: https://issues.apache.org/jira/browse/NETBEANS-2993
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Editor
>Reporter: Tomáš Procházka
>Assignee: Junichi Yamamoto
>Priority: Minor
>  Labels: pull-request-available
>
> Add "void" return type for generated setter in PHP >7.1 when setter is not 
> fluent.
> Example:
> {code:java}
>  public function setFoo(?string $foo): void {
> $this->foo = $foo;
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2377) "Find usage" functionality not available

2019-08-16 Thread r0ck3r (JIRA)


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

r0ck3r commented on NETBEANS-2377:
--

I had same issue, but found solution, that worked for me. Go to

Menu Bar > Tools > Plugins > Installed > Enable checkbox beside PHP > Press 
Activate button

Now it must work

> "Find usage" functionality not available
> 
>
> Key: NETBEANS-2377
> URL: https://issues.apache.org/jira/browse/NETBEANS-2377
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, php - Editor
>Affects Versions: 11.0
>Reporter: Silviu
>Priority: Major
> Attachments: MissingFindUsage.mp4, netbeans-2377-screenshot.png
>
>
> I did a fresh "install" of NB 11.0 on my Kubuntu machine, and the "find 
> usage" functionality seems to be missing from the IDE. When right-clicking a 
> class/method, there is no "find usages" menu option. Alt-F7 (the default 
> shortcut) does not work too.
> Works as it should in NB 10.0



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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: Avoid accessing network by using local copy of xml.xsd as other javaee*.xsd files do

2019-08-16 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

jtulach 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 8371e1c  Avoid accessing network by using local copy of xml.xsd as 
other javaee*.xsd files do
 new ca51707  Merge pull request #1432 from JaroslavTulach/master
8371e1c is described below

commit 8371e1ca38b52c1bcb007aca6c11f3bebd4efca6
Author: Jaroslav Tulach 
AuthorDate: Fri Aug 16 10:36:52 2019 +0200

Avoid accessing network by using local copy of xml.xsd as other javaee*.xsd 
files do
---
 .../src/org/netbeans/modules/j2ee/dd/impl/resources/javaee_8.xsd| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/resources/javaee_8.xsd
 
b/enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/resources/javaee_8.xsd
index 72b53f5..610e55f 100644
--- 
a/enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/resources/javaee_8.xsd
+++ 
b/enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/resources/javaee_8.xsd
@@ -73,7 +73,7 @@
   
 
   http://www.w3.org/XML/1998/namespace;
-  schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+  schemaLocation="xml.xsd"/>
 
   
 


-
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-2897) Stackoverflow while indexing node project

2019-08-16 Thread Rural Hunter (JIRA)


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

Rural Hunter commented on NETBEANS-2897:


I got a similar exception when opening a nodejs project. This is the error  
data:
{code:java}
// code placeholder

  2019-08-16T14:48:31
  1565938111941
  557
  900
  23
  
    java.lang.StackOverflowError
    
  org.openide.util.lookup.AbstractLookup
  lookupItem
  402
  ${netbeans.home}lib/org-openide-util-lookup.jar
    
    
  org.openide.util.lookup.AbstractLookup
  lookup
  396
  ${netbeans.home}lib/org-openide-util-lookup.jar
    
    
  org.openide.util.lookup.ProxyLookup
  lookup
  197
  ${netbeans.home}lib/org-openide-util-lookup.jar
    
    
  org.netbeans.modules.javascript2.model.JsElementImpl
  isInternalFile
  194
  
${netBeansDir}modules/org-netbeans-modules-javascript2-model.jar
    
    
  org.netbeans.modules.javascript2.model.JsElementImpl
  isPlatform
  188
  
${netBeansDir}modules/org-netbeans-modules-javascript2-model.jar
    
    
  
org.netbeans.modules.javascript2.model.api.IndexedElement$Flag
  getFlag
  387
  
${netBeansDir}modules/org-netbeans-modules-javascript2-model.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  createDocument
  121
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  221
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
    
  org.netbeans.modules.javascript2.editor.index.JsIndexer
  storeObject
  229
  
${netBeansDir}modules/org-netbeans-modules-javascript2-editor.jar
    
..
{code}

> Stackoverflow while indexing node project
> -
>
> Key: NETBEANS-2897
> URL: https://issues.apache.org/jira/browse/NETBEANS-2897
> Project: NetBeans
>  Issue Type: Bug
>  Components: javascript - Node.js
>Affects Versions: 11.1
>Reporter: Ruslan Lopez Carro
>Priority: Major
> Attachments: errorlog.log, uilog.xml
>
>
> Relevant part of the trace:
> {code:java}
> java.lang.StackOverflowError
>   at java.base/java.util.WeakHashMap.getTable(WeakHashMap.java:350)
>   at java.base/java.util.WeakHashMap.get(WeakHashMap.java:398)
>   at 
> org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:121)
>   at 
> org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:402)
>   at 
> org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:396)
>   at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:197)
>   at 
> org.netbeans.modules.javascript2.model.JsElementImpl.isInternalFile(JsElementImpl.java:194)
>   at 
> org.netbeans.modules.javascript2.model.JsElementImpl.isPlatform(JsElementImpl.java:188)
>   at 
> org.netbeans.modules.javascript2.model.api.IndexedElement$Flag.getFlag(IndexedElement.java:387)
>   at 
> org.netbeans.modules.javascript2.editor.index.JsIndexer.createDocument(JsIndexer.java:121)
>   at 
> org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:221)
>   at 
> org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:239)
>   at 
> org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229)
>   at 
> org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229)
>   at 
> org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229)
>   at 
> 

[jira] [Created] (NETBEANS-2995) Unusable slow when editing YAML files

2019-08-16 Thread Thomas McWork (JIRA)
Thomas McWork created NETBEANS-2995:
---

 Summary: Unusable slow when editing YAML files
 Key: NETBEANS-2995
 URL: https://issues.apache.org/jira/browse/NETBEANS-2995
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.1, 11.0, 8.2
 Environment: - Intel Core i5 processor with 8 GB of RAM and an SSD 
hard disk
- Xubuntu 18.04.3
- OpenJDK 8 + 11
Reporter: Thomas McWork


My Maven based Java EE web project also consist of YAML files which contain the 
OpenAPI specification. As soon as I start editing one of these YAML files the 
IDE is getting incredibly unusable slow. It's enough to only add a single 
character. While being in this close to freeze condition I can see that the 
view Navigator window is cyclical scrolling from the top to the bottom. After a 
certain amount of time (maybe a minute) everything seems to be fine again and 
the IDE gets responsible again. I haven't encountered any other performance 
bottlenecks on my development machine.

 

Also I couldn't see any related Exception in the IDE log.

 

I'm happy to provide anything which might help to track down / solve this 
problem!



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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