google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.38k stars 3.7k forks source link

Dart generators are not compatible with Dart 3. #7701

Open NeilFraser opened 9 months ago

NeilFraser commented 9 months ago

Check for duplicates

Description

Dozens of errors in generated code. int vs num, functions returning null, broken link to dartpad.

I have code changes which address some of this.

Reproduction steps

  1. Run Dart generator tests on modern Dart.

Stack trace

No response

Screenshots

No response

Browsers

No response

maribethb commented 8 months ago

We should document that the current generator generates Dart 2.

Without further evidence, it doesn't seem worth investing our team's effort in updating this generator. If an external contributor comes along that wants Dart 3, we'd be happy to accept a PR, though we should be careful not to break existing users who rely on Dart 2.

If anyone comes across this issue because they care specifically about Dart 3, please comment here, as we're interested in usage. Thanks!