簡體   English   中英

運行sbt時在Mac上出現“無法啟動流”錯誤

[英]Getting “Could not start stream” error on Mac when running 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(本地方法)在net.contentobjects.jnotify.macosx.JNotify_macosx.addWatch(未知來源)net.contentobjects.jnotify.macosx.JNotifyAdapterMacOSX.addWatch(未知來源)net。 sun.reflect.DentgatingMethodAccessorImpl.invoke(NativeMethodAccessorImpl.invoke:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)的sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)中的contentobjects.jnotify.JNotify.addWatch(未知來源) :43)在java.lang.reflect.Method.invoke(Method.java:497)at play.runsupport.JNotifyPlayWatchService $ JNotifyDelegate.addWatch(PlayWatchService.scala:140)at play.runsupport.JNotifyPlayWatchService $$ anonfun $ 4.apply( PlayWatchService.scala:123)at play.runs upport.JNotifyPlayWatchService $$ anonfun $ 4.apply(PlayWatchService.scala:122)at scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)at scala.collection.TraversableLike $$ anonfun $ map $ 1。應用(TraversableLike.scala:244)scala.collection.imlection.TransableLike上的scala.collection.immutable.List.foreach(List.scala:318)scala.collection.AbstractTraversable.map中的$ class.map(TraversableLike.scala:244) (Traversable.scala:105)at play.runsupport.JNotifyPlayWatchService.watch(PlayWatchService.scala:122)at play.runsupport.PlayWatchService $$ anon $ 1.watch(PlayWatchService.scala:74)at play.runsupport.Reloader。(Reloader .scala:268)at play.runsupport.Reloader $ .reloader $ lzycompute $ 1(Reloader.scala:174)at 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 $ apply $ 2 $$ anonfun $ apply $ 3.play $ PlayRun $ class $$ anonfun $$ anonfun $$ anonfun $$ devModeServer $ 1(PlayRun.scala:75)at play.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 status 2015-07-30 19:48 xcodebuild [707](FSEvents.framework)FSEventStreamStart:register_with_server:ERROR: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更新到最新版本。 關於如何解決這個問題的任何線索?

我最近在使用sbt-plugin 2.3.3時遇到過這個問題。 fseventsd跟蹤大量文件似乎存在問題,其中來自調用進程的文件描述符並不總是正確關閉(可能來自生成的子進程)

解決方案是升級您的sbt-plugin版本(對於最新版本的Xcode,版本> 2.3.8我沒遇到過這個問題)

或者重新啟動fseventsd: sudo killall fseventsd

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM