Skip to content

Renaming a file with just different capitalization leads to phantom files #790

@sewbacca

Description

@sewbacca

Describe the bug
When creating a file and renaming it to captialization variation, a phantom file is created, which seems to stick arround forever.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Project
  2. Create a file called test.lua
  3. Define a class called Test
  4. Rename the given file into a capitalization variation (Test.lua)
  5. See multiple definitions warning

Expected behavior
No phantom file to cause multiple definitions warning.

Screenshots
Walkthrough demonstration:

demonstration.gif

Sorry for the poor video quality, but converting mp4 to gif is a pain in the ass.

Environment (please complete the following information):

  • OS: Windows
  • No WSL
  • Client: VSCode

Additional context
It maybe has something to do with NTFS not distinguishing between capitalization variations in filename.
Currently only deleting the corresponding file and restarting the editor seems to get rid of the phantom file.

Provide logs
Log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions