-
Notifications
You must be signed in to change notification settings - Fork 136
plz adapter dart 2.10.1 and flutter 1.22.1 #124
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
Comments
The error above is
How is this related to ObjectBox for Flutter? |
@DuJerry Do you get the same output with ObjectBox 0.8.0? |
Also unable to generate objectbox after upgrading to flutter 1.22.1 and got the same error for |
@softkot Did you also try with the recently released ObjectBox Dart |
Yes i did it with 0.8.0 |
I found it works if use build_runner: 1.10.2 |
@softkot So what |
1.10.1 does not work |
That makes sense. According to their changelog this version pins analyzer to
|
Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale zh-Hans-CN)
[INFO] Generating build script... [INFO] Initializing inputs [INFO] Checking for updates since last build... [INFO] Running build... [INFO] Caching finalized dependency graph... [INFO] Succeeded after 2.5s with 4 outputs (5 actions) |
@DuJerry please try running For context, this has been caused by dart-lang/build#2763 and as has been said above, seems only to be resolvable by also requiring a fairly recent minimum dart SDK version (v2.10) enforced by the fixed |
@DuJerry Thanks for verifying using So TL;DR for anyone coming here: use at least |
It works! Thanks |
Not sure if we can do anything on our side without raising min-SDK constraint so I'm closing the issue. Feel free to follow up if you have any change suggestions. |
my environment
the following error occurred when i use
flutter packages pub run build_runner build --delete-conflicting-outputs
.[INFO] Generating build script...
[INFO] Generating build script completed, took 484ms
[WARNING] Deleted previous snapshot due to missing asset graph.
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 17.0s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 1.6s
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Running build...
[WARNING] objectbox_generator:resolver on package:objectbox_generator/objectbox_generator.dart:
Your current
analyzer
version may not fully support your current SDK version.Please try upgrading to the latest
analyzer
by runningflutter packages upgrade
.Analyzer language version: 2.9.0
SDK language version: 2.10.0
If you are getting this message and have the latest analyzer please file
an issue at https://github.com/dart-lang/sdk/issues/new with the title
"No published analyzer available for language version 2.10.0".
Please search the issue tracker first and thumbs up and/or subscribe to
existing issues if present to avoid duplicates.
[INFO] Generating SDK summary...
[SEVERE] objectbox_generator:resolver on package:objectbox_generator/objectbox_generator.dart:
Bad state: Unexpected diagnostics:
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:152:17 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:119:41 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:133:32 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:186:51 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:88:62 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:153:38 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:64:4 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:154:25 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:18:17 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:118:48 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:132:37 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:19:11 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:159:38 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:168:32 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:47:14 - This requires the 'non-nullable' language feature to be enabled.
[SEVERE] objectbox_generator:resolver on package:objectbox_generator/objectbox_generator.dart:
Bad state: Unexpected diagnostics:
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:152:17 - This requires the 'non-nullable' language feature to be enabled.
/Users/dugang/Library/Android/flutter/bin/cache/pkg/sky_engine/lib/ui/channel_buffers.dart:119:
The text was updated successfully, but these errors were encountered: