-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I noticed that OverReact recently updated some version bounds: https://pub.dev/packages/over_react/changelog#545
As a result, I tried updating my project to allow, e.g., analyzer version >= 7.0, but although that is ostensibly allowed by OverReact's pubspec.yaml, test_html_builder does not allow it. I was able to get dart packages installed with analyzer version >=7.0, as well as upgrading dart_style to (almost) the latest version of 3.1.1, but building then fails with this error:
[INFO] ../../../.pub-cache/hosted/pub.dev/test_html_builder-3.0.12/lib/src/builder.dart:160:35: Error: Required named parameter 'languageVersion' must be provided.
[INFO] final contents = DartFormatter().format('''@TestOn('browser')
[INFO] ^
[INFO] ../../../.pub-cache/hosted/pub.dev/dart_style-3.1.1/lib/src/dart_formatter.dart:88:3: Context: Found this candidate, but the arguments don't match.
[INFO] DartFormatter({
[INFO] ^^^^^^^^^^^^^
[SEVERE] Failed to compile build script. Check builder definitions and generated script .dart_tool/build/entrypoint/build.dart.
Unhandled exception:
Bad state: Unable to start build daemon.
and it seems the explanation is test_html_builder being outdated and using an old <3.0 version of dart_style, which itself restricts the analyzer version to <7.0. (if I recall correctly... I don't know, these transitive bounds are such a tangled mess I can't keep it straight)
I'm quite confused how OverReact, which uses test_html_builder, is able to have less restrictive version bounds than test_html_builder. Is it possible that, since they are both developed by the same organization, perhaps internally you're using some more updated version of test_html_builder than what's currently on the master branch, and just haven't noticed these errors as a result?