godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.33k stars 21.06k forks source link

FileSystem dock not showing any files, and resource files not editable in Inspector #92743

Open willurd opened 4 months ago

willurd commented 4 months ago

Tested versions

Reproducible in:

System information

Godot v4.2.2.stable - Windows 10.0.22631 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.4601) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)

Issue description

I was working on a very small project (following a tutorial) and noticed at one point that the FileSystem dock was no longer showing any files at all:

image

I then noticed that I was unable to edit custom resources in the Inspector. I believe these issues are linked because they showed up at the same time. I could be wrong.

image

In other views in the FileSystem dock, the files do show up:

image

image

My project is still able to build and run though:

image

I have tried closing and reopening Godot, and I've tried loading up other projects. I'm having the same issue in all projects across restarts. I thought it might be some kind of editor settings, but I couldn't find anything.

I also tried deleting my entire ~\AppData\Local\Godot folder but that didn't help either.

Steps to reproduce

I have no idea how I got in this state and no idea how to get out.

Minimal reproduction project (MRP)

I'm having the same problem in all projects, so I believe it's not an issue with any one of them in particular. I'm happy to upload a project if that would help though.

willurd commented 4 months ago

Alright, so I built godot from source to dig into this (props for making it super easy to build!) and it turned out that every file was getting filtered out of the list by _is_file_type_disabled_by_feature_profile(file_type). So I checked my feature profile and Resource had been unchecked!

1

Re-checking that made all my files show up again, and made resources editable in the Inspector again as well.

The thing is, I definitely did not remove that check myself. From what I can recall, the file list was working, then I added a new res://autoload folder, a new Events.gd script under that, and then added that script to my autoloads. Then shortly after that I noticed my files missing from the FileSystem dock.

Anyway, I'm not sure how to go about reproducing this, but figured I'd update that it's all working for me again. I think there might be a bug in here somewhere, but I'm not sure what it is. Feel free to close this, or if you want me to test something else to try and find the issue, let me know. Thanks.