[jira] [Commented] (NETBEANS-1773) autocomplete improving

2020-02-03 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-1773:


[~tic64] Please don't change the priority. (As Matthias wrote, this is not a 
release blocker)

Please also attach example codes if possible.

Maybe, actual steps are better/readable than long sentences.

e.g. 
 # Open the attached file
 # Go *** line
 # Run code completion

Expected result: ...

Actual result: ...

> autocomplete improving
> --
>
> Key: NETBEANS-1773
> URL: https://issues.apache.org/jira/browse/NETBEANS-1773
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Editor
>Affects Versions: 8.2, 9.0
>Reporter: Marcos Vinicius Soares Souza
>Assignee: Marcos Vinicius Soares Souza
>Priority: Major
> Attachments: no-this.gif
>
>
> Is it possible to fix some bugs in PHP autocomplete in netbens?
> The problem I identified was the following: I created a config.php file in my 
> project and within that file I created a PDO type object.
> Soon after I created another file called index.php and I imported the file 
> config.php
> through of comand "require" into index.php.
> The problem occurs when I call the PDO methods in the index.php file. 
> Netbeans does not show me the methods available in the class, so I have to 
> type everything manually.
> If possible, also leave the autocomplete better, making it necessary to 
> insert the "$" only once in the variable declaration, so that programmers 
> can, for example, declare a variable "$ a" and then call it just by typing 
> "a", just like in PHPStorm.
> If possible too, make the autocomplete work perfectly in .class files. 
> Generally in my PHP projects I use the .class extension in my classes to 
> differentiate from other .php files that are not classes. But autocomplete 
> does not work perfectly on these file types, for example, if I declare a 
> variable in a .class file, I will not be able to call it through autocomplete
> even with these problems I can not leave netbeans, I really like this IDE and 
> I will like it much more if these problems are solved.
> Thank you, for you are giving continuity to the project.



--
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-1773) autocomplete improving

2020-02-03 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto updated NETBEANS-1773:
---
Priority: Major  (was: Blocker)

> autocomplete improving
> --
>
> Key: NETBEANS-1773
> URL: https://issues.apache.org/jira/browse/NETBEANS-1773
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Editor
>Affects Versions: 8.2, 9.0
>Reporter: Marcos Vinicius Soares Souza
>Assignee: Marcos Vinicius Soares Souza
>Priority: Major
> Attachments: no-this.gif
>
>
> Is it possible to fix some bugs in PHP autocomplete in netbens?
> The problem I identified was the following: I created a config.php file in my 
> project and within that file I created a PDO type object.
> Soon after I created another file called index.php and I imported the file 
> config.php
> through of comand "require" into index.php.
> The problem occurs when I call the PDO methods in the index.php file. 
> Netbeans does not show me the methods available in the class, so I have to 
> type everything manually.
> If possible, also leave the autocomplete better, making it necessary to 
> insert the "$" only once in the variable declaration, so that programmers 
> can, for example, declare a variable "$ a" and then call it just by typing 
> "a", just like in PHPStorm.
> If possible too, make the autocomplete work perfectly in .class files. 
> Generally in my PHP projects I use the .class extension in my classes to 
> differentiate from other .php files that are not classes. But autocomplete 
> does not work perfectly on these file types, for example, if I declare a 
> variable in a .class file, I will not be able to call it through autocomplete
> even with these problems I can not leave netbeans, I really like this IDE and 
> I will like it much more if these problems are solved.
> Thank you, for you are giving continuity to the project.



--
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-1773) autocomplete improving

2020-02-03 Thread Marcos Vinicius Soares Souza (Jira)


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

Marcos Vinicius Soares Souza updated NETBEANS-1773:
---
Priority: Blocker  (was: Major)

> autocomplete improving
> --
>
> Key: NETBEANS-1773
> URL: https://issues.apache.org/jira/browse/NETBEANS-1773
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Editor
>Affects Versions: 8.2, 9.0
>Reporter: Marcos Vinicius Soares Souza
>Assignee: Marcos Vinicius Soares Souza
>Priority: Blocker
> Attachments: no-this.gif
>
>
> Is it possible to fix some bugs in PHP autocomplete in netbens?
> The problem I identified was the following: I created a config.php file in my 
> project and within that file I created a PDO type object.
> Soon after I created another file called index.php and I imported the file 
> config.php
> through of comand "require" into index.php.
> The problem occurs when I call the PDO methods in the index.php file. 
> Netbeans does not show me the methods available in the class, so I have to 
> type everything manually.
> If possible, also leave the autocomplete better, making it necessary to 
> insert the "$" only once in the variable declaration, so that programmers 
> can, for example, declare a variable "$ a" and then call it just by typing 
> "a", just like in PHPStorm.
> If possible too, make the autocomplete work perfectly in .class files. 
> Generally in my PHP projects I use the .class extension in my classes to 
> differentiate from other .php files that are not classes. But autocomplete 
> does not work perfectly on these file types, for example, if I declare a 
> variable in a .class file, I will not be able to call it through autocomplete
> even with these problems I can not leave netbeans, I really like this IDE and 
> I will like it much more if these problems are solved.
> Thank you, for you are giving continuity to the project.



--
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-3769) Cannot rename project and directory

2020-02-03 Thread Ernie Rael (Jira)


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

Ernie Rael commented on NETBEANS-3769:
--

To be clear, the "java.io.NotSerializableException" has nothing to do with this 
issue. Take a look at the 2nd log,log.2, the project rename fails and the 
serialize issue is not there.

> Cannot rename project and directory
> ---
>
> Key: NETBEANS-3769
> URL: https://issues.apache.org/jira/browse/NETBEANS-3769
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Generic Infrastructure, projects - Generic 
> Projects UI
>Affects Versions: 11.3
> Environment: NB 11.3b running on JDK-13.0.2, Win7
>Reporter: Ernie Rael
>Assignee: Eirik Bakke
>Priority: Major
> Fix For: 11.3
>
> Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, 
> ProjRenameAtRename.png
>
>
> (Attaching log with relevant exceptions)
> To reproduce
>  # NewProject > JavaWithAnt > JavaApplication; accept all defaults
>  # From context menu on new project, select "Rename..."
>  # In dialog change the name
>  # Select "Also Rename Project Folder"
>  # Click "Rename" button
> Observe error dialog
> {quote}Error
> Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to 
> RenameProject
> {quote}
>  



--
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-3671) IllegalArgumentException CachedHiDPIIcon

2020-02-03 Thread Eirik Bakke (Jira)


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

Eirik Bakke commented on NETBEANS-3671:
---

Will add a patch for this.

> IllegalArgumentException CachedHiDPIIcon
> 
>
> Key: NETBEANS-3671
> URL: https://issues.apache.org/jira/browse/NETBEANS-3671
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Other
>Affects Versions: 11.1
> Environment: Linux: Ubuntu 18.04.3 LTS
>Reporter: Thomas
>Assignee: Eirik Bakke
>Priority: Major
>
> Now and then I get the following exception when opening the "Tools" menu item 
> via mouse:
>  
> java.lang.IllegalArgumentException
>  at org.openide.util.CachedHiDPIIcon.(CachedHiDPIIcon.java:63)
>  at org.openide.util.FilteredIcon.(FilteredIcon.java:50)
>  at org.openide.util.FilteredIcon.create(FilteredIcon.java:58)
>  at 
> org.openide.util.ImageUtilities.createDisabledIcon(ImageUtilities.java:415)
>  at org.openide.awt.Actions$MenuBridge.updateButtonIcon(Actions.java:1375)
>  at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:1324)
>  at org.openide.awt.Actions$MenuItem.synchMenuPresenters(Actions.java:1667)
>  at org.openide.awt.DynaMenuModel.checkSubmenu(DynaMenuModel.java:171)
>  at org.openide.awt.MenuBar$LazyMenu.setPopupMenuVisible(MenuBar.java:722)
>  at 
> java.desktop/javax.swing.JPopupMenu.menuSelectionChanged(JPopupMenu.java:1486)
>  at 
> java.desktop/javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:129)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicMenuUI.appendPath(BasicMenuUI.java:259)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicMenuUI$Handler.mousePressed(BasicMenuUI.java:520)
>  at java.desktop/java.awt.Component.processMouseEvent(Component.java:6629)
>  at 
> java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
>  at java.desktop/java.awt.Component.processEvent(Component.java:6397)
>  at java.desktop/java.awt.Container.processEvent(Container.java:2263)
>  at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
>  at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
>  at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
>  at 
> java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
>  at 
> java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
>  at 
> java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
>  at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
>  at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
>  at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
>  at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
>  at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>  at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>  at java.base/java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>  at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
>  at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
>  at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
>  at java.base/java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>  at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
>  at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>  [catch] at 
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>  at 
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>  at 
> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>  at 
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>  at 
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>  at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)



--
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-3769) Cannot rename project and directory

2020-02-03 Thread Eirik Bakke (Jira)


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

Eirik Bakke commented on NETBEANS-3769:
---

I can't reproduce it on my current dev build, but a a patch is easy enough. I 
believe icons are serialized so that they can be shown in the "Open Recent 
Project" menu.

Will submit a PR the next time I am working on the master branch...

> Cannot rename project and directory
> ---
>
> Key: NETBEANS-3769
> URL: https://issues.apache.org/jira/browse/NETBEANS-3769
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Generic Infrastructure, projects - Generic 
> Projects UI
>Affects Versions: 11.3
> Environment: NB 11.3b running on JDK-13.0.2, Win7
>Reporter: Ernie Rael
>Assignee: Eirik Bakke
>Priority: Major
> Fix For: 11.3
>
> Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, 
> ProjRenameAtRename.png
>
>
> (Attaching log with relevant exceptions)
> To reproduce
>  # NewProject > JavaWithAnt > JavaApplication; accept all defaults
>  # From context menu on new project, select "Rename..."
>  # In dialog change the name
>  # Select "Also Rename Project Folder"
>  # Click "Rename" button
> Observe error dialog
> {quote}Error
> Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to 
> RenameProject
> {quote}
>  



--
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] [Resolved] (NETBEANS-338) Find/Replace dialog does not render correctly

2020-02-03 Thread Eirik Bakke (Jira)


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

Eirik Bakke resolved NETBEANS-338.
--
Fix Version/s: 11.3
   Resolution: Fixed

Should be improved by the previously merged PR.

> Find/Replace dialog does not render correctly
> -
>
> Key: NETBEANS-338
> URL: https://issues.apache.org/jira/browse/NETBEANS-338
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Search
>Affects Versions: 9.0, 10.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> 20180117-unknown-revn)
> Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
> Runtime: Java(TM) SE Runtime Environment 9.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
>Assignee: Eirik Bakke
>Priority: Trivial
>  Labels: HiDPI, Java9, Windows, regression
> Fix For: 11.3
>
> Attachments: screenshot.png
>
>
> In the attached screenshot, notice that the horizontal separator between the 
> two combo-boxes is cut off. Expanding the combo-box causes the line to 
> render, but once it is collapsed again the line disappears. This used to work 
> in Netbeans 8.2 (though this was with JDK 8 while now I am using JDK 9)



--
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] [Resolved] (NETBEANS-3581) DropDownButton/DropDownToggleButton improvements

2020-02-03 Thread Eirik Bakke (Jira)


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

Eirik Bakke resolved NETBEANS-3581.
---
Resolution: Fixed

Merged.

> DropDownButton/DropDownToggleButton improvements
> 
>
> Key: NETBEANS-3581
> URL: https://issues.apache.org/jira/browse/NETBEANS-3581
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Other
>Affects Versions: 11.1
> Environment: Windows, MacOS, and Linux
>Reporter: Eirik Bakke
>Assignee: Eirik Bakke
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> Make a few improvements to the dropdown button components returned by 
> org.openide.awt.DropDownButtonFactory's public static constructors. For 
> example, fix a bug where a click may be ignored, or where a click may open 
> the dropdown menu even when the button is supposed to be disabled.
> (Creating this issue for an upcoming pull request.)



--
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-2603) Paste in the Find window is CTRL + V instead of CMD + V on macOS

2020-02-03 Thread Malcolm Fitzgerald (Jira)


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

Malcolm Fitzgerald commented on NETBEANS-2603:
--

This issue affects all dialog windows outside the editor environment. 

It is a general issue. To copy text it is necessary to use CTRL + C. 

> Paste in the Find window is CTRL + V instead of CMD + V on macOS
> 
>
> Key: NETBEANS-2603
> URL: https://issues.apache.org/jira/browse/NETBEANS-2603
> Project: NetBeans
>  Issue Type: Improvement
> Environment: macOS 10.14.3 using Netbeans 11.
>Reporter: Christoph G.
>Priority: Minor
>
> Using Netbeans on macOS, the shortcut to paste the clipboard contents is CTRL 
> + V which goes against the standard CMD + V which is used everywhere else. 



--
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-3790) eliminate all StringBufferInputStream deprecations

2020-02-03 Thread Brad Walker (Jira)


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

Brad Walker closed NETBEANS-3790.
-
Resolution: Incomplete

This needs more thought on a better solution to the issue..

Will work on it in the future..

> eliminate all StringBufferInputStream deprecations
> --
>
> Key: NETBEANS-3790
> URL: https://issues.apache.org/jira/browse/NETBEANS-3790
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Brad Walker
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> eliminate all references to the following deprecation:
> {code:java}
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.explorer/src/org/openide/explorer/propertysheet/SheetTable.java:50:
>  warning: [deprecation] StringBufferInputStream in java.io has been deprecated
>[repeat] import java.io.StringBufferInputStream;
>[repeat]   ^
> {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] [Commented] (NETBEANS-3790) eliminate all StringBufferInputStream deprecations

2020-02-03 Thread Brad Walker (Jira)


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

Brad Walker commented on NETBEANS-3790:
---

Thanks for the feedback..

It makes perfect sense..

I'll pull this for the time being and try to address it in the future as part 
of a more "complete" solution.

 

I'

> eliminate all StringBufferInputStream deprecations
> --
>
> Key: NETBEANS-3790
> URL: https://issues.apache.org/jira/browse/NETBEANS-3790
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Brad Walker
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> eliminate all references to the following deprecation:
> {code:java}
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.explorer/src/org/openide/explorer/propertysheet/SheetTable.java:50:
>  warning: [deprecation] StringBufferInputStream in java.io has been deprecated
>[repeat] import java.io.StringBufferInputStream;
>[repeat]   ^
> {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-3791) Unclear use of Java hint: “Illegal Use of instanceOf operator”

2020-02-03 Thread dennis lucero (Jira)


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

dennis lucero updated NETBEANS-3791:

Description: 
In an annotation processor similar to
{code:java}
@SupportedAnnotationTypes("org.example.MyAnnotation")
public final class MyGenerator 
extends javax.annotation.processing.AbstractProcessor {
@Override
public boolean process(
final Set annotations,
final RoundEnvironment roundEnvironment) {
final Set elements
= roundEnvironment.getElementsAnnotatedWith(MyAnnotation.class);
for (final Element element : elements) {
PackageElement packageElement = null;
for (Element currentElement = typeElement;
currentElement != null;
currentElement = currentElement.getEnclosingElement()) {
if (currentElement instanceof PackageElement) { // Illegal Use 
of instanceOf
packageElement = (PackageElement) currentElement;
break;
}
{code}
I get the warning “Illegal Use of instanceOf operator” (in the line with the 
comment). It is unclear why this use would be illegal, as it works fine.

The description of the hint in the options should clearly say why it’s illegal 
to use instanceOf or, if this warning is obsolete, the hint should be removed.

(According to http://wiki.netbeans.org/Java_Hints, this hint is disabled by 
default.)

  was:
In an annotation processor similar to
{code:java}
@SupportedAnnotationTypes("org.example.MyAnnotation")
public final class MyGenerator 
extends javax.annotation.processing.AbstractProcessor {
@Override
public boolean process(
final Set annotations,
final RoundEnvironment roundEnvironment) {
final Set elements
= roundEnvironment.getElementsAnnotatedWith(MyAnnotation.class);
for (final Element element : elements) {
PackageElement packageElement = null;
for (Element currentElement = typeElement;
currentElement != null;
currentElement = currentElement.getEnclosingElement()) {
if (currentElement instanceof PackageElement) { // Illegal Use 
of instanceOf
packageElement = (PackageElement) currentElement;
break;
}
{code}
I get the warning “Illegal Use of instanceOf operator” (in the line with the 
comment). It is unclear why this use would be illegal, as it works fine.

The description of the hint in the options should clearly say why it’s illegal 
to use instanceOf or, if this warning is obsolete, the hint should be removed.


> Unclear use of Java hint: “Illegal Use of instanceOf operator”
> --
>
> Key: NETBEANS-3791
> URL: https://issues.apache.org/jira/browse/NETBEANS-3791
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Hints
> Environment: JDK 8 project, NetBeans running on JDK 13
>Reporter: dennis lucero
>Priority: Minor
>  Labels: hints
>
> In an annotation processor similar to
> {code:java}
> @SupportedAnnotationTypes("org.example.MyAnnotation")
> public final class MyGenerator 
> extends javax.annotation.processing.AbstractProcessor {
> @Override
> public boolean process(
> final Set annotations,
> final RoundEnvironment roundEnvironment) {
> final Set elements
> = 
> roundEnvironment.getElementsAnnotatedWith(MyAnnotation.class);
> for (final Element element : elements) {
> PackageElement packageElement = null;
> for (Element currentElement = typeElement;
> currentElement != null;
> currentElement = currentElement.getEnclosingElement()) {
> if (currentElement instanceof PackageElement) { // Illegal 
> Use of instanceOf
> packageElement = (PackageElement) currentElement;
> break;
> }
> {code}
> I get the warning “Illegal Use of instanceOf operator” (in the line with the 
> comment). It is unclear why this use would be illegal, as it works fine.
> The description of the hint in the options should clearly say why it’s 
> illegal to use instanceOf or, if this warning is obsolete, the hint should be 
> removed.
> (According to http://wiki.netbeans.org/Java_Hints, this hint is disabled by 
> default.)



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

[jira] [Created] (NETBEANS-3791) Unclear use of Java hint: “Illegal Use of instanceOf operator”

2020-02-03 Thread dennis lucero (Jira)
dennis lucero created NETBEANS-3791:
---

 Summary: Unclear use of Java hint: “Illegal Use of instanceOf 
operator”
 Key: NETBEANS-3791
 URL: https://issues.apache.org/jira/browse/NETBEANS-3791
 Project: NetBeans
  Issue Type: Improvement
  Components: java - Hints
 Environment: JDK 8 project, NetBeans running on JDK 13
Reporter: dennis lucero


In an annotation processor similar to
{code:java}
@SupportedAnnotationTypes("org.example.MyAnnotation")
public final class MyGenerator 
extends javax.annotation.processing.AbstractProcessor {
@Override
public boolean process(
final Set annotations,
final RoundEnvironment roundEnvironment) {
final Set elements
= roundEnvironment.getElementsAnnotatedWith(MyAnnotation.class);
for (final Element element : elements) {
PackageElement packageElement = null;
for (Element currentElement = typeElement;
currentElement != null;
currentElement = currentElement.getEnclosingElement()) {
if (currentElement instanceof PackageElement) { // Illegal Use 
of instanceOf
packageElement = (PackageElement) currentElement;
break;
}
{code}
I get the warning “Illegal Use of instanceOf operator” (in the line with the 
comment). It is unclear why this use would be illegal, as it works fine.

The description of the hint in the options should clearly say why it’s illegal 
to use instanceOf or, if this warning is obsolete, the hint should be removed.



--
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-3790) eliminate all StringBufferInputStream deprecations

2020-02-03 Thread ASF GitHub Bot (Jira)


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

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

> eliminate all StringBufferInputStream deprecations
> --
>
> Key: NETBEANS-3790
> URL: https://issues.apache.org/jira/browse/NETBEANS-3790
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Brad Walker
>Priority: Major
>  Labels: pull-request-available
>
> eliminate all references to the following deprecation:
> {code:java}
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.explorer/src/org/openide/explorer/propertysheet/SheetTable.java:50:
>  warning: [deprecation] StringBufferInputStream in java.io has been deprecated
>[repeat] import java.io.StringBufferInputStream;
>[repeat]   ^
> {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] [Commented] (NETBEANS-2515) cleanup the build issues

2020-02-03 Thread Brad Walker (Jira)


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

Brad Walker commented on NETBEANS-2515:
---

NETBEANS-3790
 - eliminate all StringBufferInputStream deprecations.

> cleanup the build issues
> 
>
> Key: NETBEANS-2515
> URL: https://issues.apache.org/jira/browse/NETBEANS-2515
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Brad Walker
>Priority: Major
>
> The build process has a lot of errors/warnings.
> I've created this Jira to track all the issues related to cleaning up
> The first canidate is: NETBEANS-2514



--
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-3790) eliminate all StringBufferInputStream deprecations

2020-02-03 Thread Brad Walker (Jira)
Brad Walker created NETBEANS-3790:
-

 Summary: eliminate all StringBufferInputStream deprecations
 Key: NETBEANS-3790
 URL: https://issues.apache.org/jira/browse/NETBEANS-3790
 Project: NetBeans
  Issue Type: Improvement
Reporter: Brad Walker


eliminate all references to the following deprecation:

{code:java}
   [repeat] 
/home/bwalker/src/netbeans/platform/openide.explorer/src/org/openide/explorer/propertysheet/SheetTable.java:50:
 warning: [deprecation] StringBufferInputStream in java.io has been deprecated
   [repeat] import java.io.StringBufferInputStream;
   [repeat]   ^
{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] [Commented] (NETBEANS-3789) Configurations and dependencies occasionaly don't show for Gradle projects

2020-02-03 Thread Scott Palmer (Jira)


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

Scott Palmer commented on NETBEANS-3789:


When the project was in the state mentioned in the description, and had been 
for an hour or so, I right-clicked on the "Configurations" node and selected 
"Download Javadoc". After that operation completed the "compile" configuration 
appeared with all the dependencies (direct and transitive).


> Configurations and dependencies occasionaly don't show for Gradle projects
> --
>
> Key: NETBEANS-3789
> URL: https://issues.apache.org/jira/browse/NETBEANS-3789
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.3
> Environment: macOS 10.15
> JDK 13.0.2
>Reporter: Scott Palmer
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> Expanding the Projects pane, I expect to see under Configurations the 
> configurations and dependencies related to my project.  Sometimes 
> Configurations is empty, other times it is only partially filled in, yet 
> other times it appears to be complete.
> Example build.gradle:
> {code:java}
> apply plugin: 'java'
> apply plugin: 'jacoco'
> apply plugin: 'application'
> group = 'my.company'
> mainClassName = 'my.company.Main'
> repositories {
> mavenCentral()
> jcenter()
> mavenLocal()
> }
> dependencies {
> compile 'org.jitsi:libjitsi:1.0-SNAPSHOT' // built and in mavenLocal cache
> testCompile 'junit:junit:4.12'
> }
> {code}
> //
> In the above project only the testCompile configuration is shown.  For that 
> configuration dependencies hamcrest-core:1.3 and junit:4.12 were shown.  The 
> other dependency, libjitsi, was not shown at all, nor was the "compile" 
> configuration.



--
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-3789) Configurations and dependencies occasionaly don't show for Gradle projects

2020-02-03 Thread Scott Palmer (Jira)


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

Scott Palmer updated NETBEANS-3789:
---
Description: 
Expanding the Projects pane, I expect to see under Configurations the 
configurations and dependencies related to my project.  Sometimes 
Configurations is empty, other times it is only partially filled in, yet other 
times it appears to be complete.

Example build.gradle:


{code:java}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'

group = 'my.company'

mainClassName = 'my.company.Main'

repositories {
mavenCentral()
jcenter()
mavenLocal()
}

dependencies {
compile 'org.jitsi:libjitsi:1.0-SNAPSHOT' // built and in mavenLocal cache
testCompile 'junit:junit:4.12'
}
{code}


//

In the above project only the testCompile configuration is shown.  For that 
configuration dependencies hamcrest-core:1.3 and junit:4.12 were shown.  The 
other dependency, libjitsi, was not shown at all, nor was the "compile" 
configuration.

  was:
Expanding the Projects pane, I expect to see under Configurations the 
configurations and dependencies related to my project.  Sometimes 
Configurations is empty, other times it is only partially filled in, yet other 
times it appears to be complete.

Example build.gradle:

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'

group = 'my.company'

mainClassName = 'my.company.Main'

repositories {
mavenCentral()
jcenter()
mavenLocal()
}

dependencies {
compile 'org.jitsi:libjitsi:1.0-SNAPSHOT' // built and in mavenLocal cache
testCompile 'junit:junit:4.12'
}

//

In the above project only the testCompile configuration is shown.  For that 
configuration dependencies hamcrest-core:1.3 and junit:4.12 were shown.  The 
other dependency, libjitsi, was not shown at all, nor was the "compile" 
configuration.


> Configurations and dependencies occasionaly don't show for Gradle projects
> --
>
> Key: NETBEANS-3789
> URL: https://issues.apache.org/jira/browse/NETBEANS-3789
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.3
> Environment: macOS 10.15
> JDK 13.0.2
>Reporter: Scott Palmer
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> Expanding the Projects pane, I expect to see under Configurations the 
> configurations and dependencies related to my project.  Sometimes 
> Configurations is empty, other times it is only partially filled in, yet 
> other times it appears to be complete.
> Example build.gradle:
> {code:java}
> apply plugin: 'java'
> apply plugin: 'jacoco'
> apply plugin: 'application'
> group = 'my.company'
> mainClassName = 'my.company.Main'
> repositories {
> mavenCentral()
> jcenter()
> mavenLocal()
> }
> dependencies {
> compile 'org.jitsi:libjitsi:1.0-SNAPSHOT' // built and in mavenLocal cache
> testCompile 'junit:junit:4.12'
> }
> {code}
> //
> In the above project only the testCompile configuration is shown.  For that 
> configuration dependencies hamcrest-core:1.3 and junit:4.12 were shown.  The 
> other dependency, libjitsi, was not shown at all, nor was the "compile" 
> configuration.



--
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-3789) Configurations and dependencies occasionaly don't show fo Gradle projects

2020-02-03 Thread Scott Palmer (Jira)
Scott Palmer created NETBEANS-3789:
--

 Summary: Configurations and dependencies occasionaly don't show fo 
Gradle projects
 Key: NETBEANS-3789
 URL: https://issues.apache.org/jira/browse/NETBEANS-3789
 Project: NetBeans
  Issue Type: Bug
  Components: projects - Gradle
Affects Versions: 11.3
 Environment: macOS 10.15
JDK 13.0.2
Reporter: Scott Palmer
Assignee: Laszlo Kishalmi


Expanding the Projects pane, I expect to see under Configurations the 
configurations and dependencies related to my project.  Sometimes 
Configurations is empty, other times it is only partially filled in, yet other 
times it appears to be complete.

Example build.gradle:

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'

group = 'my.company'

mainClassName = 'my.company.Main'

repositories {
mavenCentral()
jcenter()
mavenLocal()
}

dependencies {
compile 'org.jitsi:libjitsi:1.0-SNAPSHOT' // built and in mavenLocal cache
testCompile 'junit:junit:4.12'
}

//

In the above project only the testCompile configuration is shown.  For that 
configuration dependencies hamcrest-core:1.3 and junit:4.12 were shown.  The 
other dependency, libjitsi, was not shown at all, nor was the "compile" 
configuration.



--
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-3789) Configurations and dependencies occasionaly don't show for Gradle projects

2020-02-03 Thread Scott Palmer (Jira)


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

Scott Palmer updated NETBEANS-3789:
---
Summary: Configurations and dependencies occasionaly don't show for Gradle 
projects  (was: Configurations and dependencies occasionaly don't show fo 
Gradle projects)

> Configurations and dependencies occasionaly don't show for Gradle projects
> --
>
> Key: NETBEANS-3789
> URL: https://issues.apache.org/jira/browse/NETBEANS-3789
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.3
> Environment: macOS 10.15
> JDK 13.0.2
>Reporter: Scott Palmer
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> Expanding the Projects pane, I expect to see under Configurations the 
> configurations and dependencies related to my project.  Sometimes 
> Configurations is empty, other times it is only partially filled in, yet 
> other times it appears to be complete.
> Example build.gradle:
> apply plugin: 'java'
> apply plugin: 'jacoco'
> apply plugin: 'application'
> group = 'my.company'
> mainClassName = 'my.company.Main'
> repositories {
> mavenCentral()
> jcenter()
> mavenLocal()
> }
> dependencies {
> compile 'org.jitsi:libjitsi:1.0-SNAPSHOT' // built and in mavenLocal cache
> testCompile 'junit:junit:4.12'
> }
> //
> In the above project only the testCompile configuration is shown.  For that 
> configuration dependencies hamcrest-core:1.3 and junit:4.12 were shown.  The 
> other dependency, libjitsi, was not shown at all, nor was the "compile" 
> configuration.



--
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-2559) NullPointerException in debug mode.

2020-02-03 Thread Ernie Rael (Jira)


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

Ernie Rael updated NETBEANS-2559:
-
Priority: Minor  (was: Critical)

> NullPointerException in debug mode.
> ---
>
> Key: NETBEANS-2559
> URL: https://issues.apache.org/jira/browse/NETBEANS-2559
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java, java - Project, javafx - Project
>Affects Versions: 10.0
> Environment: Windows 10, NetBeans Linux 1099, Java 12.0.1
>Reporter: Michal Rama
>Priority: Minor
>  Labels: Debug, NullPointerException, javafx
>
> Hello,
> When I start the project, everything will go well.
> The problem occurs when I run debug mode. It goes through all the "Line 
> Breakpoints". After the last, the project starts, but it also displays an 
> error.
> {code:java}
> java.lang.NullPointerException
>  at 
> org.netbeans.modules.debugger.jpda.jdi.ReferenceTypeWrapper.fieldByName(ReferenceTypeWrapper.java:1033)
> [catch] at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.setFxDebug(VisualDebuggerListener.java:463)
>  at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.initDebuggerRemoteService(VisualDebuggerListener.java:273)
>  at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.access$100(VisualDebuggerListener.java:94)
>  at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener$3.breakpointReached(VisualDebuggerListener.java:184)
>  at 
> org.netbeans.api.debugger.jpda.JPDABreakpoint.fireJPDABreakpointChange(JPDABreakpoint.java:275)
>  at 
> org.netbeans.api.debugger.jpda.JPDADebugger.fireBreakpointEvent(JPDADebugger.java:466)
>  at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.fireBreakpointEvent(JPDADebuggerImpl.java:641)
>  at 
> org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:535)
>  at 
> org.netbeans.modules.debugger.jpda.breakpoints.MethodBreakpointImpl.exec(MethodBreakpointImpl.java:253)
>  at 
> org.netbeans.modules.debugger.jpda.util.Operator.processEvents(Operator.java:500)
>  at 
> org.netbeans.modules.debugger.jpda.util.Operator.access$800(Operator.java:94)
>  at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:225)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at org.netbeans.modules.debugger.jpda.util.Operator$2.run(Operator.java:257)
>  at java.base/java.lang.Thread.run(Thread.java:835){code}
> Why is he doing it?
> Please help
> 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-2559) NullPointerException in debug mode.

2020-02-03 Thread Ernie Rael (Jira)


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

Ernie Rael commented on NETBEANS-2559:
--

Below is the comment and some code for the method 
org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.setFxDebug 
which catches and reports the exception.

Note that exceptions are expected. Not sure why the stacktrace is output which 
in turn causes NetBeans to bring up a dialog.

 
{code:java}
/**
 * JavaFX runtime is boobietrapped with various checks for {@linkplain 
com.sun.javafx.runtime.SystemProperties#isDebug() }
 * which lead to spurious NPEs. Need to make it happy and force the runtime 
into debug mode
 */
private static void setFxDebug(VirtualMachine vm, ThreadReference tr) {
...
} catch (Exception ex) {
Exceptions.printStackTrace(ex);
{code}

> NullPointerException in debug mode.
> ---
>
> Key: NETBEANS-2559
> URL: https://issues.apache.org/jira/browse/NETBEANS-2559
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java, java - Project, javafx - Project
>Affects Versions: 10.0
> Environment: Windows 10, NetBeans Linux 1099, Java 12.0.1
>Reporter: Michal Rama
>Priority: Critical
>  Labels: Debug, NullPointerException, javafx
>
> Hello,
> When I start the project, everything will go well.
> The problem occurs when I run debug mode. It goes through all the "Line 
> Breakpoints". After the last, the project starts, but it also displays an 
> error.
> {code:java}
> java.lang.NullPointerException
>  at 
> org.netbeans.modules.debugger.jpda.jdi.ReferenceTypeWrapper.fieldByName(ReferenceTypeWrapper.java:1033)
> [catch] at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.setFxDebug(VisualDebuggerListener.java:463)
>  at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.initDebuggerRemoteService(VisualDebuggerListener.java:273)
>  at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.access$100(VisualDebuggerListener.java:94)
>  at 
> org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener$3.breakpointReached(VisualDebuggerListener.java:184)
>  at 
> org.netbeans.api.debugger.jpda.JPDABreakpoint.fireJPDABreakpointChange(JPDABreakpoint.java:275)
>  at 
> org.netbeans.api.debugger.jpda.JPDADebugger.fireBreakpointEvent(JPDADebugger.java:466)
>  at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.fireBreakpointEvent(JPDADebuggerImpl.java:641)
>  at 
> org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:535)
>  at 
> org.netbeans.modules.debugger.jpda.breakpoints.MethodBreakpointImpl.exec(MethodBreakpointImpl.java:253)
>  at 
> org.netbeans.modules.debugger.jpda.util.Operator.processEvents(Operator.java:500)
>  at 
> org.netbeans.modules.debugger.jpda.util.Operator.access$800(Operator.java:94)
>  at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:225)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at org.netbeans.modules.debugger.jpda.util.Operator$2.run(Operator.java:257)
>  at java.base/java.lang.Thread.run(Thread.java:835){code}
> Why is he doing it?
> Please help
> 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-3786) Hint "add imports" is not in a right place(Record -JDK 14)

2020-02-03 Thread ASF GitHub Bot (Jira)


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

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

> Hint "add imports" is not in a right place(Record -JDK 14)
> --
>
> Key: NETBEANS-3786
> URL: https://issues.apache.org/jira/browse/NETBEANS-3786
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
> Environment: 14-ea; OpenJDK 64-Bit Server VM 14-ea+27-1339
>Reporter: Akhilesh Singh
>Assignee: Akhilesh Singh
>Priority: Major
>  Labels: jdk14, pull-request-available
>
> Write below code snippet on editor and use hint "*add import*" for List 
> interface.
> public record Test(String s, int i, int j){
>  static List list= null;
> }
> Actual Result:
> Import statement comes at the end of record body. This change shows compile 
> time error on editor.
>  
> Excepted Result
> Import statement should come after package declaration or before start of 
> record body.
>  
> Note : This issue occurs only when there is no other import statement 
> available or declared previously. 



--
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-3783) NetBeans crashes when creating TypeScript file

2020-02-03 Thread Ghader Arkani (Jira)


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

Ghader Arkani updated NETBEANS-3783:

Description: When I add a TypeScript file to project and open it, CPU goes 
to 100% and there are about 300 Node.js instances loaded .  (was: When I Add a 
TypeScript file to project and open it, CPU goes to 100% and there are about 
300 Node.js instances loaded .)

> NetBeans crashes when creating TypeScript file 
> ---
>
> Key: NETBEANS-3783
> URL: https://issues.apache.org/jira/browse/NETBEANS-3783
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.3
> Environment: Windows 10 x64
> Node.js 12.13.0
> JDK 1.8.0_231
> NetBeans 11.3 beta2 
>Reporter: Ghader Arkani
>Priority: Blocker
>
> When I add a TypeScript file to project and open it, CPU goes to 100% and 
> there are about 300 Node.js instances loaded .



--
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-3783) NetBeans crashes when creating TypeScript file

2020-02-03 Thread Ghader Arkani (Jira)


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

Ghader Arkani updated NETBEANS-3783:

Summary: NetBeans crashes when creating TypeScript file   (was: NetBeans 
crashes when creating type script file )

> NetBeans crashes when creating TypeScript file 
> ---
>
> Key: NETBEANS-3783
> URL: https://issues.apache.org/jira/browse/NETBEANS-3783
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.3
> Environment: Windows 10 x64
> Node.js 12.13.0
> JDK 1.8.0_231
> NetBeans 11.3 beta2 
>Reporter: Ghader Arkani
>Priority: Blocker
>
> When I Add a TypeScript file to project and open it, CPU goes to 100% and 
> there are about 300 Node.js instances loaded .



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

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

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



[netbeans] branch master updated: [NETBEANS-3702] : Fixed hint 'implements all abstract method' for record interfaces

2020-02-03 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo 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 9eb4cc8  [NETBEANS-3702] : Fixed hint 'implements all abstract method' 
for record interfaces
 new daea256  Merge pull request #1907 from 
singh-akhilesh/fixed-hint-for-record
9eb4cc8 is described below

commit 9eb4cc8799abc8fca5d52f47159e812695367e40
Author: Akhilesh Singh 
AuthorDate: Fri Jan 31 17:45:25 2020 +0530

[NETBEANS-3702] : Fixed hint 'implements all abstract method' for record 
interfaces
---
 .../java/hints/errors/ImplementAllAbstractMethods.java| 11 +++
 .../src/org/netbeans/modules/java/source/save/CasualDiff.java |  7 ++-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/ImplementAllAbstractMethods.java
 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/ImplementAllAbstractMethods.java
index 1b5404e..7699146 100644
--- 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/ImplementAllAbstractMethods.java
+++ 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/ImplementAllAbstractMethods.java
@@ -81,7 +81,7 @@ import org.openide.util.NbBundle;
 public final class ImplementAllAbstractMethods implements ErrorRule, 
OverrideErrorMessage {
 
 private static final String PREMATURE_EOF_CODE = 
"compiler.err.premature.eof"; // NOI18N
-
+private static final String RECORD = "RECORD"; // NOI18N
 /** Creates a new instance of ImplementAllAbstractMethodsCreator */
 public ImplementAllAbstractMethods() {
 }
@@ -169,11 +169,6 @@ public final class ImplementAllAbstractMethods implements 
ErrorRule, Ove
 }
 Element e = info.getTrees().getElement(path);
 final Tree leaf = path.getLeaf();
-//TODO: Fix defect #NETBEANS-3702
-//Disabling hints for record
-if(leaf.getKind().toString().equals(TreeShims.RECORD)){
-return null;
-}
 boolean isUsableElement = e != null && (e.getKind().isClass() || 
e.getKind().isInterface());
 boolean containsDefaultMethod = saved == Boolean.FALSE;
 
@@ -185,7 +180,7 @@ public final class ImplementAllAbstractMethods implements 
ErrorRule, Ove
 return null;
 }
 List fixes = new ArrayList<>();
-if (TreeUtilities.CLASS_TREE_KINDS.contains(leaf.getKind())) {
+if (TreeUtilities.CLASS_TREE_KINDS.contains(leaf.getKind()) || 
leaf.getKind().toString().equals(RECORD)) {
 CompilationUnitTree cut = info.getCompilationUnit();
 // do not offer for class declarations without body
 long start = 
info.getTrees().getSourcePositions().getStartPosition(cut, leaf);
@@ -565,7 +560,7 @@ public final class ImplementAllAbstractMethods implements 
ErrorRule, Ove
 // copy from GeneratorUtils, need to change the processing a little.
 public static Map generateAllAbstractMethodImplementations(
 WorkingCopy wc, TreePath path, List> toImplementHandles) {
-assert 
TreeUtilities.CLASS_TREE_KINDS.contains(path.getLeaf().getKind());
+assert 
TreeUtilities.CLASS_TREE_KINDS.contains(path.getLeaf().getKind()) || 
path.getLeaf().getKind().toString().equals(RECORD);
 TypeElement te = (TypeElement)wc.getTrees().getElement(path);
 if (te == null) {
 return null;
diff --git 
a/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
 
b/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
index b55ceb6..90b8f0a 100644
--- 
a/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
+++ 
b/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
@@ -187,6 +187,7 @@ public class CasualDiff {
 private final Context context;
 private final Names names;
 private static final Logger LOG = 
Logger.getLogger(CasualDiff.class.getName());
+public static final int GENERATED_MEMBER = 1<<24;
 
 private Map diffInfo = new HashMap<>();
 private final Map tree2Tag;
@@ -3913,7 +3914,11 @@ public class CasualDiff {
 // collect enum constants, make a field group from them
 // and set the flag.
 enumConstants.add(var);
-} else {
+} // filter syntetic member variable, i.e. variable which are 
in
+// the tree, but not available in the source.
+else if ((var.mods.flags & GENERATED_MEMBER) != 0)
+continue;
+else {
 if (!fieldGroup.isEmpty()) {
 int oldPos = getOldPos(fieldGroup.get(0));
 


-
To unsubscribe, e-mail: 

[jira] [Commented] (NETBEANS-2983) Custom GUI Components Cannot be Added in Gradle Projects

2020-02-03 Thread Noel Grandin (Jira)


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

Noel Grandin commented on NETBEANS-2983:


Noting that this bug also makes the forms designer unable to edit a form, when 
that form includes other components from the current gradle sub-project

> Custom GUI Components Cannot be Added in Gradle Projects
> 
>
> Key: NETBEANS-2983
> URL: https://issues.apache.org/jira/browse/NETBEANS-2983
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.1, 11.2
>Reporter: Horváth Péter
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>




--
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-3788) Erreur supposé dans l'éditeur, mais la compilation et le code sont correcte

2020-02-03 Thread Eric Barboni (Jira)


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

Eric Barboni commented on NETBEANS-3788:


Hi sir, Would be better in English especially title.
"Error in editor, but compilation and code are correct"

Regards



> Erreur supposé dans l'éditeur, mais la compilation et le code sont correcte
> ---
>
> Key: NETBEANS-3788
> URL: https://issues.apache.org/jira/browse/NETBEANS-3788
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Lexer, editor - Parsing  Indexing
>Affects Versions: 11.2
> Environment: Window 10 1903
> openjdk version "13.0.1" 2019-10-15
>Reporter: Pascal Fares
>Priority: Critical
> Fix For: 11.2
>
> Attachments: Annotation 2020-02-03 123039.png
>
>
> Ceci est parfaitement correcte etr compile normalement, mais l'editeur 
> netbeans indique une erreur "incompatible type"
> version java openjdk version "13.0.1" 2019-10-15
>  
> String _afficheLigne(List ligne) {
>    return ligne.stream().reduce("", (acc, s) -> 
> String.format("%s\t%s",acc,s));
>  }
>  
> String _afficheLignes2(List> lignes) {
>  return lignes.stream().map((ls) -> _afficheLignes(ls)).reduce((acc,s) 
> ->String.format("%s\n%s",acc,s));
>  }



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

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

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



[netbeans] branch master updated: Only initialize the server once; prevent NPE in code completion.

2020-02-03 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo 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 4fd0573  Only initialize the server once; prevent NPE in code 
completion.
 new 8674030  Merge pull request #1910 from jlahoda/last-fixes-feb-2020
4fd0573 is described below

commit 4fd057391fc87c5f4b63282969f1a5f3318980c0
Author: Jan Lahoda 
AuthorDate: Sat Feb 1 22:20:16 2020 +0100

Only initialize the server once; prevent NPE in code completion.
---
 ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java   | 4 +++-
 .../netbeans/modules/lsp/client/bindings/CompletionProviderImpl.java  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java 
b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java
index e3a2ca1..c45b117 100644
--- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java
+++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java
@@ -33,6 +33,7 @@ import java.util.LinkedHashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.WeakHashMap;
+import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
@@ -203,9 +204,10 @@ public class LSPBindings {
wcc.getWorkspaceEdit().setDocumentChanges(true);

wcc.getWorkspaceEdit().setResourceOperations(Arrays.asList(ResourceOperationKind.Create,
 ResourceOperationKind.Delete, ResourceOperationKind.Rename));
initParams.setCapabilities(new ClientCapabilities(wcc, tdcc, null));
+   CompletableFuture initResult = 
server.initialize(initParams);
while (true) {
try {
-   return server.initialize(initParams).get(100, 
TimeUnit.MILLISECONDS);
+   return initResult.get(100, TimeUnit.MILLISECONDS);
} catch (TimeoutException ex) {
if (p != null && !p.isAlive()) {
InitializeResult emptyResult = new InitializeResult();
diff --git 
a/ide/lsp.client/src/org/netbeans/modules/lsp/client/bindings/CompletionProviderImpl.java
 
b/ide/lsp.client/src/org/netbeans/modules/lsp/client/bindings/CompletionProviderImpl.java
index e2c25d7..4a1ea3e 100644
--- 
a/ide/lsp.client/src/org/netbeans/modules/lsp/client/bindings/CompletionProviderImpl.java
+++ 
b/ide/lsp.client/src/org/netbeans/modules/lsp/client/bindings/CompletionProviderImpl.java
@@ -388,6 +388,8 @@ public class CompletionProviderImpl implements 
CompletionProvider {
 if (capabilities == null) return false;
 CompletionOptions completionOptions = 
capabilities.getCompletionProvider();
 if (completionOptions == null) return false;
-return 
completionOptions.getTriggerCharacters().stream().anyMatch(trigger -> 
text.endsWith(trigger));
+List triggerCharacters = 
completionOptions.getTriggerCharacters();
+if (triggerCharacters == null) return false;
+return triggerCharacters.stream().anyMatch(trigger -> 
text.endsWith(trigger));
 }
 }


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

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



[netbeans] branch master updated: [NETBEANS-3286] Naive fix for CME in Call Hierarchy

2020-02-03 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo 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 f87166e  [NETBEANS-3286] Naive fix for CME in Call Hierarchy
 new 30be81a  Merge pull request #1909 from lkishalmi/NETBEANS-3286
f87166e is described below

commit f87166e51d19391ec8f2d18b4b6776b2b9d3e30b
Author: Laszlo Kishalmi 
AuthorDate: Fri Jan 31 10:31:32 2020 -0800

[NETBEANS-3286] Naive fix for CME in Call Hierarchy
---
 .../source/parsing/ParameterNameProviderImpl.java  | 71 +-
 1 file changed, 41 insertions(+), 30 deletions(-)

diff --git 
a/java/java.source.base/src/org/netbeans/modules/java/source/parsing/ParameterNameProviderImpl.java
 
b/java/java.source.base/src/org/netbeans/modules/java/source/parsing/ParameterNameProviderImpl.java
index 2f22002..9839a43 100644
--- 
a/java/java.source.base/src/org/netbeans/modules/java/source/parsing/ParameterNameProviderImpl.java
+++ 
b/java/java.source.base/src/org/netbeans/modules/java/source/parsing/ParameterNameProviderImpl.java
@@ -42,6 +42,7 @@ import java.lang.reflect.Proxy;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.ConcurrentModificationException;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -117,42 +118,50 @@ public class ParameterNameProviderImpl {
 public CharSequence getParameterName(VariableElement parameter) {
 Element method = parameter.getEnclosingElement();
 String methodKey = computeKey(method);
-List names;
+List names = null;
 
 //from sources:
 {
-Element topLevel = parameter;
-while (topLevel.getEnclosingElement().getKind() != 
ElementKind.PACKAGE) {
-topLevel = topLevel.getEnclosingElement();
-}
-ElementHandle topLevelHandle = ElementHandle.create(topLevel);
-
-names = 
source_toplevelClass2method2Parameters.computeIfAbsent(computeKey(topLevel), d 
-> {
-Map> parametersInClass = new HashMap<>();
-FileObject source = SourceUtils.getFile(topLevelHandle, cpInfo);
-JavaSource javaSource = source != null ? 
JavaSource.forFileObject(source) : null;
-if (javaSource != null) {
-try {
-javaSource.runUserActionTask(cc -> {
-cc.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);
-new TreePathScanner() {
-public Void visitMethod(MethodTree mt, Void v) {
-Element el = 
cc.getTrees().getElement(getCurrentPath());
-if (el != null && el.getKind() == 
ElementKind.METHOD) {
-parametersInClass.put(computeKey(el), 
((ExecutableElement) el).getParameters().stream().map(p -> 
p.getSimpleName().toString()).collect(Collectors.toList()));
-}
-return super.visitMethod(mt, v);
-}
-}.scan(cc.getCompilationUnit(), null);
-}, true);
-} catch (IOException ex) {
-//ignore
+Element topLevel = parameter;
+while (topLevel.getEnclosingElement().getKind() != 
ElementKind.PACKAGE) {
+topLevel = topLevel.getEnclosingElement();
+}
+ElementHandle topLevelHandle = ElementHandle.create(topLevel);
+
+String topLevelKey = computeKey(topLevel);
+try {
+names = 
source_toplevelClass2method2Parameters.computeIfAbsent(topLevelKey, d -> {
+Map> parametersInClass = new 
HashMap<>();
+FileObject source = SourceUtils.getFile(topLevelHandle, 
cpInfo);
+JavaSource javaSource = source != null ? 
JavaSource.forFileObject(source) : null;
+if (javaSource != null) {
+try {
+javaSource.runUserActionTask(cc -> {
+cc.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);
+new TreePathScanner() {
+public Void visitMethod(MethodTree mt, 
Void v) {
+Element el = 
cc.getTrees().getElement(getCurrentPath());
+if (el != null && el.getKind() == 
ElementKind.METHOD) {
+
parametersInClass.put(computeKey(el), ((ExecutableElement) 
el).getParameters().stream().map(p -> 
p.getSimpleName().toString()).collect(Collectors.toList()));
+}
+return super.visitMethod(mt, v);
+  

[jira] [Created] (NETBEANS-3788) Erreur supposé dans l'éditeur, mais la compilation et le code sont correcte

2020-02-03 Thread Pascal Fares (Jira)
Pascal Fares created NETBEANS-3788:
--

 Summary: Erreur supposé dans l'éditeur, mais la compilation et le 
code sont correcte
 Key: NETBEANS-3788
 URL: https://issues.apache.org/jira/browse/NETBEANS-3788
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Lexer, editor - Parsing  Indexing
Affects Versions: 11.2
 Environment: Window 10 1903
openjdk version "13.0.1" 2019-10-15
Reporter: Pascal Fares
 Fix For: 11.2
 Attachments: Annotation 2020-02-03 123039.png

Ceci est parfaitement correcte etr compile normalement, mais l'editeur netbeans 
indique une erreur "incompatible type"

version java openjdk version "13.0.1" 2019-10-15

 

String _afficheLigne(List ligne) {
   return ligne.stream().reduce("", (acc, s) -> String.format("%s\t%s",acc,s));
 }
 
String _afficheLignes2(List> lignes) {
 return lignes.stream().map((ls) -> _afficheLignes(ls)).reduce((acc,s) 
->String.format("%s\n%s",acc,s));

 }



--
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-3787) FlatLAF: activated tab bold line not correct with different project tab colors

2020-02-03 Thread Tobias Warneke (Jira)
Tobias Warneke created NETBEANS-3787:


 Summary: FlatLAF: activated tab bold line not correct with 
different project tab colors
 Key: NETBEANS-3787
 URL: https://issues.apache.org/jira/browse/NETBEANS-3787
 Project: NetBeans
  Issue Type: Bug
  Components: ide - UI
Affects Versions: 11.3
 Environment: Netbeans 11.3 beta2 with FlatLAF
Reporter: Tobias Warneke
 Attachments: image-2020-02-03-10-48-17-043.png, 
image-2020-02-03-10-49-22-748.png

I attached two screenshots. The LoginDeniedException - source file tab has a 
"correct" blue thick activated line but the GenericHandler has not.

It somehow shows the project color within the "activation line". 

Is this by design? I love the contrast of this line to the white background of 
an activated tab.



--
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-3785) Make memory gauge look better, especially on HiDPI displays

2020-02-03 Thread Peter Hull (Jira)


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

Peter Hull commented on NETBEANS-3785:
--

For information: a workround suggested by David Green on the mailing list is:
{noformat}
I mitigate most of it by right-clicking on the image and choosing to
disable “drop shadow”.{noformat}
The relevant code for rendering the text with drop shadow is here:

[https://github.com/apache/netbeans/blob/820a688606a3777c673ab6cfb3d6638fe87471cc/platform/openide.actions/src/org/openide/actions/HeapView.java#L638-L680]

(there is a different code path when no drop shadow)

> Make memory gauge look better, especially on HiDPI displays
> ---
>
> Key: NETBEANS-3785
> URL: https://issues.apache.org/jira/browse/NETBEANS-3785
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Other
>Affects Versions: 11.2
> Environment: Windows, MacOS, and probably Linux, especially on 
> HiDPI/retina displays
>Reporter: Eirik Bakke
>Priority: Minor
>  Labels: HiDPI
> Attachments: gauge.jpg
>
>
> Scott Palmer writes: "Does anyone else see really ugly text in the memory 
> usage widget on the toolbar?  This has been an issue for a while and I can’t 
> recall if I have reported it or it is already a known issue.  It seems like 
> something that shouldn’t be hard to address.  The text showing heap used vs 
> available heap is rendered in such a way that the letters are very puffy and 
> jagged.  Almost like any anti-aliasing that would be blending the edges has 
> the alpha channel interpreted as a binary 0% or 100% opacity.  I’ve attached 
> an image, not sure if it will are it through. I’m testing NB 11.3-beta 2 with 
> JDK 13.0.2 on macOS 10.15.3 (beta)"
> Eirik Bakke confirms that this has been an issue for a long time. In 
> particular, the memory gauge should be updated to look good on HiDPI/Retina 
> displays.



--
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-3784) IDE is freezing after pasting a simple XML

2020-02-03 Thread Ankur (Jira)


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

Ankur updated NETBEANS-3784:

Summary: IDE is freezing after pasting a simple XML  (was: IDE is freezing 
after is paste a simple XML)

> IDE is freezing after pasting a simple XML
> --
>
> Key: NETBEANS-3784
> URL: https://issues.apache.org/jira/browse/NETBEANS-3784
> Project: NetBeans
>  Issue Type: Bug
> Environment: Ubuntu 18.04.3 LTS
>Reporter: Ankur
>Priority: Major
>
> I am using Netbeans IDE for my PHP code development.
> Here is the version details of my IDE :
> Product Version: Apache NetBeans IDE 11.2
> Java: 11.0.6; OpenJDK 64-Bit Server VM
>  
> Everything works fine but when I create a variable to store an XML string 
> then IDE just freezes. Some times it does not freeze but some keys does not 
> work like Tab , Enter keys do not work. 
> Because of this issue, I couldn't write my code on netbeans IDE and used 
> another text editor .



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