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.
Created attachment 156837 [details] Screenshot of error annotations in one of newly created SCSS files. Product Version: NetBeans IDE Dev (Build 201510200002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb) Description: ============ If user creates new Oracle JET QuickStart Basic sample project, it contains errors from the very start. In _oj.utilities.urls.scss file there are three unrecognised variables - see attached screenshot. Steps to reproduce: =================== 1. Install Oracle JET HTML Editor plugin to the latest NetBeans development build. 2. Invoke "File > New Project..." from main menu. 3. Select "HTML5/JavaScript" project category. 4. Select "Oracle JET QuickStart Basic" project and push "Next >" button. 5. Push "Finish" button. Expected: The new project is created and there are no files with error badges. Actual: The new project is created and "scss" node under "OracleJETApplication > Site Root" is marked with "Contains errors" badge.
The url in css has different syntax than in less and sass. Our parser is combining css, less and sass, therefore it is difficult to parse url(http://something) and url(string + var) in one parser. It is already known problem. *** This bug has been marked as a duplicate of bug 238988 ***
OK, verifying then.
Specifically for the OJET library case - could the errors be ignored in _oj.*.scss files? Reopening for evaluation for the OJET plugin case. Mito is looking into it.
Created attachment 156848 [details] patch small hack Here is a hack, that disables automatically (during new project creation) css errors in _oj.utilities.urls.scss.
(In reply to Milutin Kristofic from comment #4) > Here is a hack, that disables automatically (during new project creation) > css errors in _oj.utilities.urls.scss. As discussed offline this is a reasonable hack which at least hides the parser problem from the user when playing with the new project created from the Oracle JET QuickStart Basic project template. Long-term we do need a proper fix in the parser. Such fix should be 81patch-candidate. Mito, integrate this hack to web-main and release81 branch.
in web-main http://hg.netbeans.org/web-main/rev/e87d9b2b85bd
release81: http://hg.netbeans.org/releases/rev/9f45e90575f5
Integrated into 'main-silver', will be available in build *201510210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e87d9b2b85bd User: Milutin Kristofic <mkristofic@netbeans.org> Log: #256049 - Unknown variables in newly created JET QuickStart Basic project
Created attachment 156884 [details] Still experiencing the same issue in today's daily build. Product Version: NetBeans IDE Dev (Build 201510210002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
(In reply to Jiri Kovalsky from comment #9) > Created attachment 156884 [details] > Still experiencing the same issue in today's daily build. Jirko, two things: - you need a new version of the OJET plugin, not only the daily build which already has previous version of OJET plugin in userdir, because the fix is in the OJET plugin - the fix only affects newly created projects from the JET template - if you open already existing project, the errors in this particular file are not ignored
One note: the "fix" will stop working once the JET uses the problematic syntax in any other file which will not match the currently-ignored file name. This can happen anytime and will cause "problems" immediately because we always download the latest ZIP when creating a new project (or a sample).
Product Version: NetBeans IDE Dev (Build 201510220002) Java: 1.8.0_65; Java HotSpot(TM) 64-Bit Server VM 25.65-b01 Runtime: Java(TM) SE Runtime Environment 1.8.0_65-b17 System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb) Verified in today's trunk build. Thanks!
Verified.