首页 文章

运行sbt时在Mac上出现“无法启动流”错误

提问于
浏览
1

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

[root] $ run 2015-07-30 19:46 java [651](FSEvents.framework)FSEventStreamStart:register_with_server:ERROR:f2d_register_rpc()=>(null)( - 21)net.contentobjects.jnotify.macosx.JNotifyException_macosx :无法在net.contentobjects.jnotify.macosx.JNotify_macosx.add上的net.contentobjects.jnotify.macosx.JNotify_macosx.nativeAddWatch(本机方法)中启动net.contentobjects.jnotify.macosx.JNotifyAdapterMacOSX.addWatch(未知来源)at.contentobjects.jnotify.JNotify.addWatch(未知来源)at sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:497)at play.runsupport.JNotifyPlayWatchService $ JNotifyDelegate.addWatch(PlayWatchService.scala:140)at play.runsupport.JNotifyPlayWatchService $ $ anonfun $ 4.适用(PlayWatchService.scala:12 3)在play.runsupport.JNotifyPlayWatchService $$ anonfun $ 4.适用(PlayWatchService.scala:122)在scala.collection.TraversableLike $$ anonfun $ $ Map 1.适用(TraversableLike.scala:244)在scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)scala.collection.immutable.List.foreach(List.scala:318)at scala.collection.TraversableLike $ class.map(TraversableLike.scala:244)at scala . collection.AbstractTraversable.map(Traversable.scala:105)在play.runsupport.JNotifyPlayWatchService.watch(PlayWatchService.scala:122)在play.runsupport.PlayWatchService $$匿名$ 1.watch(PlayWatchService.scala:74)在play.runsupport .Reloader(Reloader.scala:268) . 在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 play.PlayRun $$ anonfun $ playRunTask $ 1 $$ anonfun $ apply $ 2 $$ anonfun $ apply $ 3.devModeServer $ lzycompute $ 1(PlayRun.scala :75)at play.PlayRun $$ anonfun $ playRunTask $ 1 $$ anonfun $ $申请2 $$ anonfun $ $应用$ 3.play $ PlayRun类$$ anonfun $$ anonfun $$ anonfun $$ devModeServer $ 1(PlayRun.scala:75)在作怪 . PlayRun $$ anonfun $ playRunTask $ 1 $$ anonfun $ apply $ 3 $$ anonfun $ apply $ 3.apply(PlayRun.scala:98)at play.PlayRun $$ anonfun $ playRunTask $ 1 $$ anonfun $ apply $ 2 $$ anonfun $ apply $ 3 .apply(PlayRun.scala:54)在scala.Function1 $$ anonfun $ compose $ 1.apply(Function1.scala:47)

运行其他命令也会在屏幕上引发一些错误但有效

git的状态2015年7月30日19时48分xcodebuild联编[707](FSEvents.framework)FSEventStreamStart:register_with_server:错误:f2d_register_rpc()=>(空)(-21)2015年7月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 回答

  • 3

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

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

    或者重启fseventsd: sudo killall fseventsd

相关问题