dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 75 forks source link

Cant install `webdev` #2492

Closed dickermoshe closed 2 months ago

dickermoshe commented 2 months ago

General info

Project info

Process info

Memory CPU Elapsed time Command line
66 MB 0.0% 05:11:34 dart devtools --machine --allow-embedding --dtd-uri ws:/eZTqc7HbVXY8Bf3b
812 MB 0.0% 05:11:34 dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.96.0
84 MB 0.0% 05:11:34 dart tooling-daemon --machine
82 MB 0.0% 05:11:34 flutter_tools.snapshot daemon --show-web-server-device

Error

mick@MD-LAPTOP-1:~/newdrift/docs$ dart pub global activate webdev
Package webdev is currently active at version 3.6.0.
Downloading packages... . 
> devtools_shared 10.1.0 (was 10.0.2)
Building package executables... 
Failed to build webdev:webdev:
../../.pub-cache/hosted/pub.dev/dds-4.2.6/lib/src/devtools/handler.dart:166:12: Error: The argument type '({String? secret, String? uri})?' can't be assigned to the parameter type 'DtdInfo?'.
 - 'DtdInfo' is from 'package:devtools_shared/src/common.dart' ('../../.pub-cache/hosted/pub.dev/devtools_shared-10.1.0/lib/src/common.dart').
      dtd: dtd,
           ^

Link to devtools_shared issue: https://github.com/flutter/devtools/issues/8312

bkonyi commented 2 months ago

Thanks for the report! It looks like the latest release of devtools_shared should have been a major version bump, so it should probably be retracted and republished as 11.0.0. FYI @kenzieschmoll

kenzieschmoll commented 2 months ago

10.1.0 has been retracted: https://pub.dev/packages/devtools_shared/versions