-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Closed
Labels
a: null-safetySupport for Dart's null safety featureSupport for Dart's null safety featuredependency: dartDart team may need to help usDart team may need to help use: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: invalidIssue is closed as not validIssue is closed as not validtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Error occurred when trying to migrate old Flutter project.
Steps to Reproduce
- Create a new Flutter project
flutter create migration_error- Open pubspec.yaml and change the enviroment sdk to
sdk: ">=2.7.0 <3.0.0"This is needed to disable null safety feature.
3. Make minor changes to main.dart
4. Run
dart migrateExpected results:
Normal migration page
Actual results:
NNBD Migration Preview with 404 error.
Logs
Migrating D:\Iqmal\Documents\Flutter apps\Experiments\migration_error
See https://dart.dev/go/null-safety-migration for a migration guide.
Generating migration suggestions...
[--------------------------------------------------------------------------------------------------------------------]
Compiling instrumentation information...
[--------------------------------------------------------------------------------------------------------------------]
View the migration suggestions by visiting:
http://127.0.0.1:61335/D:/Iqmal/Documents/Flutter%20apps/Experiments/migration_error?authToken=XE0nxcea0AQ%3D
Use this interactive web view to review, improve, or apply the results.
When finished with the preview, hit ctrl-c to terminate this process.
If you make edits outside of the web view (in your IDE), use the 'Rerun from
sources' action.
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version
10.0.22000.556], locale en-MY)
• Flutter version 2.10.3 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (13 days ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Iqmal\AppData\Local\Android\Sdk
• Platform android-31, build-tools 30.0.3
• ANDROID_HOME = C:\Users\Iqmal\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.10)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community
• Visual Studio Community 2019 version 16.11.32126.315
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
[√] IntelliJ IDEA Community Edition (version 2021.2)
• IntelliJ at D:\Program Files\IntelliJ IDEA Community Edition 2021.2
• Flutter plugin version 61.2.4
• Dart plugin version 212.4746.57
[√] VS Code, 64-bit edition (version 1.65.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.36.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version
10.0.22000.556]
• Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.51
• Edge (web) • edge • web-javascript • Microsoft Edge 99.0.1150.39
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Metadata
Metadata
Assignees
Labels
a: null-safetySupport for Dart's null safety featureSupport for Dart's null safety featuredependency: dartDart team may need to help usDart team may need to help use: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: invalidIssue is closed as not validIssue is closed as not validtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
