Skip to content
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

Dill file missing when serving web project in Dart 3 #1918

Closed
jodinathan opened this issue Jan 25, 2023 · 4 comments
Closed

Dill file missing when serving web project in Dart 3 #1918

jodinathan opened this issue Jan 25, 2023 · 4 comments

Comments

@jodinathan
Copy link

I am trying to make js_bindings example work but I am having this error when trying to serve using DDC. It works OK when using dart2js compiler.

Dart SDK version: 3.0.0-151.0.dev (dev) (Fri Jan 20 22:45:17 2023 -0800) on "macos_x64"

webdev serve example

[INFO] Reading cached asset graph completed, took 672ms
[INFO] Checking for updates since last build completed, took 1.2s
[INFO] Serving `example` on http://127.0.0.1:8080
[INFO] Running build completed, took 338ms
[INFO] Caching finalized dependency graph completed, took 504ms
[SEVERE] build_web_compilers:entrypoint on example/main.dart (cached): Bad state: Unable to locate required sdk resource build_web_compilers|lib/src/dev_compiler/dart_sdk.sound.js

[SEVERE] build_web_compilers:sdk_js on asset:build_web_compilers/$package$ (cached): Error compiling dartdevc module:build_web_compilers|lib/src/dev_compiler/dart_sdk.sound.js

Unhandled exception:
PathNotFoundException: Cannot open file, path = '/Users/jonathanrezende/Dart/current/lib/_internal/ddc_platform_sound.dill' (OS Error: No such file or directory, errno = 2)
#0      _File.throwIfError (dart:io/file_impl.dart:618:7)
dart-lang/sdk#1      _File.openSync (dart:io/file_impl.dart:473:5)
dart-lang/sdk#2      _File.readAsBytesSync (dart:io/file_impl.dart:533:18)
dart-lang/sdk#3      loadComponentFromBinary (package:kernel/kernel.dart:27:36)
dart-lang/sdk#4      compileSdkFromDill (package:dev_compiler/src/kernel/command.dart:544:19)
dart-lang/sdk#5      _compile (package:dev_compiler/src/kernel/command.dart:210:12)
dart-lang/sdk#6      compile (package:dev_compiler/src/kernel/command.dart:52:12)
dart-lang/sdk#7      internalMain (package:dev_compiler/ddc.dart:37:24)
dart-lang/sdk#8      main (file:///opt/s/w/ir/x/w/sdk/pkg/dev_compiler/bin/dartdevc.dart:18:14)
dart-lang/sdk#9      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:293:33)
dart-lang/sdk#10     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)
@parlough
Copy link
Member

webdev needs to make a new release to be compatible with the latest DDC changes (dart-lang/sdk#50700). See dart-lang/sdk#51106 (comment) for a plan and more context.

@annagrin
Copy link
Contributor

@jodinathan and @parlough for reporting this. We are working on releasing a new webdev version that will support current SDK layout changes for dart 3.0 that exist in dev SDK channel. I am moving this issue to webdev repo.

@annagrin annagrin transferred this issue from dart-lang/sdk Jan 25, 2023
@annagrin
Copy link
Contributor

related: #1878 (the current issue will be solved by next webdev release)

@elliette
Copy link
Contributor

Webdev version 3.0.0 has been released, so this should be resolved. Please re-open if running dart pub global activate webdev does not resolve 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

4 participants