Script changes made with an external editor are not live reloading #73808
Description
Godot version
3.51.stable.mono.official
System information
Ubuntu 22.04.2 LTS, GLES3, GeForce RTX 3090
Issue description
Live reloading changes made by an external editor doesn't seem to work for me, tried this on two different machines. In my understanding, since #51828 (which aims to address #10946) has been merged quite a while ago, it should.
I don't see any errors in the console or debugger, just nothing happens after I save the file with an external editor. I tried it with and without setting Use External Editor.
Update: Did some debugging (full story in the comments) and figured out that it does reload, but only if the editor window is focused after the file has been saved. I'd love a truly automatic reload though, without having to touch the editor first.
Steps to reproduce
I made a project to reproduce this, but it's pretty simple:
- Create a new project
- Create a new User Interface scene
- Add a Label node
- Attach a script to the Label node
- Add a
_process
function with$Label.text = "Test"
Steps to reproduce once the project is in place:
- Run the project
- Change the string
"Test"
to something else in the Godot script editor and observe that it live reloads - Change the string in an external editor and observe that it does not live reload