【问题标题】:Dart: Cannot start ReplDart:无法启动 Repl
【发布时间】:2023-02-22 05:23:56
【问题描述】:

我正在尝试根据页面 https://pub.dev/packages/repl 为 Dart 安装 repl

dart pub global activate repl 之后我收到以下错误信息:

$ drepl
The Dart VM service is listening on http://127.0.0.1:8181/V3ekGjDx3nQ=/
The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/V3ekGjDx3nQ=/devtools/#/?uri=ws%3A%2F%2F127.0.0.1%3A8181%2FV3ekGjDx3nQ%3D%2Fws
2.18.7 (stable) (Thu Jan 12 10:44:08 2023 +0000) on "macos_x64"
Type `exit()` or Ctrl-d to quit.
Unhandled exception:
Instance of 'InvalidPathResult'
#0      repl (package:repl/repl.dart:36:5)
<asynchronous suspension>
#1      wrappedMain (file:///Users/gefei/.pub-cache/hosted/pub.dartlang.org/repl-0.1.0+2/bin/main.dart:18:3)
<asynchronous suspension>

怎么了?

【问题讨论】:

    标签: dart read-eval-print-loop


    【解决方案1】:

    不幸的是,没有针对此异常的明显修复。还, package:repl 不再维护,作者建议用户改为查看 package:interactive,这样您可能会更幸运地尝试使用该软件包。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-29
      • 2012-11-20
      • 2013-06-19
      • 1970-01-01
      • 2019-08-16
      • 1970-01-01
      • 2011-04-04
      • 2020-12-09
      相关资源
      最近更新 更多