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 236388 - @import inside media query marked as error
Summary: @import inside media query marked as error
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-25 22:06 UTC by danfeidt
Modified: 2013-12-21 06:29 UTC (History)
1 user (show)

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 danfeidt 2013-09-25 22:06:19 UTC
When working with a set of LESS files from a wordpress theme, it seems like I get faulty debug instructions, and the syntax highlighting also seems to be not accurate, as the same type of statements have different highlighting on other lines. 

My standalone compiler CodeKit does not seem to throw errors on these lines so I think it

This should be reproducible using the Bones theme https://github.com/eddiemachado/bones

This statement has two lines of debug alerts:

@media only screen and (min-width: 768px) {
	// import grid
        @import "_grid.less";
	// styles in 768up.less
	@import "_768up.less";
} // end of media query

On the import _grid.less line, Unexpected tokens WS, STRING and SEMI found. The closing bracket line has an unexpected token RBRACE found. If I comment out this directive, the same type of error moves to the next @media statement.

Anyway the LESS parsing has otherwise been quite good and useful so keep up the good work. This is my first bug filed on Netbeans (and I'm just getting started with LESS) so if it's mis-filed or utterly wrong somehow, my apologies.
Comment 1 Vladimir Riha 2013-09-27 06:48:45 UTC
Reproducible, seems to be caused by @import inside media query. Thank you for reporting
Comment 2 knieblond 2013-11-22 07:45:05 UTC
Same Problem on Netbeans 7.4 PHP with SASS:

@import within @media not only mark errors, it also breaks the SASS operations chain. If I made a change within an imported SASS-file earlier (without this "error"), I don't had to manually save the importing file (with the marked "error"), but I have to do now. This is quite annoying and time consuming.

When is expected to be fixed this problem?
Comment 3 PowerKiKi 2013-12-10 07:44:46 UTC
Can confirm reproducibility on Netbeans 7.4 PHP with SASS
Comment 4 Ondrej Brejla 2013-12-12 12:18:47 UTC
Fixed in web-main #d5fe7b6041cc
Comment 5 knieblond 2013-12-20 08:56:58 UTC
Please tell us how?

After the last updates nothing changed for me. What is to do?
Comment 6 Ondrej Brejla 2013-12-20 09:01:28 UTC
It's fixed in the dev build, not in 7.4 patch.
Comment 7 knieblond 2013-12-20 09:16:23 UTC
Ah okay, I see.

When will the fix probably patched in Netbeans 7.4?

(In reply to Ondrej Brejla from comment #6)
> It's fixed in the dev build, not in 7.4 patch.
Comment 8 Ondrej Brejla 2013-12-20 09:18:35 UTC
It will not be in any patch probably, but will definitely be in NB 8.0.
Comment 9 knieblond 2013-12-20 09:26:06 UTC
Are you serious?

Take a look at the releases to date here https://netbeans.org/community/releases/roadmap.html. With a really optimistic extrapolation this will be in more than 15 month?!

(In reply to Ondrej Brejla from comment #8)
> It will not be in any patch probably, but will definitely be in NB 8.0.
Comment 10 PowerKiKi 2013-12-21 06:29:34 UTC
Actually, according to the dashboard (http://services.netbeans.org/dashboard/web/), the beta is planned in January, and the final 8.0 release around March.

So that would be rather ~3-4 months (or ~1 month if you are willing to use the beta), instead of the 15 months. I would also have preferred to see this fix in the 7.4 branch, but it will come much sooner that what you claimed.

Anyway, thanks for the fix Ondrej !