[jira] [Updated] (NETBEANS-4641) Code auto formatting for try-with-resources statements

2022-04-19 Thread Bernd Michaely (Jira)


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

Bernd Michaely updated NETBEANS-4641:
-
Affects Version/s: 13

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting & Indentation, java - Editor
>Affects Versions: 12.0, 13
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

-
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] [Reopened] (NETBEANS-4641) Code auto formatting for try-with-resources statements

2022-04-19 Thread Bernd Michaely (Jira)


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

Bernd Michaely reopened NETBEANS-4641:
--

Confirmed, problem is still there in NB 13

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting & Indentation, java - Editor
>Affects Versions: 12.0
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

-
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-4641) Code auto formatting for try-with-resources statements

2021-11-15 Thread Bernd Michaely (Jira)


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

Bernd Michaely closed NETBEANS-4641.

Resolution: Information Provided

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting & Indentation, java - Editor
>Affects Versions: 12.0
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
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-4641) Code auto formatting for try-with-resources statements

2021-07-12 Thread Bernd Michaely (Jira)


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

Bernd Michaely commented on NETBEANS-4641:
--

I also verified, that with "nb-javac" plugin installed, it works fine with 
NB12.0-LTS also.

(I had not installed it before – without it, the line

{{try (final BufferedInputStream s = new BufferedInputStream(...))}}

is formatted correctly, while

{{try (var s = new BufferedInputStream(...))}}

{{gets an additional space).}}

 

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting & Indentation, java - Editor
>Affects Versions: 12.0
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
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-4641) Code auto formatting for try-with-resources statements

2021-07-08 Thread Bernd Michaely (Jira)


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

Bernd Michaely commented on NETBEANS-4641:
--

I meanwhile upgraded to NB12.4 and just verified, the problem is gone. Thanks!

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting & Indentation, java - Editor
>Affects Versions: 12.0
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
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-5174) JavaDoc window sometimes not working for Swing components

2020-12-21 Thread Bernd Michaely (Jira)


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

Bernd Michaely updated NETBEANS-5174:
-
Summary: JavaDoc window sometimes not working for Swing components  (was: 
JavaDoc window not working for Swing components)

> JavaDoc window sometimes not working for Swing components
> -
>
> Key: NETBEANS-5174
> URL: https://issues.apache.org/jira/browse/NETBEANS-5174
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 12.2
> Environment: Arch Linux, AdoptOpenJDK 15.0.1+9, official NB 12.2 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> To reproduce the problem:
>  * Open an editor window containing a java class using some Swing component
>  * Have the Javadoc window open
>  * Place the caret on a Swing type (JPanel, JList, JScrollPane, …)
> Sometimes, the Javadoc window keeps showing »Loading Javadoc...« , and it 
> causes an error in the IDE:
> … An error occurred during parsing of 'java.desktop/javax/swing/JPanel.java 
> in /opt/local/java/latest15/lib/src.zip' …
> I can't say exactly, under which conditions the error appears, it only 
> happens occasionally.
> If this happens repeatedly, at some point the Javadoc windows stops working 
> completely.
> The 'Java Platform Manager' uses (as created by default) the Javadoc from:
> »https://docs.oracle.com/en/java/javase/15/docs/api/«



--
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-5174) JavaDoc window not working for Swing components

2020-12-21 Thread Bernd Michaely (Jira)


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

Bernd Michaely updated NETBEANS-5174:
-
Description: 
To reproduce the problem:
 * Open an editor window containing a java class using some Swing component
 * Have the Javadoc window open
 * Place the caret on a Swing type (JPanel, JList, JScrollPane, …)

Sometimes, the Javadoc window keeps showing »Loading Javadoc...« , and it 
causes an error in the IDE:

… An error occurred during parsing of 'java.desktop/javax/swing/JPanel.java in 
/opt/local/java/latest15/lib/src.zip' …

I can't say exactly, under which conditions the error appears, it only happens 
occasionally.

If this happens repeatedly, at some point the Javadoc windows stops working 
completely.

The 'Java Platform Manager' uses (as created by default) the Javadoc from:

»https://docs.oracle.com/en/java/javase/15/docs/api/«

  was:
To reproduce the problem:
 * Open an editor window containing a java class using some Swing component
 * Have the Javadoc window open
 * Place the caret on a Swing type (JPanel, JList, JScrollPane, …, seems to be 
the case for any Swing type (at least all i have tried))

The Javadoc window keeps showing »Loading Javadoc...« , and it causes an error 
in the IDE:

… An error occurred during parsing of 'java.desktop/javax/swing/JPanel.java in 
/opt/local/java/latest15/lib/src.zip' …

 


> JavaDoc window not working for Swing components
> ---
>
> Key: NETBEANS-5174
> URL: https://issues.apache.org/jira/browse/NETBEANS-5174
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 12.2
> Environment: Arch Linux, AdoptOpenJDK 15.0.1+9, official NB 12.2 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> To reproduce the problem:
>  * Open an editor window containing a java class using some Swing component
>  * Have the Javadoc window open
>  * Place the caret on a Swing type (JPanel, JList, JScrollPane, …)
> Sometimes, the Javadoc window keeps showing »Loading Javadoc...« , and it 
> causes an error in the IDE:
> … An error occurred during parsing of 'java.desktop/javax/swing/JPanel.java 
> in /opt/local/java/latest15/lib/src.zip' …
> I can't say exactly, under which conditions the error appears, it only 
> happens occasionally.
> If this happens repeatedly, at some point the Javadoc windows stops working 
> completely.
> The 'Java Platform Manager' uses (as created by default) the Javadoc from:
> »https://docs.oracle.com/en/java/javase/15/docs/api/«



--
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-5174) JavaDoc window not working for Swing components

2020-12-21 Thread Bernd Michaely (Jira)
Bernd Michaely created NETBEANS-5174:


 Summary: JavaDoc window not working for Swing components
 Key: NETBEANS-5174
 URL: https://issues.apache.org/jira/browse/NETBEANS-5174
 Project: NetBeans
  Issue Type: Bug
  Components: java - Source
Affects Versions: 12.2
 Environment: Arch Linux, AdoptOpenJDK 15.0.1+9, official NB 12.2 bin 
download
Reporter: Bernd Michaely


To reproduce the problem:
 * Open an editor window containing a java class using some Swing component
 * Have the Javadoc window open
 * Place the caret on a Swing type (JPanel, JList, JScrollPane, …, seems to be 
the case for any Swing type (at least all i have tried))

The Javadoc window keeps showing »Loading Javadoc...« , and it causes an error 
in the IDE:

… An error occurred during parsing of 'java.desktop/javax/swing/JPanel.java in 
/opt/local/java/latest15/lib/src.zip' …

 



--
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-4641) Code auto formatting for try-with-resources statements

2020-12-18 Thread Bernd Michaely (Jira)


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

Bernd Michaely updated NETBEANS-4641:
-
Priority: Major  (was: Minor)

> Code auto formatting for try-with-resources statements
> --
>
> Key: NETBEANS-4641
> URL: https://issues.apache.org/jira/browse/NETBEANS-4641
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting & Indentation, java - Editor
>Affects Versions: 12.0
> Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
> download
>Reporter: Bernd Michaely
>Priority: Major
>
> Since NB 12.0, auto formatting for try-with-resources statements adds an 
> additional space after the opening parenthesis after the try keyword. To 
> reproduce the problem, choose:
> Menu »Tools« → Options → Editor → Formatting →
> Language »Java« and Category »Spaces« →
> Tree item »Within Parentheses« → Checkbox "try"
> If checked, two spaces are added after the opening parenthesis after try, if 
> unchecked, one space is added, instead of one and zero.
> (Note, that there is also no example available in the preview. There is for 
> try-catch, but not for try-with-resources.)
>  



--
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-4555) Subversion integration doesn't work

2020-07-28 Thread Bernd Michaely (Jira)


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

Bernd Michaely commented on NETBEANS-4555:
--

I am using the Arch Linux subversion client (1.14.0 currently) in NB12.0, and 
it seems to work fine. So this is probably a Windows- or SVN-client- specific 
problem…

> Subversion integration doesn't work
> ---
>
> Key: NETBEANS-4555
> URL: https://issues.apache.org/jira/browse/NETBEANS-4555
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.0
> Environment: windows 10
> JAVA_VERSION="14.0.1"
> IMPLEMENTOR="Oracle Corporation"
>Reporter: Evgeny Knihuta
>Priority: Critical
> Attachments: svn_failed.png
>
>
> I use colabnet svn client and it works without problems with netbeans 11.3.
> Seems the svn integration in 12.0 is broken - with the same settings (11.3) 
> any operation with svn ends with modal window "SVN command failed" - 
> "Netbeans Subversion support requires a Subversion client! ..."



--
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-4641) Code auto formatting for try-with-resources statements

2020-07-27 Thread Bernd Michaely (Jira)
Bernd Michaely created NETBEANS-4641:


 Summary: Code auto formatting for try-with-resources statements
 Key: NETBEANS-4641
 URL: https://issues.apache.org/jira/browse/NETBEANS-4641
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Formatting & Indentation, java - Editor
Affects Versions: 12.0
 Environment: Arch Linux, AdoptOpenJDK 14.0.1, official NB 12.0 bin 
download
Reporter: Bernd Michaely


Since NB 12.0, auto formatting for try-with-resources statements adds an 
additional space after the opening parenthesis after the try keyword. To 
reproduce the problem, choose:

Menu »Tools« → Options → Editor → Formatting →

Language »Java« and Category »Spaces« →

Tree item »Within Parentheses« → Checkbox "try"

If checked, two spaces are added after the opening parenthesis after try, if 
unchecked, one space is added, instead of one and zero.

(Note, that there is also no example available in the preview. There is for 
try-catch, but not for try-with-resources.)

 



--
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-3973) Code auto formatting for lambda arrows

2020-03-06 Thread Bernd Michaely (Jira)
Bernd Michaely created NETBEANS-3973:


 Summary: Code auto formatting for lambda arrows
 Key: NETBEANS-3973
 URL: https://issues.apache.org/jira/browse/NETBEANS-3973
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 11.3
 Environment: Arch Linux and the included "jdk11-openjdk" package, 
official NB 11.3 bin download
Reporter: Bernd Michaely


Since NB 11.3, code auto formatting for lambda errors is broken. NB adds an 
additional space before the lambda arrow. To reproduce the problem choose

Menu Tools -> Options -> Editor -> Formatting ->

Language: Java

Category: Wrapping ->

- "Lambda Arrow" : Never

- Check "Wrap After Lambda Arrow"

Category: Spaces -> Around Operators

-> "Lambda Arrow" unchecked:

{{11.2: BinaryOperator plus = (a, b)->a+b;}}

{{11.3: BinaryOperator plus = (a, b)_->a+b;}}{{}}

-> or "Lambda Arrow" checked:

{{11.2: BinaryOperator plus = (a, b) -> a+b;}}

{{11.2: BinaryOperator plus = (a, b)_ -> a+b;}}{{}}

... the underscore chars indicating the additional space char.

Note, that the additional space only appears, if "Wrap After Lambda Arrow" is 
checked.

(This problem causes a lot of noise in Diff and VCS for existing code, so this 
is pretty annoying and currently prevents me from upgrading to NB 11.3)

 



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