Skip to content

Rename reports too many files with type errors #863

@sungshik

Description

@sungshik

Describe the bug

Imagine:

  • Module A imports module B
  • Module B contains a type error

Renames in module A result in spurious error messages about module A with the message:

Renaming failed, since this file has type error(s). (at file:///c:/Users/sung-/Desktop/rascal-scratch/src/main/rascal/A.rsc)

To Reproduce

  • Variant 1

    Rename:
    Image

    Notifications (about both A and B):
    Image

  • Variant 2

    Rename:
    Image

    Notification:
    Image

    This second variant has the additional peculiarity that B shouldn't be relevant to the rename of x. So, if the spurious error message is caused by a "leak" of type errors from B (the importee) to A (the importer), then perhaps there is another issue at play here, too.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions