godotengine / godotengine/emacs-gdscript-mode

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

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
401
Forks
42
Avg merge
23h 23m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.