Skip to content

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

Description

@lichongmao1226

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions