Skip to content
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

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

Open
brorbw opened this issue Jan 16, 2025 · 0 comments

Comments

@brorbw
Copy link

brorbw commented Jan 16, 2025

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.

godot -e --headless --lsp-port <desired port> --path <project_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant