-
Notifications
You must be signed in to change notification settings - Fork 14
Common issues troubleshooting
Symptoms may include intellisense failing to detect classes and/or plainly unreachable classes (noticed in errors when building).
This issue may occur while creating a custom templated project or just moving/messing around with the original godot-roguelite repo.
Project > Delete Cache and Reconfigure
Building may not fail even if your intellisense does, and it may actually fix your intellisense issue (if that's your only issue).
Build > Build gdextension
Close and open Visual Studio. (yeah sometimes it takes just that)
- Close the project in vs.
- Delete
.out
folder - In vs let cmake run when the vs project opens or hit
delete cache and reconfigure
. - Make sure the
.out
folder regenerates. If it doesn't after 30s, edit CMakeLists.txt (eg: add a space, remove and save). That should get the .out file back. - Run a gdextension build.
- After the build finishes, wait a while and see if intellisense recovers.
Project > Rescan Solution
Change the debugger back and forth and let VS rest for a while each change.
Your godot editor version is likely not the same as the one you made the .dll
build for.
With the CMake addon installed, you may have the Tools > Options > CMake, “Enable automatic CMake script modification
toggle on (it's on by default).
This can cause editor lag when adding new classes through the VS Community editor, and also proposes changes to the cmake files (which you most likely won't want).
Toggle the automatic CMake script modification off to avoid issues with this.
If you messed up, or think the submodules for your rogelite/roguelite templated project are messed up, you can follow these steps to reset them properly:
-
Remove contents of
extern/
folder. -
Remove
.gitmodules
file contents. -
Remove preexisting submodules, let's start by doing this to reconfigure them from scratch.
From any folder in your repo run:
git rm --cached extern/vcpkg -r
and:
git rm --cached extern/godot-engine -r
and:
git rm --cached extern/godot-cpp -r
-
Open
.git\config
file and remove submodule entries there. -
Remove contents of
.git\modules\extern
-
Make sure you have the vcpkg submodule set up, to do this:
If you've created a template and pulled it, or downloaded the project
.zip
file the roguelite submodules may have been preserved.You can confirm any existing submodules using
git submodule status
. If no submodules are setup, run the command in this step and step 4:From any folder in your repo run:
git submodule add https://github.com/microsoft/vcpkg extern/vcpkg
-
Make sure you have the godot-cpp and godot submodules set up, to do this:
From any folder in your repo run:
git submodule add -b 4.3 https://github.com/godotengine/godot-cpp extern/godot-cpp
and:
git submodule add -b 4.3 https://github.com/godotengine/godot extern/godot-engine
Note: version 4.3 is just an example, make sure you use Godot version your project requires.
-
Make sure your
.gitmodules
file only has the 3 entries for your 3 previously added submodules (for ease you can just assert the contents of the file are the same as here)