我使用Rails 4.1.1,Thin 1.6.2,Redis 2.8.9(含Hiredis司机),和faye-rails宝石.
我faye-rails用来订阅几个模型的变化,我Redis用于其他(无关)的东西.
当我试图调用create一个faye-observed模型(让我们说Apple)时,它会抛出这样的错误:
2.1.1 :001 > Apple.create
(0.1ms) BEGIN
SQL (0.4ms) INSERT INTO `apples` (`created_at`, `updated_at`) VALUES ('2014-06-01 17:26:54', '2014-06-01 17:26:54')
(7.6ms) ROLLBACK
RuntimeError: eventmachine not initialized: evma_install_oneshot_timer
from /home/david/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:323:in `add_oneshot_timer'
from /home/david/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:323:in `add_timer'
from /home/david/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/em/timers.rb:12:in `initialize'
from /home/david/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/em/deferrable.rb:173:in `new'
from /home/david/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/em/deferrable.rb:173:in `timeout'
from /home/david/.rvm/gems/ruby-2.1.1/gems/faye-1.0.1/lib/faye/protocol/envelope.rb:11:in `initialize'
from /home/david/.rvm/gems/ruby-2.1.1/gems/faye-1.0.1/lib/faye/protocol/client.rb:357:in `new'
from /home/david/.rvm/gems/ruby-2.1.1/gems/faye-1.0.1/lib/faye/protocol/client.rb:357:in `transport_send'
from /home/david/.rvm/gems/ruby-2.1.1/gems/faye-1.0.1/lib/faye/protocol/client.rb:346:in `block in send'
from /home/david/.rvm/gems/ruby-2.1.1/gems/faye-1.0.1/lib/faye/protocol/extensible.rb:23:in …Run Code Online (Sandbox Code Playgroud) 关于 Xcode 本地化过程,我有一个非常奇怪的错误要分享。我会尽量在法律上尽可能多地分享细节。
我正在尝试从 Xcode 导出 XLIFF 文件以通过“编辑器 > 本地化导出”发送给我们的翻译人员。但是,这会立即引发错误消息:
The operation couldn't be completed. Argument list too long
Run Code Online (Sandbox Code Playgroud)
这确实令人困惑,因为我在任何地方都找不到更详细的日志(我已经尝试检查我的 Console.app)。所以,我花了很多时间在谷歌上搜索——无济于事。我找不到这样的类似案例。错误本身仅在我尝试导出以进行本地化时发生。我可以很好地构建和运行应用程序。
~ $ xcodebuild -version
Xcode 8.2
Build version 8C38
~ $ xcode-select -version
xcode-select version 2347.
~ $ echo $PATH
/Users/david.christiandy/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/david.christiandy/arctools/arcanist/bin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
Run Code Online (Sandbox Code Playgroud)
xcodebuild -exportLocalizations.xcodebuild在 CI 中运行导出过程(通过命令)。不知何故,它正在起作用。作为记录,我使用 Bitrise CI 与我的系统(Xcode 8.2.x,macOS 10.12)具有相同的堆栈我不知道为什么 CI 可以很好地运行导出过程,也不知道它什么时候会突然停止运行(就像我们的本地机器一样)。
感谢您对此事的任何帮助。谢谢!