3.0.x branch broken in OS X
Hi Team,
I'm getting this error on two different OS X machines.
node-sass(master) $ git co 19b5e3c5cc4831da153e24dee96c983d03799e2f
Note: checking out '19b5e3c5cc4831da153e24dee96c983d03799e2f'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 19b5e3c... Build: Uses v8 version instead of runtime name. The new binary path format is: `<platform>-<arch>-<v8 version>/binding.node`
node-sass(tags/v3.0.0-pre~25^2) $ npm cache clean && rm -rf node_modules && npm install && npm test
> [email protected] install /Users/casey.leask/src/community/node-sass
> node scripts/install.js
> [email protected] postinstall /Users/casey.leask/src/community/node-sass
> node scripts/build.js
Building: /opt/boxen/nodenv/versions/v0.10.29/bin/node node_modules/pangyp/bin/node-gyp rebuild
CXX(target) Release/obj.target/binding/src/binding.o
In file included from ../src/binding.cpp:3:
../src/sass_context_wrapper.h:4:10: fatal error: 'libsass/sass_context.h' file not found
#include "libsass/sass_context.h"
^
1 error generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/casey.leask/src/community/node-sass/node_modules/pangyp/lib/build.js:271:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "/opt/boxen/nodenv/versions/v0.10.29/bin/node" "/Users/casey.leask/src/community/node-sass/node_modules/pangyp/bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/casey.leask/src/community/node-sass
gyp ERR! node -v v0.10.29
gyp ERR! pangyp -v v2.1.0
gyp ERR! not ok
Build failed
I'm getting this regression on all commits from https://github.com/sass/node-sass/commit/19b5e3c5cc4831da153e24dee96c983d03799e2f onwards.
node-sass(tags/v3.0.0-pre~25^2) $ git co HEAD~1
Previous HEAD position was 19b5e3c... Build: Uses v8 version instead of runtime name. The new binary path format is: `<platform>-<arch>-<v8 version>/binding.node`
HEAD is now at 8c3bd77... Merge pull request #686 from Jakobo/test_options2
node-sass(tags/v3.0.0-pre~26) $ npm cache clean && rm -rf node_modules && npm install && npm test
> [email protected] install /Users/casey.leask/src/community/node-sass
> node scripts/install.js
> [email protected] postinstall /Users/casey.leask/src/community/node-sass
> node scripts/build.js
`darwin-x64-node-0.10` exists; testing
Binary is fine; exiting
[email protected] node_modules/object-assign
[email protected] node_modules/get-stdin
[email protected] node_modules/mocha-lcov-reporter
[email protected] node_modules/replace-ext
[email protected] node_modules/nan
[email protected] node_modules/semver
[email protected] node_modules/shelljs
[email protected] node_modules/cross-spawn
└── [email protected]
[email protected] node_modules/mkdirp
└── [email protected]
[email protected] node_modules/chalk
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected])
[email protected] node_modules/npmconf
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected])
[email protected] node_modules/meow
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected])
[email protected] node_modules/gaze
└── [email protected] ([email protected], [email protected], [email protected])
[email protected] node_modules/mocha
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected])
[email protected] node_modules/pangyp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected])
[email protected] node_modules/coveralls
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/sass-graph
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/jscoverage
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/request
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/jshint
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
> [email protected] pretest /Users/casey.leask/src/community/node-sass
> jshint bin lib test
> [email protected] test /Users/casey.leask/src/community/node-sass
> mocha test
\
api
.render(options)
✓ should compile sass to css with file
✓ should compile sass to css with outFile set to absolute url
✓ should compile sass to css with outFile set to relative url
✓ should compile sass to css with outFile and sourceMap set to relative url
✓ should compile sass to css with data
✓ should compile sass to css using indented syntax
✓ should throw error status 1 for bad input
✓ should compile with include paths
✓ should compile with image path
✓ should throw error with non-string image path
✓ should render with --precision option
...
There's features in libsass 3.2 that I'd really love to use, but for now, I'm writing manual workarounds.
Cheers, Casey
Hi,
The current stable is v2.1.1, while current beta is v3.0.0-beta.4. The existing master is few commits ahead of beta.4.
Having said that, can you please recap briefly what is going wrong and what you want us to fix here?
@am11 it appears compilation is failing. I'd say it's partially due to missing osx binaries (doing this now).
Oh nice! Welcome back! :sunglasses:
@am11 When any 3.0.x is used in gulp-sass, it hangs the entire process with no feedback.
I can't reproduce the compilation error on the recent beta, it may be due to versions being out of sync in the pre release.
@am11 I've updated the 3.0.0-beta.4 release with the OSX binaries and opened the PR in node-sass-binaries https://github.com/sass/node-sass-binaries/pull/51
@xzyfer, :+1:
@CaseyLeask, can you try installing npm install node-sass@beta now? I think gulp-sass needs an upgrade. We introduced bunch of breaking changes in API usage.
@CaseyLeask, for reference see the diff for grunt-sass: https://github.com/sindresorhus/grunt-sass/commit/c4fbda36d02df1e46a4b68eca916ab12bcf0c4bb.
gulp-sass probably needs this kind upgrade.
At this point, since the original install issue seems to be fixed, I am closing it. Please open the gulp-sass issue in the respective repo.