godotengine / godotengine/godot-cpp

Godot 4.4 beta 4 hot-reloading not working.

Open
#1,712 39 comments 0 reactions 0 assignees View on GitHub
bug needs testing
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

### Godot version

Godot 4.4 beta 4

### godot-cpp version

master

### System information

Fedora Kinoite 41

### Issue description

After compiling any part of the code, every public code to show in Godot gui, disappear.

In Cmake I tried this:

```cmake
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-omit-frame-pointer -O0 -DHOT_RELOAD_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED")
```

tried this:

```cmake
set(GODOT_ENABLE_HOT_RELOAD ON CACHE INTERNAL "Enable hot reloading support")
set(GODOT_CPP_SYSTEM_HEADERS ON CACHE INTERNAL "Generate system headers")
#set(GODOT_CPP_WARNING_AS_ERROR OFF CACHE INTERNAL "Treat warnings as errors")
set(GENERATE_TEMPLATE_GET_NODE ON CACHE INTERNAL "Get template node")
set(FLOAT_PRECISION "${PRECISION}" CACHE INTERNAL "Library precision")
set(GODOT_CUSTOM_API_FILE "${EXTENSION_FILE}" CACHE INTERNAL "Extension api file")
```

and this.
```md
reloadable = true
```

I tried this with 4.3 and 4.4 beta 1,2,3 and 4

### Steps to reproduce

Launch Godot, edit some part of the code, compile and disappears every public code and not showing in godot GUI.

Before:

![Image](https://github.com/user-attachments/assets/34231b48-ffb1-4d48-a802-c96eabf49009)

After:

![Image](https://github.com/user-attachments/assets/3d5f6fe7-39f0-4502-821a-7eec5d0fd9c2)

### Minimal reproduction project

Could happen with a new project.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.