Skip to content

Script changes made with an external editor are not live reloading #73808

Open
@fhd

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:

  1. Create a new project
  2. Create a new User Interface scene
  3. Add a Label node
  4. Attach a script to the Label node
  5. Add a _process function with $Label.text = "Test"

Steps to reproduce once the project is in place:

  1. Run the project
  2. Change the string "Test" to something else in the Godot script editor and observe that it live reloads
  3. Change the string in an external editor and observe that it does not live reload

Minimal reproduction project

external-editor-live-reload.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions