node-compass icon indicating copy to clipboard operation
node-compass copied to clipboard

Crashes node without error when default paths dont exist

Open nihaopaul opened this issue 12 years ago • 5 comments

took me a while to find out what was going on, but it was crashing node without a warning when the default paths did not exist.. this is my solution but would be great to overcome this, also i needed to include the project path, even though it isn't where config.rb is:

app.configure(function() {
    app.use(compass({
      project: path.join(__dirname, '/app'), 
      config_file: 'config.rb'
    }));
});

nihaopaul avatar Aug 18 '13 07:08 nihaopaul

Sorry can you try re-explaining this?

nathggns avatar Dec 24 '13 20:12 nathggns

(Sorry it took me so long to get back to you too)

nathggns avatar Dec 24 '13 20:12 nathggns

Okay I think I know what you mean. I'll look into getting this fixed.

nathggns avatar Mar 24 '14 03:03 nathggns

I think I have a similar issue. The compass executable was not found (wrong gemset used) and I got a cryptic

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
  at errnoException (child_process.js:998:11)
  at Process.ChildProcess._handle.onexit (child_process.js:789:34)

It would be nice when spawn Exceptions will be catched and a meaning full error is displayed.

dspaeth-faber avatar Sep 04 '14 14:09 dspaeth-faber

+1

dotnetCarpenter avatar Dec 09 '14 22:12 dotnetCarpenter