[ https://issues.apache.org/jira/browse/NETBEANS-4677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17297053#comment-17297053 ]
Rumi Mohammad commented on NETBEANS-4677: ----------------------------------------- The same goes for nullish assignments `??=`. I'd flag this as more than minor because it messes with the Format Code functionality, making everything align oddly and sometimes locking up the CPUs in a lengthy formatting process. It just crashed now, and I lost quite a bit of code. Stupid of me not to save before trying to format when I know this is broken... My current workaround is to include blank comments above the first line with a nullish assignment in each code block. For example: {code:java} { let x = x || 'this is ok'; // let y ??= 'please fix this', z ??= 'so formatting can work again'; } {code} > 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 > Components: javascript - Editor > Affects Versions: 12.0.1 > Reporter: Nghia Nguyen > Priority: Minor > Labels: bug, ide, syntax > 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