【问题标题】:Compass watch - only writes once指南针手表 - 只写一次
【发布时间】:2015-09-11 01:46:20
【问题描述】:

我已经运行了一段时间的 compass 和 sass,但是今天下午更新了我的系统:

ma​​c osX 10.10.2 (14C1514)

Ruby 版本:ruby 2.0.0p481(2014-05-08 修订版 45883)[universal.x86_64-darwin14]

Sass 版本:Sass 3.4.13(选择性史蒂夫)

指南针版本:1.0.3

突然罗盘停止工作,它会观察文件,但会执行第一次写入,但之后它就看不到任何变化了。

上网查了一下发现:

compass watch --p 

可能对我有帮助,它似乎可以工作并且运行良好“ish”,但构建时间真的很慢。

Andys-mac:scss andy$ compass watch --p
>>> Compass is watching for changes. Press Ctrl-C to Stop.
 modified layout/_header.scss
    write /Users/andy/Sites/projectname/httpdocs/library/css/style.css

当我打破它时,它会抛出如下错误:

E, [2015-03-20T15:13:26.627204 #1102] ERROR -- : Actor crashed!
Celluloid::DeadActorError: attempted to call a dead actor
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:23:in `method_missing'
    /Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/file.rb:9:in `change'
    /Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/change.rb:40:in `change'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
E, [2015-03-20T15:13:26.628055 #1102] ERROR -- : Actor crashed!
Celluloid::DeadActorError: attempted to call a dead actor
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:23:in `method_missing'
    /Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/file.rb:9:in `change'
    /Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/change.rb:40:in `change'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
    /Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'

我迷路了,我已经尝试卸载 compass - sass,在我的 whit 结束时更新 ruby​​ 系统,请帮助我。如果我错过了人们可能知道可以帮助修复它的任何内容,我会很乐意分享。

非常感谢。

【问题讨论】:

    标签: ruby macos sass compass


    【解决方案1】:

    好的,所以我发现 赛璐珞 导致了数据泄露或类似情况。

    我尝试了一些方法来对此进行排序:

    sudo gem update `gem list | cut -d ' ' -f 1`
    

    更新所有宝石不起作用,但这可能对某些人有用。我最终跑了:

    sudo gem uninstall --all
    

    为了删除所有可能导致问题的 gem,然后我重新安装了 compass gem 和 sass gem。 2小时的路由,这就是修复。希望这对未来的人们有所帮助。

    【讨论】:

      【解决方案2】:

      我最终卸载了所有版本的赛璐珞

      sudo gem uninstall celluloid
      

      然后我重新安装了赛璐珞

      sudo gem install celluloid
      

      它又开始工作了。

      【讨论】:

      • 这如何在现有答案上添加任何内容,这已经表明应该卸载赛璐珞?
      • 呃,他建议卸载你拥有的所有 gem,这不是真正的解决方法。简单地“建议”答案不是“那个”答案。另外,他回答了自己的问题……你的意思是什么?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 1970-01-01
      • 2014-06-17
      • 2013-09-15
      • 2014-10-24
      相关资源
      最近更新 更多