[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=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] [Updated] (NETBEANS-5849) Autocomplete for PHP use stops working right after line with "use" which use grouping

2021-07-12 Thread Olexandr Ponomarenko (Jira)


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

Olexandr Ponomarenko updated NETBEANS-5849:
---
Description: 
Test project structure:

NS1\First.php
 NS1\Second.php
 NS2\Third.php
 test.php

Trying to autocomplete class name NS2\Third in test.php fails:
  
{code:php}
 Autocomplete for PHP use stops working right after line with "use" which use 
> grouping
> -
>
> Key: NETBEANS-5849
> URL: https://issues.apache.org/jira/browse/NETBEANS-5849
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, php - Editor
>Affects Versions: 12.4
> Environment: Windows 10 64-bit
> NetBeans 12.4 binaries
> PHP 7.4.21
>Reporter: Olexandr Ponomarenko
>Assignee: Junichi Yamamoto
>Priority: Major
>
> Test project structure:
> NS1\First.php
>  NS1\Second.php
>  NS2\Third.php
>  test.php
> Trying to autocomplete class name NS2\Third in test.php fails:
>   
> {code:php}
>  use NS1\{
> First,
> Second
> };
> use third<<<
> {code}
> But it works well if used before "use" with grouping:
> {code:php}
>  use NS2\Third;
> use NS1\{
> First,
> Second
> };
> {code}
> Also, autocompletion for class names works fine inside class body which has 
> grouping in use block.



--
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] [Assigned] (NETBEANS-5849) Autocomplete for PHP use stops working right after line with "use" which use grouping

2021-07-12 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto reassigned NETBEANS-5849:
--

Assignee: Junichi Yamamoto

> Autocomplete for PHP use stops working right after line with "use" which use 
> grouping
> -
>
> Key: NETBEANS-5849
> URL: https://issues.apache.org/jira/browse/NETBEANS-5849
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, php - Editor
>Affects Versions: 12.4
> Environment: Windows 10 64-bit
> NetBeans 12.4 binaries
> PHP 7.4.21
>Reporter: Olexandr Ponomarenko
>Assignee: Junichi Yamamoto
>Priority: Major
>
> Test project structure:
> NS1\First.php
>  NS1\Second.php
>  NS2\Third.php
>  test.php
> Trying to autocomplete class name NS2\Third in test.php fails:
>   
> {code:php}
>  use NS1\{
> First,
> Second
> };
> use third<<<
> {code}
> But it works well if used before "use" with grouping:
> {code:php}
>  use NS2\Third;
> use NS1\{
> First,
> Second
> };
> {code}
> Also, autocompletion for class names works fine inside class body which have 
> grouping in use block.



--
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-5849) Autocomplete for PHP use stops working right after line with "use" which use grouping

2021-07-12 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-5849:


Reproducible. Thanks for reporting it.

> Autocomplete for PHP use stops working right after line with "use" which use 
> grouping
> -
>
> Key: NETBEANS-5849
> URL: https://issues.apache.org/jira/browse/NETBEANS-5849
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Code, php - Editor
>Affects Versions: 12.4
> Environment: Windows 10 64-bit
> NetBeans 12.4 binaries
> PHP 7.4.21
>Reporter: Olexandr Ponomarenko
>Priority: Major
>
> Test project structure:
> NS1\First.php
>  NS1\Second.php
>  NS2\Third.php
>  test.php
> Trying to autocomplete class name NS2\Third in test.php fails:
>   
> {code:php}
>  use NS1\{
> First,
> Second
> };
> use third<<<
> {code}
> But it works well if used before "use" with grouping:
> {code:php}
>  use NS2\Third;
> use NS1\{
> First,
> Second
> };
> {code}
> Also, autocompletion for class names works fine inside class body which have 
> grouping in use block.



--
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-5849) Autocomplete for PHP use stops working right after line with "use" which use grouping

2021-07-12 Thread Olexandr Ponomarenko (Jira)
Olexandr Ponomarenko created NETBEANS-5849:
--

 Summary: Autocomplete for PHP use stops working right after line 
with "use" which use grouping
 Key: NETBEANS-5849
 URL: https://issues.apache.org/jira/browse/NETBEANS-5849
 Project: NetBeans
  Issue Type: Bug
  Components: php - Code, php - Editor
Affects Versions: 12.4
 Environment: Windows 10 64-bit
NetBeans 12.4 binaries
PHP 7.4.21
Reporter: Olexandr Ponomarenko


Test project structure:

NS1\First.php
 NS1\Second.php
 NS2\Third.php
 test.php

Trying to autocomplete class name NS2\Third in test.php fails:
  
{code:php}
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5847) Allow headless NewFromTemplate for Maven project types

2021-07-12 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach updated NETBEANS-5847:
--
Summary: Allow headless NewFromTemplate for Maven project types  (was: 
Allow headless NewFromTemplate)

> Allow headless NewFromTemplate for Maven project types
> --
>
> Key: NETBEANS-5847
> URL: https://issues.apache.org/jira/browse/NETBEANS-5847
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Maven
>Affects Versions: 12.5
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Major
> Fix For: Next
>
>
> Gradle allows to use 'new from template' features in a headless environment, 
> i.e. when running as a LSP server. Maven *WizardIterators* in 
> *org.netbeans.modules.maven.newproject.idenative* could be turned into 
> *CreateFromTemplateHandlers* similar to how Gradle iterator was done in 
> [PR-2999|https://github.com/apache/netbeans/pull/2999]
>  



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