Closed jbalbes closed 9 years ago
Did you install the scss-lint gem? The plugin doesn't check if you have Ruby, the plugin checks if you have scss-lint installed and if you don't the plugin thrown an error. Ruby is mandatory to install the scss-lint gem.
I do not have the gem or Ruby installed. The project that I am working on does not require Ruby, and I would rather not add it as a dependency just to get an scss linter. I realize that this plugin will not work without it, but it should fail with a good and loud error message, rather than silently.
Without ruby and scss-lint the plugin throws me this exception.
Error in plugin 'gulp-scss-lint': You need to have Ruby and scss-lint gem installed
What operating system you are using?
Windows 8.1
I just tested the plugin on windows 8.1 and throws an error when I don't have ruby installed but works as you say when the plugin does not receive any scss
file.
The error I received without ruby/the gem installed is below.Server 2012 R2
events.js:72
throw er; // Unhandled 'error' event
^
Error: Error code 1
at C:\CX\cx-cui\node_modules\gulp-scss-lint\src\index.js:59:32
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.
Do you have the latest version of the plugin?
Sorry for not providing that info. Version ^0.1.0.
On Sep 16, 2014, at 4:02 PM, Juanfran notifications@github.com wrote:
Do you have the latest version of the plugin?
— Reply to this email directly or view it on GitHub.
Should work well in the latest version, 0.1.3
The title says it all.
I added this to a project not realizing that it required Ruby. The task ran without error, and did not have any complaints about my scss. Naturally suspicious of anything that works right the first time, I double checked my set up. This is when I spotted the Ruby requirement in the readme. This was surprising, because I do not have Ruby installed on my machine.
It would be better if the plugin failed with an error and clear message, rather than silently in this situation.