Skip to content

Renaming is not possible if file is excluded from analysis_options #59912

@FMorschel

Description

@FMorschel

If you have on your analysis_options.yaml the following:

analyzer:
  exclude:
    - "**.g.dart"

When you use build_runner and a file with that ending is created, it is not analyzed (whatever that means besides showing warnings/lints).

That is what I expected but renaming doesn't work - "is outside of project" message. Since this file is still within my project I was not expecting this message but mainly I expected the rename to work.

Image

I'd expect it to allow me to rename if the file is inside any of the original analysis roots, regardless of where excludes and actual contexts are.


FYI @bwilkerson @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-serverIssues related to some aspect of the analysis servertype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions