Skip to content

🐞 Opening a folder with source files only shows empty files in the editor #1781

Open

Description

@LostInCompilation

Description

When I click Open file or folder and select a folder containing *.h and *.cpp source files, the file tree is correctly displayed. But when I try to open a source file in the editor, it only shows an empty file.
However when I open a standard text file which is also contained in the folder, the file contents show normally.

To Reproduce

  1. Click Open file or folder
  2. Open a folder containing *.h and *.cpp files
  3. Open a file in the editor

Expected Behavior

The editor should show the file contents.

Version Information

CodeEdit: Current GitHub clone (Commit #1718)
macOS: 14.5.1
Xcode: 15.4

Additional Context

No response

Screenshots

Screenshot 2024-06-27 at 06 30 52

Activity

  1. changed the title [-]🐞 Opening a folder with source files only shows empty files[/-] [+]🐞 Opening a folder with source files only shows empty files in the editor[/+] on Jun 27, 2024
  2. bombardier200 commented on Jun 27, 2024

    @bombardier200
    Contributor

    This issue was fixed a PR a few commits ago, I would reclone the project and see if that fixes it.

  3. LostInCompilation commented on Jun 27, 2024

    @LostInCompilation
    Author

    Do you mean #1767? That one is not merged. Recloning sadly didn't help.

  4. bombardier200 commented on Jun 27, 2024

    @bombardier200
    Contributor

    @armartinez can you take a look?

  5. armartinez commented on Jun 27, 2024

    @armartinez
    Contributor

    @bombardier200
    Screenshot 2024-06-27 at 14 34 31

    I can't reproduce

  6. LostInCompilation commented on Jun 27, 2024

    @LostInCompilation
    Author

    Happens only with this one folder. The source files seem to have Japanese encoding. Here is the folder:
    src.zip

  7. moved this from 🆕 New to 📋 Todo in CodeEdit Projecton Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions