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

Are we suppose to put localhost:6005 in our config (macOS)? #144

Closed
whompyjaw opened this issue Apr 6, 2024 · 2 comments
Closed

Are we suppose to put localhost:6005 in our config (macOS)? #144

whompyjaw opened this issue Apr 6, 2024 · 2 comments

Comments

@whompyjaw
Copy link

Maybe I am overlooking something here, but running eglot doesn't "just work". I have to manually call eglot then provide localhost:6005 which I would not have known if I hadn't found this issue: #137

On macOS

(use-package gdscript-mode
  :straight (gdscript-mode
             :type git
             :host github
             :repo "godotengine/emacs-gdscript-mode")
  :hook (gdscript-mode . eglot-ensure))

Am I suppose to open a project a specific way?

When I open a sctipt.gd in a project I get
[eglot] (warning) Wrong type argument: processp, nil

So then I have to manually run M-x eglot and type in localhost:6005 it loads eglot

@whompyjaw
Copy link
Author

whompyjaw commented Apr 6, 2024

Gleaned from this comment:
#137 (comment), I copied the ~/Library/Application Support/Godot/editor_settings-4.tres to ~/.config/godot and eglot starts up as expected when opening a *.gd script. So I guess or assume that in your init.el maybe for a new elisp variable:gdscript-godot-config-directory you could use the Apple path, or you copy/symlink the *.tres file to ~/.config/godot`

Can any other macOS users verify this works, and if so, can I make a PR to add this requirement for macOS?

Edit: Nevermind, seems this PR is attempting to fix this issue: #138. I don't get the disconnecting issue that @bbbscarter complains about

@whompyjaw whompyjaw changed the title Are we suppose to put localhost:6005 in our config? Are we suppose to put localhost:6005 in our config (macOS)? Apr 6, 2024
@jcs090218
Copy link
Collaborator

I'm not sure about eglot, but in lsp-mode, you need to open the project that started the language server.

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

2 participants