PhpStorm 10.0 less issue

Hi, I have phpstorm 10.0 and i am trying to compile less placeholder mixin code but getting error "Parse Error: Unrecognised input".My code is below and it work on  less 2.0.0 and  new versions.Kindly tell me what less version in  phpstorm 10.0 ? and how i can solve this issue.Thank you

.placeholder(@rules) {

    &::-webkit-input-placeholder {
        @rules();
    }
    &:-moz-placeholder {
        @rules();
    }
    &::-moz-placeholder {
        @rules();
    }
    &:-ms-input-placeholder {
        @rules();
    }
}

 

1 comment
Comment actions Permalink

Hi there,

Where do you see such error? In editor or during actual compilation? Screenshots please.

  • If it's in editor, then please try "File | Invalidate Caches..." and restart IDE -- maybe some glitches as your code works just fine here.
  • If it's during compilation ... then PhpStorm has no built-in LESS compiler -- it will use whatever you have configured it to use. But that actually depends on what and how you compile your LESS code. Do you use File Watchers for this.. or LESS-specific plugin? Details please.

File Watchers are described in this manual: https://confluence.jetbrains.com/display/PhpStorm/File+Watchers+in+PhpStorm

0

Please sign in to leave a comment.