-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[frontend_server] frontend_server.dart.snapshot missing from 3.5.0-180.2 beta SDK #55911
Comments
It looks to be because \cc @a-siva @derekxu16 |
Yes, that assessment is correct. One thing I see is that I'm also not sure why
This is technically not possible if we follow SemVer, because there is no way to make the behaviour of the |
This seems to also impact 3.5.0-180.3 |
@cpswan can you clarify which versions of |
@a-siva looking at the pubspec.lock I see: test_core:
dependency: transitive
description:
name: test_core
sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e"
url: "https://pub.dev"
source: hosted
version: "0.5.3" and
Here's the pubspec.yaml and here's the full pubspec.lock |
I just took a closer look at the |
Thanks @derekxu16 Whilst putting together my response to @a-siva I figured we would need to update a bunch of packages to get things working, and you'll see the linked ticket above. Before I close this I'm just wondering if there's a doc somewhere that explains what the various snapshots do, and how they fit into the build/test process? I'm pretty comfortable with JIT and AOT snapshots, but the snapshots that come bundled with the SDK are something of a mystery to me. |
The snapshots bundled with the SDK are each required to make some part of Dart tooling work. They are all built from sources in the |
Thanks @derekxu16 I would be great if one of the SDK maintainers could do a talk on this stuff sometime ;) I can grok a handwavy explanation that |
I just switched to Flutter 3.24.0 which comes with Dart 3.5.0. When running
In the folder there is a Could this issue be reopened? |
@SebastianEngel you need to upgrade dependencies, see google/json_serializable.dart#1427 (comment) |
Initially I updated all potentially related dependencies, like |
@SebastianEngel do you find any solution for this ? |
@affansk you need to upgrade the dependencies via |
@mraleph i tried everything still i get Run "dart help " for more information about a command. do i need to install frontend_server package ? |
It's a transitive dependency of the build_runner. That means you have some dependency that is somehow blocking upgrade to the correct version of the package or you are (somehow) using build_runner at an older version. |
In my case deleting the pubspec.lock helped |
If you're using pinned versioning like me(without the carrot) use |
Hey, Could you please reopen this? I have tried most of proposed solutions but I still get the error when trying to run any script in my project. I have only two outdated dart transitive dev_dependencies: |
What you are trying to do and what kind of error do you get? Notice that this issue itself has nothing to do with running scripts - it's about running tests via If you can't run |
I'm still seeing this issue, not sure how to solve it. To clarify:
|
Is it possible to get a log of the commandline that fails, it looks like for some reason the build runner is still using the old JIT snapshot command |
@a-siva Looks like it went away; either with clean or flutter upgrade. I'll post again if it happens again - and thanks! |
I'm having the same issue, Any idea that what happens ? I'm using fvm to mange Flutter versions, actually using 3.22.3 Flutter SDK / 3.4.4 (Flutter)Dart SDK |
Fixed, in the new versions of Flutter they have removed In my case I downloaded version 3.22.3 and I only had to take the file to add it to my flutter>dart directory. |
worked for me without upgrading majors as well (i.e |
dart info
)First saw this in a CI test run on GitHub Actions, where we do a matrix test against stable and beta
All the tests then fail:
Weirdly the functional tests in the same repo appear to run fine against beta.
I've been able to replicated locally against the same repo using the 3.5.0-180.2 beta SDK on x64 Linux.
Looking in $DART_HOME/bin/snapshots I see:
$ ls -la total 371388 drwxr-xr-x 2 chris chris 4096 Jun 3 11:18 . drwxr-xr-x 5 chris chris 4096 Jun 3 11:18 .. -rw-r--r-- 1 chris chris 65047296 May 29 07:20 analysis_server.dart.snapshot -rw-r--r-- 1 chris chris 81028768 May 29 07:20 dart2js.dart.snapshot -rw-r--r-- 1 chris chris 14717648 May 29 07:19 dart2wasm_product.snapshot -rw-r--r-- 1 chris chris 8001968 May 29 07:19 dart_tooling_daemon.dart.snapshot -rw-r--r-- 1 chris chris 51104080 May 29 07:19 dartdev.dart.snapshot -rw-r--r-- 1 chris chris 52431680 May 29 07:19 dartdevc.dart.snapshot -rw-r--r-- 1 chris chris 9218560 May 29 07:19 dds.dart.snapshot -rw-r--r-- 1 chris chris 15615248 May 29 07:19 frontend_server_aot.dart.snapshot -rw-r--r-- 1 chris chris 13526664 May 29 07:19 gen_kernel_aot.dart.snapshot -rw-r--r-- 1 chris chris 47246016 May 29 07:19 kernel-service.dart.snapshot -rw-r--r-- 1 chris chris 22334928 May 29 07:19 kernel_worker.dart.snapshot
So
frontend_server.dart.snapshot
isn't there (when it was present in 3.4.2).The text was updated successfully, but these errors were encountered: