Skip to content

Renaming files triggers uri_does_not_exist #5269

@FMorschel

Description

@FMorschel

Describe the bug
When renaming files I got uri_does_not_exist in the line modified by the refactoring.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new empty project
  2. Add file a.dart
  3. Add import to main.dart
  4. Rename a.dart to c.dart
  5. Immediately click on main.dart (I believe)
  6. See that on main.dart you get the uri_does_not_exist lint on the line that now is c.dart

Here is the zip with all logs: temp.zip (main.dart in this case is temp.dart).

Expected behavior
No errors.

Please complete the following information:

Workspace Environment
Dart Code extension: 3.97.20240902
Flutter extension: 3.97.20240902 (activated)

App: Visual Studio Code
App Host: desktop
Version: win 1.93.1

Workspace type: Dart (LSP)
Workspace name: temp

Dart (3.5.3): C:\Users\felip_0vh5fa6\.puro\shared\caches\36335019a8eab588c3c2ea783c618d90505be233\dart-sdk
Flutter (3.24.3): C:\Users\felip_0vh5fa6\.puro\envs\stable\flutter (No device)

Output from 'dart info'

C:\Users\felip_0vh5fa6\.puro\shared\caches\36335019a8eab588c3c2ea783c618d90505be233\dart-sdk\bin\dart.exe info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.5.3 (stable) (Wed Sep 11 16:22:47 2024 +0000) on "windows_x64"
  • on windows / "Windows 10 Pro" 10.0 (Build 22631)
  • locale is pt-BR

Project info

  • sdk constraint: '^3.6.0-175.0.dev'
  • dependencies: args
  • dev_dependencies: lints, test

Process info

Memory CPU Elapsed time Command line
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions