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

missing sdk components #1061

Closed
fiurthorn opened this issue Jun 25, 2020 · 4 comments
Closed

missing sdk components #1061

fiurthorn opened this issue Jun 25, 2020 · 4 comments

Comments

@fiurthorn
Copy link

fiurthorn commented Jun 25, 2020

Get an error about missing dev_compiler.

Dart VM version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "linux_arm64"
webdev --version: 2.5.9

webdev build
[INFO] Building new asset graph completed, took 5.6s
[INFO] Checking for unexpected pre-existing outputs. completed, took 9ms
[SEVERE]build_web_compilers:sdk_js_copy on package:build_web_compilers/$lib$: FileSystemException: Cannot open file, path = '/home/fiurthorn/dart-sdk/lib/dev_compiler/kernel/amd/dart_sdk.js' (OS Error: No such file or directory, errno = 2)

[INFO] Generating SDK summary completed, took 21.1s
[INFO]build_web_compilers:entrypoint on web/main.dart: Running dart2js with --minify --packages=.dart_tool/package_config.json -oweb/main.dart.js web/main.dart
[WARNING]build_web_compilers:entrypoint on web/main.dart: Dart2Js failure: Dart2js exited with an unknown error
[INFO]build_web_compilers:entrypoint on web/main.dart: Running dart2js with --minify --packages=.dart_tool/package_config.json -oweb/main.dart.js web/main.dart
[WARNING]build_web_compilers:entrypoint on web/main.dart: Dart2Js failure: Dart2js exited with an unknown error
[SEVERE]build_web_compilers:entrypoint on web/main.dart: Dart2js exited with an unknown error

[INFO] Running build completed, took 1m 12s
[INFO] Caching finalized dependency graph completed, took 631ms
[SEVERE] Failed after 1m 13s
[SEVERE] FailureType: 1
@jakemac53
Copy link
Contributor

@fiurthorn does it work if you downgrade to allow only build_web_compilers with this constraint ^1.0.0? It is possible that sdk is to old and doesn't contain the expected files but we put the wrong sdk constraint or something. Possibly your dart sdk got corrupted or something as well and you could try re-installing it.

Alternatively updating your dart sdk should resolve the issue.

@jakemac53
Copy link
Contributor

Or you could try >=2.0.0 <2.6.1?

@fiurthorn
Copy link
Author

Using Dart 2.5.2 shows the a similar result

[WARNING] Throwing away cached asset graph due to version mismatch or corrupted asset graph.
[INFO] Reading cached asset graph completed, took 689ms
[INFO] Building new asset graph completed, took 6.6s
[INFO] Checking for unexpected pre-existing outputs. completed, took 6ms
[SEVERE] Throwing away cached asset graph due to version mismatch or corrupted asset graph.
[INFO] Serving `web` on http://127.0.0.1:9090
[SEVERE]build_web_compilers:sdk_js_copy on package:build_web_compilers/$lib$: FileSystemException: Cannot open file, path = '/home/fiurthorn/dart-sdks/dart-sdk-2.5.2/lib/dev_compiler/kernel/amd/dart_sdk.js' (OS Error: No such file or directory, errno = 2)

[WARNING] No actions completed for 24.4s, waiting on:
  - angular:angular on web/main.dart

[INFO] Generating SDK summary completed, took 24.5s
[SEVERE]build_web_compilers:entrypoint on web/main.dart: Bad state: Unable to locate required sdk resource build_web_compilers|lib/src/dev_compiler/dart_sdk.js

[SEVERE]build_web_compilers:entrypoint on test/app_test.dart.browser_test.dart: Bad state: Unable to locate required sdk resource build_web_compilers|lib/src/dev_compiler/dart_sdk.js

[INFO] Running build completed, took 38.7s
[INFO] Caching finalized dependency graph completed, took 708ms
[SEVERE] Failed after 39.5s

@jakemac53
Copy link
Contributor

Sorry, I meant build_web_compilers version >=2.0.0 <2.6.1 (in your pubspec)

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