-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot4 Editor not picking up external editing changes with LSP #69485
Comments
FYI I just tried reproducing this on the beta9 build (e780dc3) for this on a Windows 10 machine - after editing it in an external LSP-enabled editor I'm getting a dialog popup in the Godot Editor saying the file is newer on disk with the option to reload, which I guess is better (although ideally it'd reload automatically like it does in 3.5.1)? I have also tried cherrypicking this bugfix #69550 into it but getting the same behaviour. I'll be able to test it back on the original Ubuntu 18.04 machine again in the new year. |
You need to enable
Still out of sync? |
Thanks, I've just tried testing again on beta10:
|
I feel like you may not be correctly distinguishing between behavior that via lsp and behavior that not. Display a script in the script editor and edit it in an external editor.
I can't judge your operation from your description.
If you don't want to get these messages, you may need to install I've resolved the conflict, you can retest if it's convenient for you. |
Godot version
4.0.beta7.official [0bb1e89]
System information
Ubuntu 18.04
Issue description
I believe there is an issue with the Godot editor's script editor not picking up changes whenever a file is changed from an editor that has an LSP integration.
Steps to reproduce
zz-godot-4-editor-test
)Control
), attach a script file to it, (e.g.Test.gd
).print("Hello World!")
to the_ready
function inTest.gd
<F5>
and confirm it runs and prints outTest.gd
in either Emacs withgdscript-mode
enabled (https://github.com/godotengine/emacs-gdscript-mode) or VSCode with godot-tools (https://marketplace.visualstudio.com/items?itemName=geequlim.godot-tools), change line to something likeprint("Hello World from emacs")
<Ctrl-w>
and reopen itThe script does reload properly if:
Performed the above on Ubuntu 18.04 machine with Godot 4 beta7 but I've observed it since first trying out Godot4 which was around beta4.
Having a quick look at open PRs, this one (#66658) looks like it could be relevant but it hasn't been updated for a while.
Minimal reproduction project
The text was updated successfully, but these errors were encountered: