Skip to content

webdev fails with stable SDK #2288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mnordine opened this issue Nov 9, 2023 · 6 comments
Closed

webdev fails with stable SDK #2288

mnordine opened this issue Nov 9, 2023 · 6 comments

Comments

@mnordine
Copy link

mnordine commented Nov 9, 2023

Just got this with Dart 3.1.5 SDK:

$ dart pub global activate webdev
00:07
Package webdev is currently active at version 3.0.7+1.
Resolving dependencies...
> build_daemon 4.0.1 (was 4.0.0)
  dds 2.11.1 (3.1.0 available)
  dds_service_extensions 1.6.0 (1.6.2 available)
  devtools_shared 4.0.1 (6.0.1 available)
  dwds 19.0.2+1 (22.1.0 available)
  file 6.1.4 (7.0.0 available)
  http 0.13.6 (1.1.0 available)
  uuid 3.0.7 (4.2.1 available)
  vm_service 11.10.0 (13.0.0 available)
  webdev 3.0.7+1 (3.2.0 available)
Building package executables...
Built webdev:webdev.
Installed executable webdev.
Activated webdev 3.0.7+1.
$ webdev build
00:30
[INFO] Reading cached asset graph completed, took 568ms
[INFO] Checking for updates since last build completed, took 1.4s
[INFO] Unhandled exception:
Instance of 'MissingPortFile'
#0      _existingPort (package:build_daemon/client.dart:24:37)
<asynchronous suspension>
dart-lang/sdk#1      BuildDaemonClient.connect (package:build_daemon/client.dart:180:9)
<asynchronous suspension>
dart-lang/sdk#2      BuildCommand.run (package:webdev/src/command/build_command.dart:66:20)
<asynchronous suspension>
dart-lang/sdk#3      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
dart-lang/sdk#4      _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:12)
<asynchronous suspension>
dart-lang/sdk#5      run (package:webdev/src/webdev_command_runner.dart:19:46)
<asynchronous suspension>

Originally posted by @mnordine in dart-lang/sdk#53459 (comment)

@elliette elliette transferred this issue from dart-lang/sdk Nov 9, 2023
@elliette
Copy link
Contributor

elliette commented Nov 9, 2023

Hi @mnordine! What Dart version are you on?

@mnordine
Copy link
Author

mnordine commented Nov 9, 2023

@elliette

Just got this with Dart 3.1.5 SDK

@mnordine
Copy link
Author

mnordine commented Nov 9, 2023

Entire company is stalled on this, major deploy from yesterday delayed in CI. Any workarounds?

@mnordine
Copy link
Author

mnordine commented Nov 9, 2023

I figured it out with dart run build_runner build for now.

@elliette
Copy link
Contributor

elliette commented Nov 9, 2023

Glad you got it working! I'm unable to reproduce with the WebDev 3.0.7+1 and Dart 3.1.5 (build completes successfully, see below), so I'm going to close this issue.

[INFO] Building new asset graph completed, took 1.0s
[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms
[INFO] build_web_compilers:entrypoint on web/main.dart: Running `dart compile js` with --minify --libraries-spec=/Users/elliottbrooks/.dart-sdks/3.1.5/lib/libraries.json --packages=org-dartlang-app:///.dart_tool/package_config.json --multi-root-scheme=org-dartlang-app --multi-root=/private/var/folders/wy/0pdp3vd16xv2q3d5dfqb1x7400lsm6/T/scratch_spaceVwGVCu/ -oweb/main.dart.js org-dartlang-app:///web/main.dart
[INFO] build_web_compilers:entrypoint on web/main.dart: Compiled 9,793,490 input bytes (5,006,178 characters source) to 50,659 characters JavaScript in 0.79 seconds using 200.750 MB of memory

[INFO] Running build completed, took 1.7s
[INFO] Caching finalized dependency graph completed, took 135ms
[INFO] Creating merged output dir `build` completed, took 13ms
[INFO] Writing asset manifest completed, took 1ms
[INFO] Succeeded after 1.9s with 7 outputs (1753 actions)

@elliette elliette closed this as completed Nov 9, 2023
@mnordine
Copy link
Author

mnordine commented Nov 9, 2023

I was able to "fix" it locally on my machine by dart pub upgrade, and the transitive dep build_daemon went from 4.0.0 to 4.0.1.

Seems to have worked after that.

Perhaps something was broke in that version. If so, users will hit it. Hopefully they dart pub upgrade or find this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants