Skip to content

Exception when attempting to compute the file changes for the file move: Server error: The edit.getRefactoring request was cancelled." #4702

@liudonghua123

Description

@liudonghua123

Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
github.com/flutter/flutter.

Steps to Reproduce

  1. open project in android studio
  2. move/refactor some dart files under lib from a directory to another directory, both directory are under lib.
  3. move expection dialog shown Exception when attempting to compute the file changes for the file move: Server error: The edit.getRefactoring request was cancelled."
    image
  4. The dart files moved, but the imports are not changed, so the code broken.

Please tell us what you were doing and what went wrong

Version info

D:\code\flutter\colorful_classroom_app>flutter doctor -v
[✓] Flutter (Channel master, 1.20.0-8.0.pre.101, on Microsoft Windows [Version 10.0.19041.388], locale en-US)
    • Flutter version 1.20.0-8.0.pre.101 at D:\apps\flutter
    • Framework revision fcb5806933 (54 minutes ago), 2020-07-14 22:41:01 -0700
    • Engine revision 99c2b3a245
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 20bf2fcf56)
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at D:\android\Android_SDK
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = D:\android\Android_SDK
    • Java binary at: D:\apps\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.5.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.5.30011.22
    • Windows 10 SDK version 10.0.18362.0

[✓] Android Studio (version 4.0)
    • Android Studio at D:\apps\Android Studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code, 32-bit edition (version 1.46.1)
    • VS Code at C:\Program Files (x86)\Microsoft VS Code
    • Flutter extension version 3.12.1

[✓] Connected device (4 available)
    • Windows (desktop) • windows    • windows-x64    • Microsoft Windows [Version 10.0.19041.388]
    • Web Server (web)  • web-server • web-javascript • Flutter Tools
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 84.0.4147.89
    • Edge (web)        • edge       • web-javascript • Microsoft Edge 83.0.478.61

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions