[jira] [Created] (NETBEANS-1051) Exception while typing, hot debbugging

2018-07-16 Thread Martin Meeser (JIRA)
Martin Meeser created NETBEANS-1051:
---

 Summary: Exception while typing, hot debbugging
 Key: NETBEANS-1051
 URL: https://issues.apache.org/jira/browse/NETBEANS-1051
 Project: NetBeans
  Issue Type: Bug
Affects Versions: Next
Reporter: Martin Meeser


Program asked me to report bug.

---
>Log Session: Monday, July 16, 2018 at 8:13:25 PM Central European Summer Time
>System Info: 
 Product Version = Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-302-on-20180517)
 Operating System = Windows 10 version 10.0 running on amd64
 Java; VM; Vendor = 10.0.1; Java HotSpot(TM) 64-Bit Server VM 10.0.1+10; Oracle 
Corporation
 Runtime = Java(TM) SE Runtime Environment 10.0.1+10
 Java Home = C:\Program Files\Java\jdk-10.0.1
 System Locale; Encoding = en_US (nb); Cp1252
 Home Directory = C:\Users\Martin
 Current Directory = D:\Program Files (x86)\netbeans\bin
 User Directory = C:\Users\Martin\AppData\Roaming\NetBeans\dev
 Cache Directory = C:\Users\Martin\AppData\Local\NetBeans\Cache\dev
 Installation = D:\Program Files (x86)\netbeans\nb
 D:\Program Files (x86)\netbeans\ide
 D:\Program Files (x86)\netbeans\extide
 D:\Program Files (x86)\netbeans\java
 D:\Program Files (x86)\netbeans\apisupport
 D:\Program Files (x86)\netbeans\websvccommon
 D:\Program Files (x86)\netbeans\profiler
 D:\Program Files (x86)\netbeans\harness
 D:\Program Files (x86)\netbeans\javafx
 D:\Program Files (x86)\netbeans\platform
 Boot & Ext. Classpath = 
 Application Classpath = D:\Program Files 
(x86)\netbeans\platform\lib\boot.jar;D:\Program Files 
(x86)\netbeans\platform\lib\org-openide-modules.jar;D:\Program Files 
(x86)\netbeans\platform\lib\org-openide-util-lookup.jar;D:\Program Files 
(x86)\netbeans\platform\lib\org-openide-util-ui.jar;D:\Program Files 
(x86)\netbeans\platform\lib\org-openide-util.jar
 Startup Classpath = D:\Program Files 
(x86)\netbeans\platform\core\asm-all-5.0.1.jar;D:\Program Files 
(x86)\netbeans\platform\core\core-base.jar;D:\Program Files 
(x86)\netbeans\platform\core\core.jar;D:\Program Files 
(x86)\netbeans\platform\core\org-netbeans-libs-asm.jar;D:\Program Files 
(x86)\netbeans\platform\core\org-openide-filesystems-compat8.jar;D:\Program 
Files (x86)\netbeans\platform\core\org-openide-filesystems.jar;D:\Program Files 
(x86)\netbeans\nb\core\org-netbeans-upgrader.jar;D:\Program Files 
(x86)\netbeans\nb\core\locale\core_nb.jar
---
INFO [org.netbeans.modules.netbinox]: Install area set to file:/D:/Program 
Files (x86)/netbeans/
WARNING [org.netbeans.core.modules]: the modules 
[org.netbeans.modules.java.editor.lib, org.netbeans.modules.xml.text] use 
org.netbeans.modules.editor.deprecated.pre65formatting which is deprecated.
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.ide.kit, 
org.netbeans.modules.xml.text] use org.netbeans.modules.editor.structure which 
is deprecated.
WARNING [org.netbeans.core.modules]: the modules 
[org.netbeans.modules.apisupport.ant, org.netbeans.modules.java.hints, 
org.netbeans.modules.jshell.support, org.netbeans.modules.maven.hints] use 
org.netbeans.modules.java.hints.legacy.spi which is deprecated: Use Java Hints 
SPI (org.netbeans.spi.java.hints) instead.
INFO [com.revivius.nb.darcula.DarculaLFCustoms]: Can not find class, will not 
be able to replace its field...
java.lang.ClassNotFoundException: 
org.netbeans.modules.web.core.syntax.completion.api.JspCompletionItem
 at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
 at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
 at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
Caused: java.lang.ClassNotFoundException: 
org.netbeans.modules.web.core.syntax.completion.api.JspCompletionItem starting 
from SystemClassLoader[529 modules] with possible defining loaders null and 
declared parents [org.netbeans.MainImpl$BootClassLoader@4ad7a76, 
ModuleCL@71fc2957[org.netbeans.api.annotations.common], 
ModuleCL@51661849[org.openide.awt], 
ModuleCL@5139ceef[org.netbeans.api.progress], 
ModuleCL@1a3710b0[org.netbeans.api.progress.nb], 
ModuleCL@a912430[org.openide.dialogs], ModuleCL@6b54c17b[org.openide.nodes], 
ModuleCL@74052448[org.openide.windows], 
ModuleCL@569518e8[org.netbeans.modules.editor.mimelookup], 
ModuleCL@552616ae[org.openide.text], ...507 more]
 at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)
 at 
org.netbeans.ModuleManager$SystemClassLoader.loadClass(ModuleManager.java:754)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
[catch] at 
com.revivius.nb.darcula.DarculaLFCustoms.replaceFieldValue(DarculaLFCustoms.java:751)
 at 
com.

[jira] [Comment Edited] (NETBEANS-1042) IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided

2018-07-16 Thread Austin Stephens (JIRA)


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

Austin Stephens edited comment on NETBEANS-1042 at 7/16/18 5:57 PM:


Here is your stack trace:
{noformat}
LineRootElement.getElement:64    
NbDocument$DocumentRenderer.run:898    
BaseDocument.render:1402    
NbDocument$DocumentRenderer.renderToInt:873    
NbDocument.findLineOffset:176    
DocumentLine$Set.offset:1054    
DocumentLine$Set.access$400:921    
DocumentLine$Set$OffsetLineCreator.createLine:1095    
LineVector.findOrCreateLine:142    
Line$Set.findOrCreateLine:533    
DocumentLine$Set.access$301:921    
DocumentLine$Set$1DocumentRenderer.run:1077    
BaseDocument.render:1402    
DocumentLine$Set.safelyFindOrCreateLine:1083    
DocumentLine$Set.getCurrent:1049    
BreakpointAnnotationProvider.addAnnotationTo:416    
BreakpointAnnotationProvider.access$600:67    
BreakpointAnnotationProvider$2.run:360    
RequestProcessor$Task.run:1418    
GlobalLookup.execute:45    
Lookups.executeWith:278    
RequestProcessor$Processor.run:2033   {noformat}
The exception thrown is "Invalid line index=-2 < 0"

Edit: A -1 comes from an array produced by 
BreakpointAnnotationProvider.getAnnotationLines on line 126. It (the array of 
\{-1}) is then passed to addAnnotationTo where the -1 is pulled from the array, 
1 is subtracted from it, and then is used as an index into 
LineCookie.getLineSet().getCurrent(int) on line 416.


was (Author: sir intellegence):
Here is your stack trace:
{noformat}
LineRootElement.getElement:64    
NbDocument$DocumentRenderer.run:898    
BaseDocument.render:1402    
NbDocument$DocumentRenderer.renderToInt:873    
NbDocument.findLineOffset:176    
DocumentLine$Set.offset:1054    
DocumentLine$Set.access$400:921    
DocumentLine$Set$OffsetLineCreator.createLine:1095    
LineVector.findOrCreateLine:142    
Line$Set.findOrCreateLine:533    
DocumentLine$Set.access$301:921    
DocumentLine$Set$1DocumentRenderer.run:1077    
BaseDocument.render:1402    
DocumentLine$Set.safelyFindOrCreateLine:1083    
DocumentLine$Set.getCurrent:1049    
BreakpointAnnotationProvider.addAnnotationTo:416    
BreakpointAnnotationProvider.access$600:67    
BreakpointAnnotationProvider$2.run:360    
RequestProcessor$Task.run:1418    
GlobalLookup.execute:45    
Lookups.executeWith:278    
RequestProcessor$Processor.run:2033   {noformat}
The exception thrown is "Invalid line index=-2 < 0"

> IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided
> 
>
> Key: NETBEANS-1042
> URL: https://issues.apache.org/jira/browse/NETBEANS-1042
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Reporter: Austin Stephens
>Assignee: Austin Stephens
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> It is rather annoying to have exceptions like that thrown when you have 
> breakpoints on them to help you find bugs, so I fixed it. This bug report is 
> mostly to get a branch name that won't cause issues...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1042) IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided

2018-07-16 Thread Austin Stephens (JIRA)


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

Austin Stephens commented on NETBEANS-1042:
---

Here is your stack trace:
{noformat}
LineRootElement.getElement:64    
NbDocument$DocumentRenderer.run:898    
BaseDocument.render:1402    
NbDocument$DocumentRenderer.renderToInt:873    
NbDocument.findLineOffset:176    
DocumentLine$Set.offset:1054    
DocumentLine$Set.access$400:921    
DocumentLine$Set$OffsetLineCreator.createLine:1095    
LineVector.findOrCreateLine:142    
Line$Set.findOrCreateLine:533    
DocumentLine$Set.access$301:921    
DocumentLine$Set$1DocumentRenderer.run:1077    
BaseDocument.render:1402    
DocumentLine$Set.safelyFindOrCreateLine:1083    
DocumentLine$Set.getCurrent:1049    
BreakpointAnnotationProvider.addAnnotationTo:416    
BreakpointAnnotationProvider.access$600:67    
BreakpointAnnotationProvider$2.run:360    
RequestProcessor$Task.run:1418    
GlobalLookup.execute:45    
Lookups.executeWith:278    
RequestProcessor$Processor.run:2033   {noformat}
The exception thrown is "Invalid line index=-2 < 0"

> IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided
> 
>
> Key: NETBEANS-1042
> URL: https://issues.apache.org/jira/browse/NETBEANS-1042
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Reporter: Austin Stephens
>Assignee: Austin Stephens
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> It is rather annoying to have exceptions like that thrown when you have 
> breakpoints on them to help you find bugs, so I fixed it. This bug report is 
> mostly to get a branch name that won't cause issues...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1050) Slay all of the warnings! (Root task)

2018-07-16 Thread Austin Stephens (JIRA)
Austin Stephens created NETBEANS-1050:
-

 Summary: Slay all of the warnings! (Root task)
 Key: NETBEANS-1050
 URL: https://issues.apache.org/jira/browse/NETBEANS-1050
 Project: NetBeans
  Issue Type: Task
Reporter: Austin Stephens


(It is recommended you read this with good humor, like Think Geek)

While building Netbeans, a number of warnings show up. We should fix that.

For the sake of organization, we should probably open a new task for each 
module. This will be the root/umbrella task. *The main project heads should 
take a look at this task and update it with official stuff.*

We should probably slay warnings in this order:
 # Warnings that don't require changes to other modules (like API changes). 
Examples would be changing raw types to non-raw types or something that would 
cause another module to not build after the warning has be properly dealt with.
 # Warnings that Do require changes to other modules (see previous entry for 
examples)
 # Those evil warnings that don't leave any links behind. Here are some 
examples:
{noformat}
warning: [options] bootstrap class path not set in conjunction with -source 1.7
/Volumes/Data/Code//incubator-netbeans/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
 warning: Cannot find annotation method 'when()' in type 'Nonnull': class file 
for javax.annotation.Nonnull not found
warning: unknown enum constant When.ALWAYS
  reason: class file for javax.annotation.meta.When not found
/Volumes/Data/Code//incubator-netbeans/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NullAllowed.class):
 warning: Cannot find annotation method 'when()' in type 'Nonnull'
warning: unknown enum constant When.MAYBE
/Volumes/Data/Code//incubator-netbeans/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/CheckForNull.class):
 warning: Cannot find annotation method 'when()' in type 'Nonnull'
warning: unknown enum constant When.MAYBE
warning: Supported source version 'RELEASE_6' from annotation processor 
'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '1.7'
warning: No processor claimed any of these annotations: 
org.netbeans.api.annotations.common.NullAllowed,org.netbeans.api.annotations.common.CheckForNull,org.netbeans.api.annotations.common.NonNull{noformat}

 The following guide-lines should be followed while slaying warnings:
 * You shall make every effort to resolve the warning without suppressing it. 
This may involve one or more of the following (non-inclusive):
 ** Adding a new variable so assignments are not done to method parameters
 ** Adding a variable followed with an "assert var != null" to let the IDE know 
that it can't be null
 ** In the second pass, breaking APIs so raw types and such are not used if 
possible
 * You shall suppress the warning on the *smallest scope possible*. Why? 
Warnings exist for a reason. They are there to tell you that you did something 
wrong, unless that was your intention and you know what you are doing. That is 
what @SuppressWarnings is for. If (heaven forbid) you suppress all warnings in 
a class file, you may be (figuratively) slain, so DON'T!
 * The following (in my opinion) is a good way to suppress a warning on a line:

{code:java}
@SuppressWarning("unchecked")
Object shush = bar = (Foo)foo;{code}

 * You may want to add dummy return values to some void methods to enable 
suppression via the above method.
 * If you do suppress a warning, and it is not obvious why it was suppressed, 
*document it*! Leave a comment that says why it was suppressed. The following 
is an example:

{code:java}
//the following is intentional
//the method is expected to return an constant array
@SuppressWarnings("OverridableMethodCallInConstructor")
List shush = ImmutableList.copyOf(getSupportedTypes());{code}

I think that is all for now...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1042) IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided

2018-07-16 Thread Austin Stephens (JIRA)


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

Austin Stephens commented on NETBEANS-1042:
---

It was -1. I will get you the stack trace. Would a heap dump be better?

> IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided
> 
>
> Key: NETBEANS-1042
> URL: https://issues.apache.org/jira/browse/NETBEANS-1042
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Reporter: Austin Stephens
>Assignee: Austin Stephens
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> It is rather annoying to have exceptions like that thrown when you have 
> breakpoints on them to help you find bugs, so I fixed it. This bug report is 
> mostly to get a branch name that won't cause issues...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1042) IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided

2018-07-16 Thread Svatopluk Dedic (JIRA)


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

Svatopluk Dedic commented on NETBEANS-1042:
---

For PR review, it would be helpful to have the exception stacktrace here. Why 
did 0 appeared in *lines* array anyway  ?

> IndexOutOfBoundsException in BreakpointAnnotationProvider can be avoided
> 
>
> Key: NETBEANS-1042
> URL: https://issues.apache.org/jira/browse/NETBEANS-1042
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Reporter: Austin Stephens
>Assignee: Austin Stephens
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> It is rather annoying to have exceptions like that thrown when you have 
> breakpoints on them to help you find bugs, so I fixed it. This bug report is 
> mostly to get a branch name that won't cause issues...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1049) Windows group throws NPE on close for not persistable top component

2018-07-16 Thread ASF GitHub Bot (JIRA)


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

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

> Windows group throws NPE on close for not persistable top component
> ---
>
> Key: NETBEANS-1049
> URL: https://issues.apache.org/jira/browse/NETBEANS-1049
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Window System
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Minor
>  Labels: pull-request-available
>
> I admit it is somewhat a corner case, but – I have a TopComponent whose 
> *getPersistenceType* returns *PERSISTENCE_NEVER* and so a corresponding 
> config file is never created on config fs. If the user closes the document 
> group which contains such an editor, the core throws a NPE:
> {noformat}
> java.lang.NullPointerException
> at 
> org.netbeans.core.windows.documentgroup.GroupsManager.closeGroup(GroupsManager.java:376)
> at 
> org.netbeans.core.windows.documentgroup.DocumentGroupImpl.close(DocumentGroupImpl.java:70)
> at 
> org.netbeans.core.windows.documentgroup.GroupsManager.openGroup(GroupsManager.java:172)
> at 
> org.netbeans.core.windows.documentgroup.DocumentGroupImpl.open(DocumentGroupImpl.java:66)
> at 
> org.netbeans.core.windows.documentgroup.GroupsMenuAction$OpenGroupAction$1.run(GroupsMenuAction.java:167)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:709)
> at java.awt.EventQueue$3.run(EventQueue.java:703)
> at java.security.AccessController.doPrivileged(Native Method)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1048) Long Product Information displays the end of text in About box

2018-07-16 Thread ASF GitHub Bot (JIRA)


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

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

> Long Product Information displays the end of text in About box
> --
>
> Key: NETBEANS-1048
> URL: https://issues.apache.org/jira/browse/NETBEANS-1048
> Project: NetBeans
>  Issue Type: Bug
>  Components: core
>Affects Versions: 8.2
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Minor
>  Labels: pull-request-available
> Fix For: Next
>
>
> The product information displayed in About box may be long enough to flow out 
> of the fixed-size box. The end of the text is displayed, as the caret in the 
> edit area is positioned at the end of the inserted text.
> IMHO it would be more appropriate to display start of the text, that 
> typically contains product name, trademarks etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-998) Template Wizard displays unlocalized template names

2018-07-16 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot updated NETBEANS-998:

Labels: pull-request-available  (was: )

> Template Wizard displays unlocalized template names
> ---
>
> Key: NETBEANS-998
> URL: https://issues.apache.org/jira/browse/NETBEANS-998
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Svatopluk Dedic
>Priority: Minor
>  Labels: pull-request-available
>
> Happens *only* during first invocation of the Template Wizard, after the 
> application starts. The UI implementation in *TemplateWizard1* attempts to 
> remove "->" sign from node names, and does so by proxying (FilterNode) the 
> originals.
> The originals are however DataFolderChildren.DelayedNodes, which annotate 
> their display names in RequestProcessor, after the TemplateWizard fetched the 
> original displayNames (filenames). 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1049) Windows group throws NPE on close for not persistable top component

2018-07-16 Thread Svatopluk Dedic (JIRA)
Svatopluk Dedic created NETBEANS-1049:
-

 Summary: Windows group throws NPE on close for not persistable top 
component
 Key: NETBEANS-1049
 URL: https://issues.apache.org/jira/browse/NETBEANS-1049
 Project: NetBeans
  Issue Type: Bug
  Components: platform - Window System
Reporter: Svatopluk Dedic
Assignee: Svatopluk Dedic


I admit it is somewhat a corner case, but – I have a TopComponent whose 
*getPersistenceType* returns *PERSISTENCE_NEVER* and so a corresponding config 
file is never created on config fs. If the user closes the document group which 
contains such an editor, the core throws a NPE:
{noformat}
java.lang.NullPointerException
at 
org.netbeans.core.windows.documentgroup.GroupsManager.closeGroup(GroupsManager.java:376)
at 
org.netbeans.core.windows.documentgroup.DocumentGroupImpl.close(DocumentGroupImpl.java:70)
at 
org.netbeans.core.windows.documentgroup.GroupsManager.openGroup(GroupsManager.java:172)
at 
org.netbeans.core.windows.documentgroup.DocumentGroupImpl.open(DocumentGroupImpl.java:66)
at 
org.netbeans.core.windows.documentgroup.GroupsMenuAction$OpenGroupAction$1.run(GroupsMenuAction.java:167)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)

{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1048) Long Product Information displays the end of text in About box

2018-07-16 Thread Svatopluk Dedic (JIRA)
Svatopluk Dedic created NETBEANS-1048:
-

 Summary: Long Product Information displays the end of text in 
About box
 Key: NETBEANS-1048
 URL: https://issues.apache.org/jira/browse/NETBEANS-1048
 Project: NetBeans
  Issue Type: Bug
  Components: core
Affects Versions: 8.2
Reporter: Svatopluk Dedic
Assignee: Svatopluk Dedic
 Fix For: Next


The product information displayed in About box may be long enough to flow out 
of the fixed-size box. The end of the text is displayed, as the caret in the 
edit area is positioned at the end of the inserted text.

IMHO it would be more appropriate to display start of the text, that typically 
contains product name, trademarks etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1047) PHP spaces when using Source / Organize Members

2018-07-16 Thread Alberto Rinaudo (JIRA)
Alberto Rinaudo created NETBEANS-1047:
-

 Summary: PHP spaces when using Source / Organize Members
 Key: NETBEANS-1047
 URL: https://issues.apache.org/jira/browse/NETBEANS-1047
 Project: NetBeans
  Issue Type: Bug
  Components: php - Formatting & Indentation
Affects Versions: 9.0
Reporter: Alberto Rinaudo


Hi,

This thing has been bugging me for a long time.

I always use "Organize Members" to make my code look clean and readable with 0 
effort.

For php, however, some spaces are put in the wrong place.

This is how php is formatted when using "OR":
{code}
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-1024) EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.

2018-07-16 Thread Alexander Faust (JIRA)


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

Alexander Faust commented on NETBEANS-1024:
---

I've attached an JAXB demo application.

> EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.
> 
>
> Key: NETBEANS-1024
> URL: https://issues.apache.org/jira/browse/NETBEANS-1024
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Persistence, platform - Data Systems
>Affects Versions: 9.0
> Environment: Netbeans 9.0 build 302-on-20180517 + All updates, 
> JDK8u171 / JDK10.0.1 (both tried)
>Reporter: Alexander Faust
>Priority: Major
> Attachments: JAXBDemoApplication_Issue_NETBEANS-1024.zip
>
>
> After trying to compile my Netbeans 8.2 RCP application on the new Netbeans 
> development build 302-on-20180517, I got the following compiler error:
> error: package org.eclipse.persistence.jaxb does not exist.
> But the library is activated in the project settings -> Libraries -> java -> 
> EclipseLink (JPA 2.1)
> The data storage of my application is based on this JAXB library.
>  
> I've tagged this issue to the component "javaee - persistence", "platform - 
> Data Systems", because I've found no appropriate component...
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1024) EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.

2018-07-16 Thread Alexander Faust (JIRA)


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

Alexander Faust commented on NETBEANS-1024:
---

It seems that the package "org.eclipse.persistence.jaxb" and their content are 
not available.

> EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.
> 
>
> Key: NETBEANS-1024
> URL: https://issues.apache.org/jira/browse/NETBEANS-1024
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Persistence, platform - Data Systems
>Affects Versions: 9.0
> Environment: Netbeans 9.0 build 302-on-20180517 + All updates, 
> JDK8u171 / JDK10.0.1 (both tried)
>Reporter: Alexander Faust
>Priority: Major
> Attachments: JAXBDemoApplication_Issue_NETBEANS-1024.zip
>
>
> After trying to compile my Netbeans 8.2 RCP application on the new Netbeans 
> development build 302-on-20180517, I got the following compiler error:
> error: package org.eclipse.persistence.jaxb does not exist.
> But the library is activated in the project settings -> Libraries -> java -> 
> EclipseLink (JPA 2.1)
> The data storage of my application is based on this JAXB library.
>  
> I've tagged this issue to the component "javaee - persistence", "platform - 
> Data Systems", because I've found no appropriate component...
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1024) EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.

2018-07-16 Thread Alexander Faust (JIRA)


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

Alexander Faust commented on NETBEANS-1024:
---

Console Output:

platform.download:
ant -f 
C:\\Users\\Install\\Documents\\NetBeansProjects\\JAXBDemoApplication_Issue_NETBEANS-1024
 build
branding:
files-init:
release:
build:
org.yourorg.module1.taskdefs:
org.yourorg.module1.common-init:
org.yourorg.module1.projectized-common.basic-init:
org.yourorg.module1.basic-init:
org.yourorg.module1.files-init:
org.yourorg.module1.nbm-license-init:
org.yourorg.module1.build-init:
Scanning for modules in C:\Users\Install\Desktop\netbeans\extide
Scanning for modules in C:\Users\Install\Desktop\netbeans\ide
Scanning for modules in C:\Users\Install\Desktop\netbeans\java
Scanning for modules in C:\Users\Install\Desktop\netbeans\platform
Scanning for modules in suite 
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024
Warning: org.yourorg.module1 lacks a unit test dependency on 
org.netbeans.libs.junit4; using default dependencies for compatibility
org.yourorg.module1.init:
org.yourorg.module1.up-to-date:
org.yourorg.module1.compile:
Compiling 1 source file to 
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:11:
 error: package org.eclipse.persistence.jaxb does not exist
import org.eclipse.persistence.jaxb.JAXBContextFactory;
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:12:
 error: package org.eclipse.persistence.jaxb does not exist
import org.eclipse.persistence.jaxb.JAXBMarshaller;
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:13:
 error: package org.eclipse.persistence.jaxb does not exist
import org.eclipse.persistence.jaxb.JAXBUnmarshaller;
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:34:
 error: cannot find symbol
    private JAXBUnmarshaller unmarschaller;
  symbol:   class JAXBUnmarshaller
  location: class JAXBTest
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:39:
 error: cannot find symbol
    private JAXBMarshaller marshaller;
  symbol:   class JAXBMarshaller
  location: class JAXBTest
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:24:
 warning: [rawtypes] found raw type: Class
    private Class[] ioClass;
  missing type arguments for generic class Class
  where T is a type-variable:
    T extends Object declared in class Class
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:54:
 error: cannot find symbol
    ioContext = JAXBContextFactory.createContext(ioClass, new HashMap<>());
  symbol:   variable JAXBContextFactory
  location: class JAXBTest
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:56:
 error: cannot find symbol
    marshaller = (JAXBMarshaller) ioContext.createMarshaller();
  symbol:   class JAXBMarshaller
  location: class JAXBTest
C:\Users\Install\Documents\NetBeansProjects\JAXBDemoApplication_Issue_NETBEANS-1024\module1\src\org\yourorg\module1\JAXBTest.java:59:
 error: cannot find symbol
    unmarschaller = (JAXBUnmarshaller) ioContext.createUnmarshaller();
  symbol:   class JAXBUnmarshaller
  location: class JAXBTest
8 errors
2 warnings
C:\Users\Install\Desktop\netbeans\harness\suite.xml:163: The following error 
occurred while executing this line:
C:\Users\Install\Desktop\netbeans\harness\common.xml:201: Compile failed; see 
the compiler error output for details.
BUILD FAILED (total time: 1 second)

> EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.
> 
>
> Key: NETBEANS-1024
> URL: https://issues.apache.org/jira/browse/NETBEANS-1024
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Persistence, platform - Data Systems
>Affects Versions: 9.0
> Environment: Netbeans 9.0 build 302-on-20180517 + All updates, 
> JDK8u171 / JDK10.0.1 (both tried)
>Reporter: Alexander Faust
>Priority: Major
> Attachments: JAXBDemoApplication_Issue_NETBEANS-1024.zip
>
>
> After trying to compile my Netbeans 

[jira] [Updated] (NETBEANS-1024) EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.

2018-07-16 Thread Alexander Faust (JIRA)


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

Alexander Faust updated NETBEANS-1024:
--
Attachment: JAXBDemoApplication_Issue_NETBEANS-1024.zip

> EclipseLink (JPA 2.1) - package org.eclipse.persistence.jaxb does not exist.
> 
>
> Key: NETBEANS-1024
> URL: https://issues.apache.org/jira/browse/NETBEANS-1024
> Project: NetBeans
>  Issue Type: Bug
>  Components: javaee - Persistence, platform - Data Systems
>Affects Versions: 9.0
> Environment: Netbeans 9.0 build 302-on-20180517 + All updates, 
> JDK8u171 / JDK10.0.1 (both tried)
>Reporter: Alexander Faust
>Priority: Major
> Attachments: JAXBDemoApplication_Issue_NETBEANS-1024.zip
>
>
> After trying to compile my Netbeans 8.2 RCP application on the new Netbeans 
> development build 302-on-20180517, I got the following compiler error:
> error: package org.eclipse.persistence.jaxb does not exist.
> But the library is activated in the project settings -> Libraries -> java -> 
> EclipseLink (JPA 2.1)
> The data storage of my application is based on this JAXB library.
>  
> I've tagged this issue to the component "javaee - persistence", "platform - 
> Data Systems", because I've found no appropriate component...
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-1039) Netbeans, C++, Remote - Code Assistant doesn't pick up include files

2018-07-16 Thread red (JIRA)


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

red updated NETBEANS-1039:
--
Environment: Dev laptop running Win10 x64, Java 1.8.0_161 with clean 
install of Netbeans 8.2 C++ bundle; Raspberry PI with Alpine Linux 3.8 and GCC, 
G++, GDBServer, Make apks loaded. All /usr/include files present on PI. 
Netbeans connectivity via SSH private key, Samba installed on PI.   (was: Win10 
x64, Java 1.8.0_161 with clean install of Netbeans 8.2 C++ bundle; Raspberry PI 
with Alpine Linux 3.8 and GCC, G++, GDBServer, Make apks loaded. All 
/usr/include files present on PI. Netbeans connectivity via SSH private key 
only, no samba on PI. )
Description: 
A minimal C++ source code file remote compiles \ runs \ debugs correctly, but 
Code Assistant redlines any #include files\functions, e.g.  and 
printf().

Tools...Options...Code Assistance shows all the correct include paths for C & 
C++ that it should be using to locate the header files in the PI. "Reset 
settings" has no effect on the issue.

Menu option "project"... "code assistant"... "Clean C/C++cache and restart 
IDE", causes source code re-displayed on restart with no redlines. Clicking in 
the source code window then causes the code to get redlined again.

Menu option code assistant ... "Failed #include/#error Directives" doesn't do 
anything.

Have tried all suggestions found on the internet to try and fix issue with no 
success.

  was:
Minimal C++ source code file remote compiles \ runs \ debugs correctly, but 
Code Assistant redlines any #include files\functions, e.g.  and 
printf().

Tools...Options...Code Assistance shows all the correct include paths for C & 
C++ that it should be using to locate the header files in the PI. "Reset 
settings" has no effect on the issue.

Menu option "project"... "code assistant"... "Clean C/C++cache and restart 
IDE", causes source code re-displayed on restart with no redlines. Clicking in 
the source code window then causes the code to get redlined again.

Menu option code assistant ... "Failed #include/#error Directives" doesn't do 
anything.

Have tried all suggestions found on the internet to try and fix issue with no 
success.


A workaround for this problem is as follows -

step 1 - Using Samba, make a copy of the remotes include files\folders onto you 
local hard drive. Put the files at the root of your drive, e.g. 
D:\usr\include. You only need to copy over the folders that are listed in 
the Code Assistance include directory lists.

step 2 - In your Project properties, under Build ... C and C++ Compiler, set 
the "Include Directories" list to be identical to that of the Code Assistance 
include directories... just prefix each line with D:\. If cut & pasting, the 
path separators don't need to be changed from Unix style - it still works.

Code Assistant will then work correctly. You only need to update the local 
include files should they ever change.

 

 

> Netbeans, C++, Remote - Code Assistant doesn't pick up include files
> 
>
> Key: NETBEANS-1039
> URL: https://issues.apache.org/jira/browse/NETBEANS-1039
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Completion & Templates
>Affects Versions: 8.2
> Environment: Dev laptop running Win10 x64, Java 1.8.0_161 with clean 
> install of Netbeans 8.2 C++ bundle; Raspberry PI with Alpine Linux 3.8 and 
> GCC, G++, GDBServer, Make apks loaded. All /usr/include files present on PI. 
> Netbeans connectivity via SSH private key, Samba installed on PI. 
>Reporter: red
>Priority: Major
>
> A minimal C++ source code file remote compiles \ runs \ debugs correctly, but 
> Code Assistant redlines any #include files\functions, e.g.  and 
> printf().
> Tools...Options...Code Assistance shows all the correct include paths for C & 
> C++ that it should be using to locate the header files in the PI. "Reset 
> settings" has no effect on the issue.
> Menu option "project"... "code assistant"... "Clean C/C++cache and restart 
> IDE", causes source code re-displayed on restart with no redlines. Clicking 
> in the source code window then causes the code to get redlined again.
> Menu option code assistant ... "Failed #include/#error Directives" doesn't do 
> anything.
> Have tried all suggestions found on the internet to try and fix issue with no 
> success.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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