problem with compilation less in css via watcher in the IntellIj2017.2.7

Hello, I have a problem:
http://joxi.ru/LmGvRbBie7RaLr
simple .less is work well if I don't use another files, actually, - if I don't include @import "packages/style-pack";  or some else.  It doesn't see variables!
I had version lessc 3.9.0, now I install lessc 2.7.2...
But this project doesn't have this error in iMac, when also installed lessc 2.7.2 and all variables is correct and normal sees )
My settings in the idea:
http://joxi.ru/D2Pv7l9ip0pj0r

19 comments

doesn't look related to the IDE - SyntaxError  is reported by the compiler. What is the result of running `lessc --no-color style.less` in terminal?

0

Hello, Elena!
http://joxi.ru/Y2Lvxb9i96Qgjr
the fact in that this project works in iMac (too lessc 2.7.2) , but in my ubunta it doesn't work. Of course, I don't think it's a matter of the operation system.

0

In terminal, please try running lessc in a directory where your style.less resides (open terminal and cd to css/less folder, then run `lessc --no-color style.less` )

0

not too helpful... can you share a project I can use to recreate the issue?

0

http://flexkit.seotoaster.com/   -   there is a framework which has problem with this. But I once again remind you that all this works on iMaс, where the same version of intellIj2017.2.7 and the same version of lessc2.7.2 are also installed.
In this framework if you change for example basic.less - you can see - http://joxi.ru/n2YjEl9to3koWA

0

works fine for me using this framework - everything is compiled properly when modifying css/less/_work_space/basic.less...

0

which version lessc do you use? And what OS do you use too?

0

Windows 7; lessc version is the same as yours... BTW, did you try updating/re-installing less?

0

I used lessc 3.9.0,

but when framework didn't work - I reinstall less for 2.7.2.

but it doesn't work...sadness

0

did you face the same error when using 3.9? Did you modify the original framework files in any way?

0

didn't modify the original framework, and with 3.9.0 was the same error. 

0

according to you, you have to add `@import "packages/style-pack"` or similar to reproduce the issue. But basic.less doesn't import anything directly... are there any specific steps that lead to the issue?

0

BTW, the error is reported against the certain file (I can only see line number - 563 - as you have painted out the path in your image for some reason). What file is it?

0

I tried to change just any code in the basic.less or any other and I have similar problem and again problem with variables: http://joxi.ru/xAeV37KTp9Mjpr   -  this just next .less-file

0

it's again not clear what file the issue is reported for (path is cut off in screenshot). so, what file/line is reported as error?

0

why line? the screen also shows that the variables are not visible again:

/usr/local/bin/lessc --no-color flexkit.less
SyntaxError: Inline JavaScript is not enabled. Is it set in your options? in /mnt/c0640372-d642-4f28-830f-06d9bf14d0e7/projects/mycompany/flexkit/css/less/components_JS/carousel.less on line 4, column 5:
3 max-width : 100%;
4 .user-select();


Process finished with exit code 1

 


P.S.: I don't why, but it works and in the windows10

0

Well....user-select() mixin calls.prefixer mixin that, in turn, does indeed use inline javascript:

.prefixer(
@rule;
@value;
@prefixes : '';
@onlyPrefix : false
) {
@supportWebkit : ~`(function() {var a = "@{prefixes}"; if(@{webkit} && (a.indexOf('webkit') != -1)) { return 'webkit';}}())`;
@supportMoz : ~`(function() {var a = "@{prefixes}"; if(@{moz} && (a.indexOf('moz') != -1)) { return 'moz';}}())`;
@supportIe : ~`(function() {var a = "@{prefixes}"; if(@{ie} && (a.indexOf('ms') != -1)) { return 'ms';}}())`;
@prefixesCurrent : @supportWebkit @supportMoz @supportIe;

.prefixer-checked(@rule; @value; @prefixesCurrent; @onlyPrefix : @onlyPrefix);
}

And inline JavaScript is disabled by default in Less 3.x because of security concerns, so the warning when using 3.9.0 is expected. But not with 2.7.2 that has inline js enabled... So it seem,s that you are still using lessc3.x on your Linux machine... You must have several Less versions installed, and then one configured in a file watcher is 3.x

0

You are right,

I was read this information before, and after that I delete fully my local less (it was 3.9.0) and after this installed less 2.7.2.

0

Please sign in to leave a comment.