quaertym / ember-cli-compass-compiler

Ember CLI Compass Compiler
MIT License
28 stars 23 forks source link

Compiler suddenly has started failing #53

Closed cbornhoft closed 9 years ago

cbornhoft commented 9 years ago

This error randomly started without any changes to the compiler or options. Now when using ember build this is the error that pops up:

PS C:\dev\app> ember build
version: 1.13.8
Building...

Build failed.
Command failed: C:\Windows\system32\cmd.exe /s /c "compass compile --sass-dir=app/styles
                --css-dir='C:\dev\app\tmp\compass_compiler-tmp_cache_dir-dYFBH4rS.tmp\assets' --output-style=expanded

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

That's the entire error.

I've tried npm uninstall --save-dev ember-cli-compass-compiler and then reinstalling it, but this still produces the compilation error.

Anything else I can do to reset the compiler?

cbornhoft commented 9 years ago

Realized it wasn't the -css-dir breaking this, as that should be a /tmp directory file. However still getting the build error.

cbornhoft commented 9 years ago

The solution was to manually clear the /tmp directory. Seems the compiler was stuck on a particular file (why I'm not sure, maybe someone can shed some light). Once the directory was cleared and the ember server restarted, it builds as expected!