godotengine / godotengine/emacs-gdscript-mode

Run Godot in headless mode if application is not running and/or port is not responding

Open
#161 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 was looking for a way to run the gdscript LSP without using the Godot engine GUI, however since I didn't want to port the language server from the Godot source just yet I dug around in their documentation. I found that the editor can run headless which is pretty much what I wanted.

```sh
godot -e --headless --lsp-port --path
```

Some benefits of setting the port explicitly is that multiple projects can be opened simultaneously without the LSP shitting the bed. Since my elisp fu is not excellent I was wondering if someone might point me in the right direction.

If this could be implemented I'm thinking there are two ways to do it. 1) Scrap the old setup entirely and launch a godot instance per lsp workspace or 2) ping the port from the configuration to see if anyone's home and if not launch a headless instance.

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.