This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267744 - Hint error on JSX inline style
Summary: Hint error on JSX inline style
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-29 10:07 UTC by kawas44
Modified: 2017-01-21 03:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kawas44 2016-08-29 10:07:59 UTC
Write this in any render function of a React component:
<div style={{display: 'none'}}>Hello World!</div>

Netbeans will warn you of the unexpected '{' char after the style property.



# Doc JSX inline styles
https://facebook.github.io/react/tips/inline-styles.html

# Used Netbeans
Product Version: NetBeans IDE Dev (Build 201608240002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Linux version 4.4.0-34-generic running on amd64; UTF-8; fr_FR (nb)
Comment 1 Petr Pisl 2016-08-30 11:24:25 UTC
It seems that it comes from the parser. Peto, can you look at this? Thanks.
Comment 2 Petr Hejl 2016-08-30 12:38:58 UTC
(In reply to Petr Pisl from comment #1)
> It seems that it comes from the parser. Peto, can you look at this? Thanks.

No, it's not. JS parser result is ok. The error is coming out from CSS parser.
Comment 3 naitsirch 2016-12-10 12:26:06 UTC
Same problem here. It would be nice if this could be fixed, because ReacJS becomes more popular these days ;-)
Comment 4 Milutin Kristofic 2017-01-17 15:33:21 UTC
Fixed in dev build.

http://hg.netbeans.org/jet-main/rev/cca2fa64fb7d
Comment 5 naitsirch 2017-01-17 19:30:33 UTC
Great news. Thanks for your work!
Comment 6 Quality Engineering 2017-01-21 03:04:33 UTC
Integrated into 'main-silver', will be available in build *201701210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cca2fa64fb7d
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #267744 - Hint error on JSX inline style