[jira] [Created] (NETBEANS-4677) Nullish coalescing operator (??) in JavaScript reported as an error in NetBeans.

2020-08-04 Thread Nghia Nguyen (Jira)
Nghia Nguyen created NETBEANS-4677:
--

 Summary: Nullish coalescing operator (??) in JavaScript reported 
as an error in NetBeans.
 Key: NETBEANS-4677
 URL: https://issues.apache.org/jira/browse/NETBEANS-4677
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.0.1
Reporter: Nghia Nguyen
 Attachments: image-2020-08-04-02-46-28-677.png

The following code is showing as an error in the IDE when it has a valid syntax 
in JavaScript:

 

{{let myVariable = null ?? 'hello world';}}

 

!image-2020-08-04-02-46-28-677.png!

 
 



--
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-4598) Indentation error for the 2nd last closing bracket in JavaScript.

2020-07-27 Thread Nghia Nguyen (Jira)


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

Nghia Nguyen updated NETBEANS-4598:
---
Description: 
The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

// Indentation problem:

{{function ABC( \{param1, param2}) {}}
 {{    for (var i = 0; i < 1; i++) {}}

 

{{} // This bracket should be be pushed in to match the for.}}
 {{}}}

 

{{// The following code is indenting correctly:}}

{{class Test {}}
 {{    static DEF( \{param1, param2}) {}}

{{    if (true) {}}

{{    } // By putting a comment here, it allowed the IDE to indent the 
block correctly.  If we remove it, the indentation will fail.}}
 {{}}}

 

 

!image-2020-07-17-14-09-25-087.png!
  

  was:
The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

// Indentation problem

{{function ABC( \{param1, param2}) {}}
 {{    for (var i = 0; i < 1; i++) {}}

 

{{} // This bracket should be be pushed in to match the for.}}
 {{}}}

 

{{// This code is the correct indentation.}}

{{class Test {}}
 {{    static DEF( \{param1, param2}) {}}

{{    if (true) {}}

{{    } // By putting a comment here, it allowed the IDE to indent the 
block correctly.  If we remove it, the indentation will fail.}}
 {{}}}

 

 

!image-2020-07-17-14-09-25-087.png!
  


> Indentation error for the 2nd last closing bracket in JavaScript.
> -
>
> Key: NETBEANS-4598
> URL: https://issues.apache.org/jira/browse/NETBEANS-4598
> Project: NetBeans
>  Issue Type: Bug
>  Components: javascript - Formatting  Indentation
>Affects Versions: 12.0
> Environment: Windows 10
>Reporter: Nghia Nguyen
>Priority: Minor
>  Labels: Indentation
> Attachments: image-2020-07-17-13-56-16-941.png, 
> image-2020-07-17-14-09-25-087.png
>
>
> The indentation engine seems to not be placing the 2nd last bracket in the 
> right place.  Even though I use the Format feature in the IDE, the 
> indentation is not correct.  If we add for example a comment // at the end of 
> the 2nd last closing bracket of a function, it will indent correctly.
>  
> // Indentation problem:
> {{function ABC( \{param1, param2}) {}}
>  {{    for (var i = 0; i < 1; i++) {}}
>  
> {{} // This bracket should be be pushed in to match the for.}}
>  {{}}}
>  
> {{// The following code is indenting correctly:}}
> {{class Test {}}
>  {{    static DEF( \{param1, param2}) {}}
> {{    if (true) {}}
> {{    } // By putting a comment here, it allowed the IDE to indent the 
> block correctly.  If we remove it, the indentation will fail.}}
>  {{}}}
>  
>  
> !image-2020-07-17-14-09-25-087.png!
>   



--
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-4598) Indentation error for the 2nd last closing bracket in JavaScript.

2020-07-27 Thread Nghia Nguyen (Jira)


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

Nghia Nguyen updated NETBEANS-4598:
---
Description: 
The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

// Indentation problem

{{function ABC( \{param1, param2}) {}}
{{    for (var i = 0; i < 1; i++) {}}

 

{{} // This bracket should be be pushed in to match the for.}}
{{}}}

 

{{// This code is the correct indentation.}}

{{class Test {}}
{{    static DEF( \{param1, param2}) {}}

{{    if (true) {}}

{{    } // By putting a comment here, it allowed the IDE to indent the 
block correctly.  If we remove it, the indentation will fail.}}
{{ }}}
{{}}}

 

 

!image-2020-07-17-14-09-25-087.png!
  

  was:
The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

!image-2020-07-17-14-09-25-087.png!
 


> Indentation error for the 2nd last closing bracket in JavaScript.
> -
>
> Key: NETBEANS-4598
> URL: https://issues.apache.org/jira/browse/NETBEANS-4598
> Project: NetBeans
>  Issue Type: Bug
>  Components: javascript - Formatting  Indentation
>Affects Versions: 12.0
> Environment: Windows 10
>Reporter: Nghia Nguyen
>Priority: Minor
>  Labels: Indentation
> Attachments: image-2020-07-17-13-56-16-941.png, 
> image-2020-07-17-14-09-25-087.png
>
>
> The indentation engine seems to not be placing the 2nd last bracket in the 
> right place.  Even though I use the Format feature in the IDE, the 
> indentation is not correct.  If we add for example a comment // at the end of 
> the 2nd last closing bracket of a function, it will indent correctly.
>  
> // Indentation problem
> {{function ABC( \{param1, param2}) {}}
> {{    for (var i = 0; i < 1; i++) {}}
>  
> {{} // This bracket should be be pushed in to match the for.}}
> {{}}}
>  
> {{// This code is the correct indentation.}}
> {{class Test {}}
> {{    static DEF( \{param1, param2}) {}}
> {{    if (true) {}}
> {{    } // By putting a comment here, it allowed the IDE to indent the 
> block correctly.  If we remove it, the indentation will fail.}}
> {{ }}}
> {{}}}
>  
>  
> !image-2020-07-17-14-09-25-087.png!
>   



--
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-4598) Indentation error for the 2nd last closing bracket in JavaScript.

2020-07-27 Thread Nghia Nguyen (Jira)


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

Nghia Nguyen updated NETBEANS-4598:
---
Description: 
The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

// Indentation problem

{{function ABC( \{param1, param2}) {}}
 {{    for (var i = 0; i < 1; i++) {}}

 

{{} // This bracket should be be pushed in to match the for.}}
 {{}}}

 

{{// This code is the correct indentation.}}

{{class Test {}}
 {{    static DEF( \{param1, param2}) {}}

{{    if (true) {}}

{{    } // By putting a comment here, it allowed the IDE to indent the 
block correctly.  If we remove it, the indentation will fail.}}
 {{}}}

 

 

!image-2020-07-17-14-09-25-087.png!
  

  was:
The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

// Indentation problem

{{function ABC( \{param1, param2}) {}}
{{    for (var i = 0; i < 1; i++) {}}

 

{{} // This bracket should be be pushed in to match the for.}}
{{}}}

 

{{// This code is the correct indentation.}}

{{class Test {}}
{{    static DEF( \{param1, param2}) {}}

{{    if (true) {}}

{{    } // By putting a comment here, it allowed the IDE to indent the 
block correctly.  If we remove it, the indentation will fail.}}
{{ }}}
{{}}}

 

 

!image-2020-07-17-14-09-25-087.png!
  


> Indentation error for the 2nd last closing bracket in JavaScript.
> -
>
> Key: NETBEANS-4598
> URL: https://issues.apache.org/jira/browse/NETBEANS-4598
> Project: NetBeans
>  Issue Type: Bug
>  Components: javascript - Formatting  Indentation
>Affects Versions: 12.0
> Environment: Windows 10
>Reporter: Nghia Nguyen
>Priority: Minor
>  Labels: Indentation
> Attachments: image-2020-07-17-13-56-16-941.png, 
> image-2020-07-17-14-09-25-087.png
>
>
> The indentation engine seems to not be placing the 2nd last bracket in the 
> right place.  Even though I use the Format feature in the IDE, the 
> indentation is not correct.  If we add for example a comment // at the end of 
> the 2nd last closing bracket of a function, it will indent correctly.
>  
> // Indentation problem
> {{function ABC( \{param1, param2}) {}}
>  {{    for (var i = 0; i < 1; i++) {}}
>  
> {{} // This bracket should be be pushed in to match the for.}}
>  {{}}}
>  
> {{// This code is the correct indentation.}}
> {{class Test {}}
>  {{    static DEF( \{param1, param2}) {}}
> {{    if (true) {}}
> {{    } // By putting a comment here, it allowed the IDE to indent the 
> block correctly.  If we remove it, the indentation will fail.}}
>  {{}}}
>  
>  
> !image-2020-07-17-14-09-25-087.png!
>   



--
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-4598) Indentation error for the 2nd last closing bracket in JavaScript.

2020-07-17 Thread Nghia Nguyen (Jira)
Nghia Nguyen created NETBEANS-4598:
--

 Summary: Indentation error for the 2nd last closing bracket in 
JavaScript.
 Key: NETBEANS-4598
 URL: https://issues.apache.org/jira/browse/NETBEANS-4598
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.0
 Environment: Windows 10
Reporter: Nghia Nguyen
 Attachments: image-2020-07-17-13-56-16-941.png, 
image-2020-07-17-14-09-25-087.png

The indentation engine seems to not be placing the 2nd last bracket in the 
right place.  Even though I use the Format feature in the IDE, the indentation 
is not correct.  If we add for example a comment // at the end of the 2nd last 
closing bracket of a function, it will indent correctly.

 

!image-2020-07-17-14-09-25-087.png!
 



--
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-4597) JavaScript import() command shows up as an error in the IDE.

2020-07-17 Thread Nghia Nguyen (Jira)
Nghia Nguyen created NETBEANS-4597:
--

 Summary: JavaScript import() command shows up as an error in the 
IDE.
 Key: NETBEANS-4597
 URL: https://issues.apache.org/jira/browse/NETBEANS-4597
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.0
 Environment: Windows
Reporter: Nghia Nguyen
 Attachments: image-2020-07-17-13-49-47-750.png

The following command in JavaScript shows up as an error in the IDE even though 
it is valid:

 

!image-2020-07-17-13-49-47-750.png!



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