Error: The non-abstract class 'ChromeProxyService' is missing implementations for these members:

Error: The non-abstract class 'ChromeProxyService' is missing implementations for these members:

我今天早上做了一个 pub 构建,突然间,昨天编译好的东西,今天没有任何变化,就坏了。

Failed to precompile webdev:webdev:
../../../.pub-cache/hosted/pub.dartlang.org/dwds-3.1.3/lib/src/services/chrome_proxy_service.dart:40:7: Error: The non-abstract class 'ChromeProxyService' is missing implementations for these members:
 - VmServiceInterface.getSupportedProtocols
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class ChromeProxyService implements VmServiceInterface {
      ^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/vm_service-4.1.0/lib/src/vm_service.dart:745:24: Context: 'VmServiceInterface.getSupportedProtocols' is defined here.
  Future<ProtocolList> getSupportedProtocols();
                       ^^^^^^^^^^^^^^^^^^^^^
Precompiling executables... (1.9s)

我已经完成了缓存修复,再看看是否有更新的版本,我已经进行了升级以确保万无一失,但是当我点击 activate webdev 时,我得到了上面的信息错误。

~/Code/dart-sdk-2.8.4/bin/pub cache repair
~/Code/dart-sdk-2.8.4/bin/pub get
~/Code/dart-sdk-2.8.4/bin/pub upgrade
~/Code/dart-sdk-2.8.4/bin/pub global activate webdev
~/Code/dart-sdk-2.8.4/bin/pub global run webdev  build --verbose --output=web:build -- --delete-conflicting-outputs || exit

这是我的pubspec.yaml,里面不多

name: blah
version: 0.0.0
description: Blah

environment:
  sdk: ">=2.8.0 <3.0.0"

dev_dependencies:
  build_runner: ^1.10.0
  build_test: ^0.10.2
  build_web_compilers: ^2.11.0
  test: ^1.0.0

我正在使用 Dart 2.8.4(在其他版本的 Dart 上也一样,所以不确定 Dart 版本是否有效)

有什么想法吗?

似乎有临时解决方法

pub global activate webdev 2.5.6

https://github.com/dart-lang/webdev/issues/1036

https://github.com/dart-lang/webdev/issues/1037