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

PhpStorm: Unable to load plugin clean-css #24

Closed
Arahort opened this issue Mar 18, 2018 · 6 comments
Closed

PhpStorm: Unable to load plugin clean-css #24

Arahort opened this issue Mar 18, 2018 · 6 comments

Comments

@Arahort
Copy link

Arahort commented Mar 18, 2018

Hello everybody! I have a problem that I hope you will help to solve:
PhpStorm 2017.2(Win 10) + Node.js install
Terminal install less and plugin

X:\PhpstormProjects\xxx>npm install -g less
C:\Users\xxx\AppData\Roaming\npm\lessc -> C:\Users\xxx\AppData\Roaming\npm\node_modules\less\bin\lessc

X:\PhpstormProjects\xxx>npm install -g less-plugin-clean-css

Add less watcher, all work fine, less compiles, but
If i want use plugin i add in watcher arguments --clean-css="--s1 --advanced --compatibility=ie8" (tried many different options)
Next, I make changes to my .less file and take

cmd.exe /D /C call C:/Users/XXX/AppData/Roaming/npm/lessc.cmd --no-color main.less "--clean-css=--s1 --advanced --compatibility=ie8"
Unable to load plugin clean-css please make sure that it is installed under or at the same level as less

Process finished with exit code 1

@Arahort Arahort changed the title PhpStorm: PhpStorm: Unable to load plugin clean-css Mar 18, 2018
@matthew-dean
Copy link
Member

Either way try to downgrade to latest less 2.x.

😢

@powerriegel
Copy link

powerriegel commented Apr 16, 2018

No PHP Storm Problem. It's an Ubuntu 17.10 problem, too.

/usr/local/lib
└── [email protected]
lessc 3.0.1 (Less Compiler) [JavaScript]

Lessc is totally broken in 17.10. Neither clean-css nor source mape work.

@seven-phases-max seven-phases-max changed the title PhpStorm: Unable to load plugin clean-css Unable to load plugin clean-css (Ubuntu 17.10) Apr 25, 2018
@seven-phases-max seven-phases-max changed the title Unable to load plugin clean-css (Ubuntu 17.10) Unable to load clean-css (Ubuntu 17.10) Apr 25, 2018
@matthew-dean
Copy link
Member

Is this solved by less/less.js#3200 ?

@Arahort
Copy link
Author

Arahort commented May 10, 2018

You incorrectly changed the title, in the first message I wrote that the problem is also observed in Win10

@seven-phases-max
Copy link
Member

seven-phases-max commented May 14, 2018

@Arahort OK, then it's simply a duplicate of less/less.js#3181.

@seven-phases-max
Copy link
Member

seven-phases-max commented May 14, 2018

Closing as a duplicate of less/less.js#3181.

@seven-phases-max seven-phases-max changed the title Unable to load clean-css (Ubuntu 17.10) PhpStorm: Unable to load plugin clean-css May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants