Giter Site home page Giter Site logo

Comments (48)

agreif84 avatar agreif84 commented on August 20, 2024 2

Upgrading Ruby/SASS did not help, but downgrading to grunt-contrib-sass v0.8.1 did it for me. Error seemed only to occur on windows-systems. Maybe that might help anyone else.

from grunt-contrib-sass.

derekjohnson avatar derekjohnson commented on August 20, 2024 1

noCache: true in settings seems to work too fwiw.

from grunt-contrib-sass.

StagnantIce avatar StagnantIce commented on August 20, 2024 1

Install:

Ruby 2.2
grunt-contrib-sass to 0.4.x

and this fix my problem

from grunt-contrib-sass.

leads avatar leads commented on August 20, 2024

Same here. I keep having to delete the sass-cache folder (from the root of the project)

from grunt-contrib-sass.

hLittle avatar hLittle commented on August 20, 2024

I have seen this recently as well.

from grunt-contrib-sass.

lox avatar lox commented on August 20, 2024

We're seeing this too pretty regularly.

from grunt-contrib-sass.

hamishtaplin avatar hamishtaplin commented on August 20, 2024

Getting this constantly :(

from grunt-contrib-sass.

hLittle avatar hLittle commented on August 20, 2024

Downgrading to 0.3.0 seems to have made this issue stop happening. I am seeing the issue on 0.5.0, 0.4.1 and 0.4.0 currently.

I get the error consistently when I make a change to a partial and then run grunt, the sass-cache error would be for the partial I had edited.

This is the configuration I am using:

{
  "sass" : {
    "dev": {
      "options" : {
        "style" : "nested",
        "precision" : 5
      },
      "files": [{
        "expand": true,
        "cwd": "<%= module %>css/sass",
        "src": ["*.scss"],
        "dest": "<%= module %>css/<%= sassOut %>",
        "ext": ".css"
      }]
    },
    "prod": {
      "options" : {
        "style" : "compressed",
        "precision" : 5
      },
      "files": [{
        "expand": true,
        "cwd": "<%= module %>css/sass",
        "src": ["*.scss"],
        "dest": "<%= module %>css/<%= sassOut %>",
        "ext": ".css"
      }]
    }
  }
}

The default grunt command runs the "prod" section

from grunt-contrib-sass.

larrybotha avatar larrybotha commented on August 20, 2024

Also experienced this on 0.4.1, downgrading to 0.3.0 as per @hLittle above resolved the issue.

from grunt-contrib-sass.

davidtheclark avatar davidtheclark commented on August 20, 2024

I've been having the same problem with version 0.4.1.

I upgraded to version 0.5.0 and have not had the problem again (yet). Maybe something was fixed?

from grunt-contrib-sass.

davidtheclark avatar davidtheclark commented on August 20, 2024

I take that back: I just had the same error in version 0.5.0.

from grunt-contrib-sass.

MartijnR avatar MartijnR commented on August 20, 2024

same issue for me with 0.5.0. Repeating the same task a second time is always successful without this error.

from grunt-contrib-sass.

Crystalh avatar Crystalh commented on August 20, 2024

Same error when building Sass with Grunt. My whole teams sees the same error on a regular basis. Have Sass v 3.3.0.rc.1 installed. Either deleting the sass-cache from the root, or running a bundle install from the root, temporarily resolves the issue.

Here's the full error:

Errno::ENOENT: No such file or directory - ./.sass-cache/de05a37c6e53b38be3838e1c4069f3f7a47fb888/_shared.scssc
  Use --trace for backtrace.

from grunt-contrib-sass.

sindresorhus avatar sindresorhus commented on August 20, 2024

This is probably because we started to compile Sass files in parallel. This might be relevant: sass/sass@ca86e07

Try Sass 3.3.0rc2 or 3.2.12

from grunt-contrib-sass.

lukepearce avatar lukepearce commented on August 20, 2024

I'm running Sass 3.2.12 and still get this error. Will try 3.3.0rc2 but running a release candidate isn't ideal.

from grunt-contrib-sass.

dtipson avatar dtipson commented on August 20, 2024

Getting the same with 3.2.13: sporadic Errno::ENOENT: No such file or directory errors (they don't stop watch tasks, but they do stop the compiling until its run a second time). Running with noCache: true solves the issue, but obviously that's not as ideal.

from grunt-contrib-sass.

nazimjamil avatar nazimjamil commented on August 20, 2024

A workaround that works great for me is to use grunt-contrib-clean and apply a clean task to the cache folder before compiling your sass files.

from grunt-contrib-sass.

eriktisme avatar eriktisme commented on August 20, 2024

Has there been a fix yet, I keep getting this message

from grunt-contrib-sass.

kinglozzer avatar kinglozzer commented on August 20, 2024

I also see this error intermittently. Seems to occur more frequently for me during periods of high hard disk load; while backups or virtual machines are running. Perhaps the task is somewhat ‘impatient’ when trying to access the cache?

from grunt-contrib-sass.

jamesplease avatar jamesplease commented on August 20, 2024

Has anyone experienced this on a 3.3.0 release candidate?

from grunt-contrib-sass.

hamishtaplin avatar hamishtaplin commented on August 20, 2024

Yeah still getting it on 3.3.0.rc.6

from grunt-contrib-sass.

stoikerty avatar stoikerty commented on August 20, 2024

I've had this error because some file names were too long and because some of my files were too far outside the root directory.

from grunt-contrib-sass.

boschni avatar boschni commented on August 20, 2024

Just switched from grunt-gontrib-compass to grunt-contrib-sass and unfortunately I'm also getting this error (sass 3.3.3, OS-X).

from grunt-contrib-sass.

thomasfrobieter avatar thomasfrobieter commented on August 20, 2024

@stoikerty I can confirm this. A to long path was the problem here, too.

from grunt-contrib-sass.

franz-josef-kaiser avatar franz-josef-kaiser commented on August 20, 2024

Same problem over here. Long path names have not been the issue. I shortened things without any change. I even tried to just compile a simple .scss file that only contained one generic plain CSS rule into a .css file in the same (root) folder with the same spawn ENOENT result. I'm at latest Grunt, contrib-sass grunt plugin, SASS ruby gem, etc.

Adding a contrib-clean task that wipes the .sass-cache does not solve it. Adding noCache: true does not solve it as well.

Adding trace: true as option to get a stacktrace/backtrace on error, did not reveal any error.

Ruby 1.9.3p327
Sass 3.3.4
grunt-cli v0.1.13
grunt v0.4.4
grunt-contrib-sass 0.7.3

And here's the output when running the task verbose (grunt -v)

kaiser@WECODEMORE:/path/to/project [master*]$ grunt -v
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Reading .bowerrc...OK
Parsing .bowerrc...OK
Reading config.json...OK
Parsing config.json...OK
Initializing config...OK

Registering "grunt-contrib-uglify" local Npm module tasks.
Reading c:\path\to\project\node_modules\grunt-contrib-uglify\package.json...OK
Parsing c:\path\to\project\node_modules\grunt-contrib-uglify\package.json...OK
Loading "uglify.js" tasks...OK
+ uglify

Registering "grunt-contrib-clean" local Npm module tasks.
Reading c:\path\to\project\node_modules\grunt-contrib-clean\package.json...OK
Parsing c:\path\to\project\node_modules\grunt-contrib-clean\package.json...OK
Loading "clean.js" tasks...OK
+ clean

Registering "grunt-contrib-sass" local Npm module tasks.
Reading c:\path\to\project\node_modules\grunt-contrib-sass\package.json...OK
Parsing c:\path\to\project\node_modules\grunt-contrib-sass\package.json...OK
Loading "sass.js" tasks...OK
+ sass

Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading c:\path\to\project\node_modules\grunt-contrib-cssmin\package.json...OK
Parsing c:\path\to\project\node_modules\grunt-contrib-cssmin\package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Loading "Gruntfile.js" tasks...OK
+ default, inuit, picturefill

No tasks specified, running default tasks.
Running tasks: default

Running "default" task

Running "sass:dist" (sass) task
Verifying property sass.dist exists in config...OK
Files: test.scss -> test.css
Options: bundleExec, noCache, trace, require=["sass"], check
Warning: spawn ENOENT Use --force to continue.

Aborted due to warnings.

from grunt-contrib-sass.

franz-josef-kaiser avatar franz-josef-kaiser commented on August 20, 2024

The thing that solved it for me was to run SASS for Ruby 2.x

from grunt-contrib-sass.

lizozom avatar lizozom commented on August 20, 2024

The same thing just happened to me too.
Gonna try upgrading ruby....

from grunt-contrib-sass.

lizozom avatar lizozom commented on August 20, 2024

@franz-josef-kaiser I can confirm that upgrading ruby from 1.9.3 to 2.1 fixed the problem for me too.

from grunt-contrib-sass.

franz-josef-kaiser avatar franz-josef-kaiser commented on August 20, 2024

For Windows users: Don't forget to upgrade the Path/evn variables to your 2.x Ruby installs bin folder. Else it won't work.

from grunt-contrib-sass.

mlarcher avatar mlarcher commented on August 20, 2024

I'm having the same random issue.
Here's what the full stack looks like when it fails :

Running "sass:build" (sass) task
[D] Task source: /Users/hudson/workspace/project-master/node_modules/grunt-contrib-sass/tasks/sass.js
Verifying property sass.build exists in config...OK
Files: src/docssa/_common.scss -> build/css/_common.min.css
Files: src/docssa/project-preinscription.scss -> build/css/project-preinscription.min.css
Files: src/docssa/project.scss -> build/css/project.min.css
Options: sourcemap, style="compressed", banner="@charset \"UTF-8\"; \n /*! dfo-project-recast 10.0.0-0-SNAPSHOT 16-07-2014 7c84de6 */\n"
Writing build/css/project-preinscription.min.css...OK
Writing build/css/project.min.css...OK
/Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/filesystem.rb:25:in `unlink': No such file or directory - ./.sass-cache/5ac85bfd4f22666f896c24a5a9a952f91f7b548d/_mixins.scssc (Errno::ENOENT)
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/filesystem.rb:25:in `_retrieve'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/base.rb:63:in `retrieve'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/chain.rb:25:in `retrieve'
    from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `each_with_index'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/chain.rb:24:in `each'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/chain.rb:24:in `each_with_index'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/cache_stores/chain.rb:24:in `retrieve'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/engine.rb:400:in `_to_tree'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/engine.rb:305:in `to_tree'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:295:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:294:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `send'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `map'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:294:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `send'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `map'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:294:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `send'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `map'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:297:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:88:in `with_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:294:in `visit_import'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `send'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:121:in `with_frame'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/stack.rb:79:in `with_base'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:152:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:52:in `visit_children'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:52:in `map'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:52:in `visit_children'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:161:in `visit_children'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:173:in `with_environment'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:160:in `visit_children'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:180:in `visit_root'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `send'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/base.rb:36:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:151:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:8:in `send'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/visitors/perform.rb:8:in `visit'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/root_node.rb:36:in `css_tree'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/tree/root_node.rb:29:in `render_with_sourcemap'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/engine.rb:371:in `_render_with_sourcemap'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/engine.rb:291:in `render_with_sourcemap'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/exec.rb:377:in `process_result'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/exec.rb:43:in `parse'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/../lib/sass/exec.rb:22:in `parse!'
    from /Library/Ruby/Gems/1.8/gems/sass-3.3.2/bin/sass:13
    from /usr/bin/sass:23:in `load'
    from /usr/bin/sass:23
Warning: Exited with error code 1� Use --force to continue.

I believe the error might be due to the fact I'm building two different files that have many imports in common, and facing some kind of race condition because of the parallel compilation logic.

I'm going to try a Ruby update to see if it helps...

from grunt-contrib-sass.

2Steaks avatar 2Steaks commented on August 20, 2024

Windows - 8.1 64bit

Node - 0.10.29
Ruby - 2.0.0-p481 x64 (using ruby installer)
Gem - 2.4.1
SASS - 3.3.10

sass commands work by themselves but as soon as I try to use grunt-contrib-sass I get the spawn ENOENT error.

Anyone else experiencing this?

from grunt-contrib-sass.

franz-josef-kaiser avatar franz-josef-kaiser commented on August 20, 2024

@benjo696 As written above: Check your $PATH if it points to the right Ruby version.

from grunt-contrib-sass.

2Steaks avatar 2Steaks commented on August 20, 2024

I used the option in the Ruby installer to set the path variable which looks correct. The only difference I can see between my computer and a colleagues is that I'm running windows 8 and he's on 7 :-/

from grunt-contrib-sass.

franz-josef-kaiser avatar franz-josef-kaiser commented on August 20, 2024

Open your CLI, check your versions there. Open your PATH and check the attached versions.

Everything else is guessing and a waste of time.

from grunt-contrib-sass.

leads avatar leads commented on August 20, 2024

Updating Ruby and then SASS did the trick for me. It does happen occasionally though - it seems to be if I have a lot of Grunt tasks running when I save a file and switch windows whist the SASS is compiling. But it's much less annoying than it used to be.

from grunt-contrib-sass.

svenboogaart avatar svenboogaart commented on August 20, 2024

Same problem here it was a too long filename. it sucks now i had to completely adjust my workflow folders

from grunt-contrib-sass.

themestechnology avatar themestechnology commented on August 20, 2024

There might be something broken in your Grunt.js file or a file/folder missing

For me I had not done bower install

from grunt-contrib-sass.

wouterNL avatar wouterNL commented on August 20, 2024

I fixed it, I didn't had root access to the .sass-cache folder. When I switched to my root account I had no problems at all, no more errors.

from grunt-contrib-sass.

yuriregis avatar yuriregis commented on August 20, 2024

Corriga apagando no config.rb a linha 1: require 'compass/import-once/activate'
Fix erasing the config.rb line 1: require 'compass/import-once/activate' delete

from grunt-contrib-sass.

 avatar commented on August 20, 2024

I got the same errror
Errno::ENOENT: No such file or directory @ rb_sysopen - undefined
Use --trace for backtrace.
Warning: Exited with error code 1 Use --force to continue.

Aborted due to warnings.

i researched and found that the file location for sass was wrong.
I corrected the file location and it compiled file.
also if it compiles files then delete everything from .sass-cache folder

from grunt-contrib-sass.

ugreg avatar ugreg commented on August 20, 2024

I got the same errror
Errno::ENOENT: No such file or directory @ rb_sysopen - undefined
Use --trace for backtrace.
Warning: Exited with error code 1 Use --force to continue.

Running "grunt-contrib-sass": "^0.9.2",

from grunt-contrib-sass.

nhhockeyplayer avatar nhhockeyplayer commented on August 20, 2024

uninstall grunt-contrib-sass
uninstall grunt-contrib-uglify

these were conflicting with my gulp-sass and gulp-uglify

from grunt-contrib-sass.

joncodo avatar joncodo commented on August 20, 2024

@agreif84 You are totally right here! This is a real error in v 1.0.0

from grunt-contrib-sass.

joncodo avatar joncodo commented on August 20, 2024

This should be re-opened

from grunt-contrib-sass.

viniciuspires avatar viniciuspires commented on August 20, 2024

I also think this should be reopened, I'm having the same problem in Linux, with the pointed versions that should solve the problem. Here's my env:

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.5 (Santiago)
$ which ruby
/usr/local/bin/ruby
$ /usr/local/bin/ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
$ which sass
/usr/local/bin/sass
$ /usr/local/bin/sass -v
Sass 3.4.22 (Selective Steve)
$ head ./node_modules/grunt-contrib-sass/package.json 
{
  "name": "grunt-contrib-sass",
  "description": "Compile Sass to CSS",
  "version": "0.8.1",
  "homepage": "https://github.com/gruntjs/grunt-contrib-sass",
  "author": {
    "name": "Grunt Team",
    "url": "http://gruntjs.com/"
  },
  "repository": {

I'm running a grunt task through jenkins, and it's always failing with the same issue below and no more other info:

+ grunt war-dist
�[4mRunning "clean:0" (clean) task�[24m
�[32m>> �[39m0 paths cleaned.

�[4mRunning "jshint:files" (jshint) task�[24m
�[32m>> �[39m245 files lint free.

�[4mRunning "sass:dist" (sass) task�[24m
�[33mWarning: spawn sass ENOENT� Use --force to continue.�[39m

�[31mAborted due to warnings.�[39m
Build step 'Execute shell' marked build as failure
Finished: FAILURE

from grunt-contrib-sass.

viniciuspires avatar viniciuspires commented on August 20, 2024

I was able to solve the problem, Jenkins was somehow overriding the $PATH variable, and losing the /usr/local/bin/ path. I did a export PATH=$PATH:/usr/local/bin in the beginning of the job shell, it was able to locate ruby and sass and worked just fine.

from grunt-contrib-sass.

elCanarioVidal avatar elCanarioVidal commented on August 20, 2024

Hi guys, for a simple mortal, how can I solve this problem!!!!!???

from grunt-contrib-sass.

joncodo avatar joncodo commented on August 20, 2024

@elCanarioVidal can you tell me which version you are using?

from grunt-contrib-sass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.