获取"无法启动流"运行sbt

时间:2015-07-30 14:28:23

标签: xcode macos sbt

我在Mac上运行set时突然出错。我认为它是在安装Xcode之后开始的。

  

[root] $ run

     

2015-07-30 19:46 java [651](FSEvents.framework)FSEventStreamStart:   register_with_server:错误:f2d_register_rpc()=> (null)( - 21)   net.contentobjects.jnotify.macosx.JNotifyException_macosx:不能   开始流   net.contentobjects.jnotify.macosx.JNotify_macosx.nativeAddWatch(母语   方法)at   net.contentobjects.jnotify.macosx.JNotify_macosx.addWatch(未知   来源)at   net.contentobjects.jnotify.macosx.JNotifyAdapterMacOSX.addWatch(未知   来自)net.contentobjects.jnotify.JNotify.addWatch(未知   来源)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native   方法)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:497)at   play.runsupport.JNotifyPlayWatchService $ JNotifyDelegate.addWatch(PlayWatchService.scala:140)     在   play.runsupport.JNotifyPlayWatchService $$ anonfun $ 4.适用(PlayWatchService.scala:123)     在   play.runsupport.JNotifyPlayWatchService $$ anonfun $ 4.适用(PlayWatchService.scala:122)     在   scala.collection.TraversableLike $$ anonfun $表$ 1.适用(TraversableLike.scala:244)     在   scala.collection.TraversableLike $$ anonfun $表$ 1.适用(TraversableLike.scala:244)     在scala.collection.immutable.List.foreach(List.scala:318)at   scala.collection.TraversableLike $ class.map(TraversableLike.scala:244)     在scala.collection.AbstractTraversable.map(Traversable.scala:105)     在   play.runsupport.JNotifyPlayWatchService.watch(PlayWatchService.scala:122)     在   play.runsupport.PlayWatchService $$匿名$ 1.watch(PlayWatchService.scala:74)     at play.runsupport.Reloader。(Reloader.scala:268)at   play.runsupport.Reloader $ .reloader $ lzycompute $ 1(Reloader.scala:174)     在   play.runsupport.Reloader $ .play $ runsupport $ Reloader $$ reloader $ 1(Reloader.scala:174)     at play.runsupport.Reloader $ .startDevMode(Reloader.scala:197)at at   play.PlayRun $$ anonfun $ $ playRunTask 1 $$ anonfun $ $申请2 $$ anonfun $ $申请$ 3.devModeServer lzycompute $ 1(PlayRun.scala:75)     在   play.PlayRun $$ anonfun $ $ playRunTask 1 $$ anonfun $ $申请2 $$ anonfun $ $申请$ 3.play $ PlayRun类$$ anonfun $$ anonfun $$ anonfun $$ devModeServer $ 1(PlayRun.scala:75)     在   play.PlayRun $$ anonfun $ $ playRunTask 1 $$ anonfun $所适用$ $$ 2 $ anonfun申请$ 3.apply(PlayRun.scala:98)     在   play.PlayRun $$ anonfun $ $ playRunTask 1 $$ anonfun $所适用$ $$ 2 $ anonfun申请$ 3.apply(PlayRun.scala:54)     在scala.Function1 $$ anonfun $ compose $ 1.apply(Function1.scala:47)

运行其他命令也会在屏幕上引发一些错误但无法正常工作

  

git status 2015-07-30 19:48 xcodebuild [707](FSEvents.framework)   FSEventStreamStart:register_with_server:错误:f2d_register_rpc()=>   (null)( - 21)2015-07-30 19:48 xcodebuild [707](FSEvents.framework)   FSEventStreamInvalidate():断言失败' streamRef!= NULL'

     

2015-07-30 19:48 xcodebuild [707](FSEvents.framework)   FSEventStreamRelease():断言失败' streamRef!= NULL'

     

2015-07-30 19:48:17.915 xcodebuild [707:15323] DVTFilePathFSEvents:   无法启动fs事件流。在分支开发你的分支是   最新的&origin; / devel'。

我已将操作系统和Xcode更新到最新版本。关于如何解决这个问题的任何线索?

1 个答案:

答案 0 :(得分:3)

我最近在使用sbt-plugin 2.3.3时遇到过这个问题。 fseventsd跟踪大量文件似乎存在问题,其中来自调用进程的文件描述符并不总是正确关闭(可能来自生成的子进程)

解决方案是升级你的sbt-plugin版本(对于最新版本的Xcode,版本> 2.3.8我没有遇到过这个问题)

或重新启动fseventsd:sudo killall fseventsd