flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.73k stars 27.37k forks source link

Need to produce strong/weak dill for non-nullable experiment/web #59792

Closed jonahwilliams closed 4 years ago

jonahwilliams commented 4 years ago

Commit 06de567811be0cb4eaf05254f0615ba819bb673c

Input:

C:\Users\Jonah\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Jonah\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Jonah\flutter\bin\cache\flutter_web_sdk/ --incremental --target=dartdevc --debugger-module-names
-Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\Jonah\AppData\Local\Temp\flutter_tools.57e8833f\flutter_tool.f7d77af3\app.dill --libraries-spec
file:///C:/Users/Jonah/flutter/bin/cache/flutter_web_sdk/libraries.json --packages .packages -Ddart.vm.profile=false
-Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-root
C:\Users\Jonah\AppData\Local\Temp\flutter_tools.57e8833f\flutter_tools.13504d14 --filesystem-scheme org-dartlang-app
--initialize-from-dill build\cache.dill.track.dill --platform
file:///C:/Users/Jonah/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill --enable-experiment=non-nullable

Error:

[   +5 ms] <- compile org-dartlang-app:/web_entrypoint.dart
Error: Unable to read the 'libraries.json' specification file:
  No library specification for target "none".
jonahwilliams commented 4 years ago

this might be just due to a missing strong mode dill, it might be fixed by the engine roll

jonahwilliams commented 4 years ago

The latest engine update did not resolve the situation

jonahwilliams commented 4 years ago

We need to produce both a weak and strong mode dill in the engine build, and conditionally switch based on the experiment.

jonahwilliams commented 4 years ago

Blocked on dart:_engine migration.

jonahwilliams commented 4 years ago

The dart_engine migration has landed, now waiting on https://github.com/flutter/engine/pull/19162 to land and roll

jonahwilliams commented 4 years ago

Fixed via https://github.com/flutter/engine/pull/19386

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.