-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLI: source-map option preventing stderr #361
Comments
This is so annoying, please fix it. |
👍 |
It think it goes upstream somewhere out of the context of node.js section of node-sass. On calling Here is another way to reproduce it using REPL: With c:\temp> type c:\temp\foo.scss
body{color:red;
a::before {
width: 10px;
height: 10px
}
c:\temp> node
> require("node-sass").render({
... file: "c:/temp/foo.scss",
... includePaths: ["c:/temp/foo.scss"],
... outputStyle: 'expanded',
... //sourceMap: "C:/temp/fooMap.css.map",
... success: function (css, map) { console.log(css);console.log(map);},
... error: function (error) {console.log(error);}
... });
undefined
> c:/temp/foo.scss:12: error: invalid property name
undefined
> Node.exe is still running. Reattempting with uncommented > require("node-sass").render({
... file: "c:/temp/foo.scss",
... includePaths: ["c:/temp/foo.scss"],
... outputStyle: 'expanded',
... sourceMap: "C:/temp/fooMap.css.map",
... success: function (css, map) { console.log(css);console.log(map);},
... error: function (error) {console.log(error);}
... });
undefined
>
C:\temp> Process terminated abruptly. I tried to catch exception, used Can anyone please confirm if this is a Windows-only issue? /cc @andrew, @nschonni
|
Ok just test tested with Ubuntu 12.04 LTS via vagrant and guess what, "Segmentation Fault" strikes again! 🚄 vagrant@precise64:/work$ node
> require("node-sass").render({
... file: "/vagrant_data/foo.scss",
... includePaths: ["/vagrant_data/foo.scss"],
... outputStyle: 'expanded',
... //sourceMap: "/vagrant_data/fooMap.css.map",
... success: function (css, map) { console.log(css);console.log(map);},
... error: function (error) {console.log(error);}
... });
undefined
> /vagrant_data/foo.scss:12: error: invalid property name
undefined
> require("node-sass").render({
... file: "/vagrant_data/foo.scss",
... includePaths: ["/vagrant_data/foo.scss"],
... outputStyle: 'expanded',
... sourceMap: "/vagrant_data/fooMap.css.map",
... success: function (css, map) { console.log(css);console.log(map);},
... error: function (error) {console.log(error);}
... });
undefined
> Segmentation fault
vagrant@precise64:/work$ In Windows, it even digests this error message. |
👍 |
Sorry for bugging you guys again. 😃 Could it be the issue with node-sass, particularly the way it allocates memory? I tried using
|
Code: Rescue from Segmentation Fault (#361)
/cc madskristensen/WebEssentials2013#1268
In
foo.scss
:(missing closing mustache)
Now running the following command:
node.exe tools\node_modules\node-sass\bin\node-sass "C:\temp\foo.scss"
will produce the error:
But running:
with
--source-map
option digests the error message.The text was updated successfully, but these errors were encountered: