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 237244 - invalid css shows as error on file
Summary: invalid css shows as error on file
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 8 x64
: P3 normal with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 11:03 UTC by akobberup
Modified: 2014-07-28 09:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot with filtering out css errors (23.34 KB, image/png)
2013-12-06 11:21 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2013-10-17 11:03:14 UTC
I work on a java GWT project, and have several css files in my source folder that contain invalid css. 
This is because the GWT framework parse the individual files in order to make one unified css file.

Here is an example:

@external cellTableSelectedRow, cellTableHoveredRow, cellTableSelectedRow, cellTableLoading;
.cellTableLoading{
	margin:30px 0px 30px 0px;
}
...
...
...

This css causes an "Unexpected token COMMA found" and an "Unexpected token IDENT found" error.

In previous versions of NB (7.3) this error has been marked on the line as an error. In the dev versions of nb (201310150001) it is shown as an error on the file, and thus on the project.

Is it posible to make the showing this error hint optional, like it is with the java hints? They can be configured to show as a warning on the line, error on the line or error!
Currently no actions are provided for the error hint.
Comment 1 ubue 2013-12-06 09:18:40 UTC
this is anoying, same problem here

@sprite .comboBox.enabled button {
	gwt-image: "comboBoxArrowDown";


gives

"Unexpected token DOT found"

I have lots of "errors" like this for files which are working correctly.
Comment 2 Vladimir Riha 2013-12-06 09:24:44 UTC
If you install 7.4 and all updates, there is a feature to filter out parsing errors from file/parent folders/project. This could help you to quickly hide it
Comment 3 ubue 2013-12-06 11:13:00 UTC
(In reply to Vladimir Riha from comment #2)
> If you install 7.4 and all updates, there is a feature to filter out parsing
> errors from file/parent folders/project. This could help you to quickly hide
> it

Hmm can't find this.

I have 7.4 with no updates available, all plugins updated.
It shows me Build 201310111528.

I can set filters in the Action View but that doesn't help with the project.
Comment 4 Vladimir Riha 2013-12-06 11:21:14 UTC
Created attachment 142900 [details]
Screenshot with filtering out css errors

If you open Help->About, it should say something like

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1


To check for updates manually, try Help->Check for updates. Once updated, if you open css file with error inside, click on the bulb icon on the line with error and select it to filter out. See issue 141181 for more details.
Comment 5 ubue 2013-12-06 11:30:17 UTC
great, got it.
thank you !!!!
Comment 6 markiewb 2013-12-17 09:37:56 UTC
(In reply to Vladimir Riha from comment #4)
> Created attachment 142900 [details]
> Screenshot with filtering out css errors
> 
> If you open Help->About, it should say something like
> 
> Product Version: NetBeans IDE 7.4 (Build 201310111528)
> Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
> 
> 
> To check for updates manually, try Help->Check for updates. Once updated, if
> you open css file with error inside, click on the bulb icon on the line with
> error and select it to filter out. See issue 141181 for more details.

Thanks for the screenshot. That would have been an item for the 7.4 noteworthy page!
Comment 7 Marek Fukala 2014-07-28 09:05:27 UTC
such errors can be suppressed by file/folder as Vlada mentioned.