Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions not recognised in webstorm #118

Closed
David-Carty opened this issue Jan 26, 2016 · 7 comments
Closed

Functions not recognised in webstorm #118

David-Carty opened this issue Jan 26, 2016 · 7 comments
Labels

Comments

@David-Carty
Copy link

I have the latest version of SASS compiler installed (3.4.21). I applied "_include-media.scss" to my project. I use Webstorm IDE (Latest version 11.0.3 and I find several functions are not recognised and as a consequence SASS fails to compile.

  noop(), 
  get-expression-operator($condition);
  get-expression-prefix($operator);
  get-expression-value($condition, $operator);
  to-number($value);

above functions not recognised,

Line 441 - unexpected token:

@return if($minus, -$result, $result);; - obvious two semi-colons.

@include media(slice($conditions, 2)...) { - invalid argument

Shame as this appears to offer very useful functionality.

@eduardoboucas
Copy link
Owner

@return if($minus, -$result, $result);; - obvious two semi-colons.

The two semi-colons aren't supposed to be there, but there's no reason why that would cause a fatal error. Neither LibSass or RubySass complain about it, as this gist shows: http://www.sassmeister.com/gist/536ad5177975f73cec28

@include media(slice($conditions, 2)...) { - invalid argument

There are no invalid arguments there.

@hugogiraudel any ideas?

@David-Carty
Copy link
Author

The double semi-colons are trivia, but there is a very popular IDE (Webstorm) that I, for one, cannot get the SASS to compile in.

@SimonWpt
Copy link

This seems to me a problem of strict validation. SASS is a script interpreter and process the instructions sequentially. If you move the the functions (like noop) on top, the error messages should disappear.

@David-Carty
Copy link
Author

Yes sir, that is correct. But strict validation is a positive in my view. Webstorm offer a 30 day trial if you want to see the point in question.

@SimonWpt
Copy link

I use PHPStorm and have the same problems ;)

@KittyGiraudel
Copy link
Collaborator

I don’t think this has anything to do with include-media in itself. Shall I close?

@eduardoboucas
Copy link
Owner

It compiles fine both on RubySass and LibSass, which are the targets we support, so I'm afraid there's not much more we can do. I'm happy for it to be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants