You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐞 Opening a folder with source files only shows empty files in the editor #1781
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
Click Open file or folder
Open a folder containing *.h and *.cpp files
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
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
Activity
[-]🐞 Opening a folder with source files only shows empty files[/-][+]🐞 Opening a folder with source files only shows empty files in the editor[/+]bombardier200 commentedon Jun 27, 2024
This issue was fixed a PR a few commits ago, I would reclone the project and see if that fixes it.
LostInCompilation commentedon Jun 27, 2024
Do you mean #1767? That one is not merged. Recloning sadly didn't help.
bombardier200 commentedon Jun 27, 2024
@armartinez can you take a look?
armartinez commentedon Jun 27, 2024
@bombardier200

I can't reproduce
LostInCompilation commentedon Jun 27, 2024
Happens only with this one folder. The source files seem to have Japanese encoding. Here is the folder:
src.zip