emacs-gdscript-mode icon indicating copy to clipboard operation
emacs-gdscript-mode copied to clipboard

When using a GDScript file located in a directory containing Chinese characters, Eglot fails to function properly.

Open lichongmao1226 opened this issue 2 months ago • 0 comments

I am new to Emacs and game engines. While trying to edit a GDScript file in a Chinese-named directory using Spacemacs, I noticed that Eglot was not working. Here are my steps:

1.After launching Godot, execute sudo netstat -antp | grep godot in the shell to obtain the port opened by the GDScript language server (6005). 2.Run Eglot in Spacemacs and enter 127.0.0.1:6005. Eglot indicates that the connection was successful. 3.However, during actual code editing, Eglot does not function(without error message). When I switched to LSP, features like error checking and syntax highlighting worked correctly.

Initially, I thought there was an issue with my Spacemacs configuration, which cost me a significant amount of debugging time. It was only when I accidentally edited a GDScript file located outside the project directory that Eglot started working magically. I realized the problem might be related to the Chinese-named project directory. Prior to this, I had never encountered such an issue when using Eglot to edit C++ code in Chinese-named directories.

lichongmao1226 avatar Oct 09 '25 10:10 lichongmao1226