-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Bad state: Unexpected diagnostics: sky_engine\lib\ui\channel_buffers.dart - This requires the 'non-nullable' language feature to be enabled #63096
Copy link
Copy link
Closed
Description
Steps to Reproduce
- I created a new code generation project, following different resources
- Create a flutter app to test code generation
- Run
flutter pub run build_runner build
Expected results:
Since no annotation is present inside the flutter app (only original main.dart), the generation process should complete without any code generated and without any failure.
Actual results:
The build process is unsuccessful and fails with the following result (from flutter pub run build_runner build --verbose):
[INFO] Generating build script...
[INFO] Generating build script completed, took 466ms
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 71ms
[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 697ms
[WARNING] Invalidating asset graph due to build script update!
[INFO] Cleaning up outputs from previous builds....
[INFO] Cleaning up outputs from previous builds. completed, took 3ms
[INFO] Generating build script...
[INFO] Generating build script completed, took 99ms
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 12.9s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 1.3s
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Running build...
[INFO] Generating SDK summary...
[SEVERE] repo_case_generator:repo_case on lib/main.dart:
Bad state: Unexpected diagnostics:
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:119:41 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:152:17 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:88:62 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:153:38 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:186:51 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:133:32 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:154:25 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:18:17 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:64:4 - This requires the 'non-nullable'
language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:168:32 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:47:14 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:159:38 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:132:37 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:118:48 - This requires the 'non-nullable' language feature to be enabled.
C:\Users\Sandro Maglione\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:19:11 - This requires the 'non-nullable' language feature to be enabled.
[INFO] Running build completed, took 1.4s
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 48ms
[SEVERE] Failed after 1.5s
pub finished with exit code 1
The flutter app contains only the default main.dart created after running flutter create.
build_runner: ^1.10.0analyzer: ^0.39.16build: ">=0.12.6 <2.0.0"sdk: ">=2.6.0 <3.0.0"
[√] Flutter (Channel stable, 1.20.0, on Microsoft Windows [Version 10.0.18362.959], locale en-US)
• Flutter version 1.20.0 at C:\Users\Sandro Maglione\flutter\flutter
• Framework revision 840c9205b3 (2 days ago), 2020-08-04 20:55:12 -0700
• Engine revision c8e3b94853
• Dart version 2.9.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\Sandro Maglione\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[!] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.47.3)
• VS Code at C:\Users\Sandro Maglione\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.13.2
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels