当尝试访问compass-core-1.0.0.alpha.16 / stylesheets / .listen_test时,指南针监视命令错误输出

时间:2013-12-16 21:16:10

标签: ruby sass compass-sass

我相信这是在升级到Ruby 2.0.0之后发生的,然后我重新设置了罗盘手表所需的宝石。我还安装了Ruby 1.9.1并安装了罗盘手表的宝石并得到了同样的错误。我试图更改文件.listen_test的权限,但它不存在。

这是--trace:

compass watch --trace

>>> Compass is watching for changes. Press Ctrl-C to Stop.

error sites/all/themes/dr/compass/sass/blog-ie.sass (Line 919 of sites/all/themes/dr/compass/sass/blog.sass: Invalid flag "!important".)

identical sites/all/themes/dr/compass/css/blog-ie.css 

error sites/all/themes/dr/compass/sass/blog.sass (Line 919: Invalid flag "!important".)

identical sites/all/themes/dr/compass/css/blog.css 

Errno::EACCES on line ["1140"] of /Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb: Permission denied -      /Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/compass-core-1.0.0.alpha.16/stylesheets/.listen_test

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1140:in `open'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1140:in `rescue in block in touch'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1136:in `block in touch'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1134:in `each'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1134:in `touch'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:221:in `works?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `block in usable_and_works?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `each'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `all?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `usable_and_works?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:49:in `block in select_and_initialize'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:47:in `each'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:47:in `select_and_initialize'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/listener.rb:272:in `initialize_adapter'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/listener.rb:264:in `setup'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/listener.rb:64:in `start!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/watcher/project_watcher.rb:31:in `watch!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/commands/watch_project.rb:48:in `perform'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/commands/base.rb:18:in `execute'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/commands/project_base.rb:19:in `execute'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/exec/sub_command_ui.rb:43:in `perform!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/exec/sub_command_ui.rb:15:in `run!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/bin/compass:30:in `block in <top (required)>'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/bin/compass:44:in `call'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/bin/compass:44:in `<top (required)>'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/bin/compass:23:in `load'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/bin/compass:23:in `<main>'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/bin/ruby_executable_hooks:15:in `eval'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/bin/ruby_executable_hooks:15:in `<main>'

以下是我的本地宝石:

*** LOCAL GEMS ***

bigdecimal (1.1.0)
breakpoint (2.3.1)
bundler (1.3.5)
bundler-unload (1.0.2)
chunky_png (1.2.9)
compass (1.0.0.alpha.17, 0.12.2)
compass-core (1.0.0.alpha.16)
compass-import-once (1.0.1)
compass-rgbapng (0.2.1)
executable-hooks (1.2.6)
ffi (1.9.3)
fssm (0.2.10)
io-console (0.3)
json (1.5.5)
listen (1.1.6)
minitest (2.5.1)
multi_json (1.8.2)
rake (0.9.2.2)
rb-fsevent (0.9.3)
rb-inotify (0.9.3)
rb-kqueue (0.2.0)
rdoc (3.9.5)
rubygems-bundler (1.4.2)
rvm (1.11.3.8)
sass (3.3.0.rc.2, 3.2.12)
susy (1.0.9)

EDIT 通过安装旧版指南针(0.12.2)

,我得到罗盘表

2 个答案:

答案 0 :(得分:4)

我发现它适用于:

sudo compass watch

我不确定为什么现在我需要sudo。

答案 1 :(得分:1)

您拥有其中一个宝石的旧版本。我猜它是'听'

有人遇到了同样的问题。

https://github.com/chriseppstein/compass/issues/1497

编辑:实际上这可能是指南针问题。做了一些局部变化,超越了错误。 Pull请求已发布待审核。我不做红宝石,但希望它是解决问题的开始。 https://github.com/chriseppstein/compass/pull/1522