gpt4 book ai didi

从 1.60 更新到 1.72 : Failed to precompile intl:extract_to_arb 后,DART 发布失败

转载 作者:行者123 更新时间:2023-12-04 22:05:49 26 4
gpt4 key购买 nike

昨晚,我不小心将我的 Dart 编辑器和 SDK 版本从 1.60 更新到了 1.72。意外的意思是我不想在开发时改变我的开发环境,但它发生了。之后,当我尝试“发布获取”时,我看到了这一点:

>--- 7:48:46 AM Running pub get on /Users/Clayvessel/Dropbox/PROJECT/DART/DART_Project/OneViewer_Composite-Viewer/OneViewer_6 ... ---
>Resolving dependencies...
>Got dependencies!
>Precompiling executables...
>Loading source assets...
>Failed to precompile intl:extract_to_arb:
>Unhandled exception:
>Uncaught Error: Failure getting http://localhost:51271/packages/intl/extract_messages.dart: 404 Not Found
>Stack Trace:
>#0 _asyncLoadError (dart:_builtin:285)
>#1 _httpGet.<anonymous closure>.<anonymous closure> (dart:_builtin:228)
>#2 _RootZone.runGuarded (dart:async/zone.dart:1078)
>#3 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:390)
>#4 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399)
>#5 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:290)
>#6 _ForwardingStream._handleDone (dart:async/stream_pipe.dart:110)
>#7 _handleDone (dart:async/stream_pipe.dart:178)
>#8 _RootZone.runGuarded (dart:async/zone.dart:1078)
>#9 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:390)
>#10 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399)
>#11 _DelayedDone.perform (dart:async/stream_impl.dart:614)
>#12 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:711)
>#13 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:671)
>#14 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
>#15 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
>#16 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
>#17 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:131)
>
>#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:883)
>#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
>#2 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
>#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
>#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:131)
>Failed to precompile intl:generate_from_arb:
>Unhandled exception:
>Uncaught Error: Failure getting http://localhost:51271/packages/intl/extract_messages.dart: 404 Not Found
>Stack Trace:
>#0 _asyncLoadError (dart:_builtin:285)
>#1 _httpGet.<anonymous closure>.<anonymous closure> (dart:_builtin:228)
>#2 _RootZone.runGuarded (dart:async/zone.dart:1078)
>#3 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:390)
>#4 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399)
>#5 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:290)
>#6 _ForwardingStream._handleDone (dart:async/stream_pipe.dart:110)
>#7 _handleDone (dart:async/stream_pipe.dart:178)
>#8 _RootZone.runGuarded (dart:async/zone.dart:1078)
>#9 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:390)
>#10 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399)
>#11 _DelayedDone.perform (dart:async/stream_impl.dart:614)
>#12 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:711)
>#13 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:671)
>#14 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
>#15 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
>#16 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
>#17 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:131)
>
>#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:883)
>#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
>#2 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
>#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
>#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:131)

具体来说,它提示两件事:
  • 导入“包:chart/chart.dart”
  • 导入 'package:chrome/chrome_app.dart' 作为 chrome

  • 在我更新 Dart SDK 之前,它们工作得很好。在 Dart 编辑器中,它提示:
    URI 的目标不存在

    作为 Dart 的新手,我已经进行了详尽的搜索并且没有运气。截止日期快到了,我焦急地寻找解决方案。我在 Mac Book 上开发。但我也有一个 Windows 7 笔记本。他们正在共享 Dropbox 配备的项目文件夹。昨天在此错误发生之前,我将我的 OS X 更新为 Yosemite。在机器更新时,我尝试在 Windows 7 笔记本中为我的项目发布获取和编译 dart2js。它产生了一些错误。所以我删除了我的整个 Dart 文件夹,现在又从 Mac Book 下载了它。我意识到现在 dart 已经更新到 1.7.2。

    对此的任何帮助将不胜感激!

    最佳答案

    在命令行上,运行“pub cache repair”可能会有所帮助。当我更新时,我经常必须这样做。

    关于从 1.60 更新到 1.72 : Failed to precompile intl:extract_to_arb 后,DART 发布失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26434770/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com