You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So for some reason, I have very inconsistent behavior with Ruby projects when awaiting completions to be provided. For no discernible reason whatsoever to me, most of the time, when I type and await a completion (e.g. object.)...nothing happens. The eglot logs reflect the same as no events occur besides indicating that I changed the document.
However, some times (very very infrequently and unreliably) I do get completions and see in the eglot logs that a textDocument/completion request was made to the server and completion items were returned.
Particularly strange is that if I try to replicate the exact situation (exact file, line of code, and characters I typed) when I did get completions successfully, more often than not, I don't get any completions again. Very bewildered as to how it appears to be so random.
Haven't rigorously observed and measured it, but for what it's worth as well: rough ballpark of completions being provided would be like 5-10% of the time.
Haven't tried eglot out with much else, but did try with some golang and Rust projects and it provided completions reliably as expected (although it did constantly raise some error with the golang projects, but can look into that later for now).
Backtrace (mandatory, unless no error message seen or heard):
No errors surfaced
Minimal configuration (mandatory)
# Type this in a shell to start an Emacs with Eglot configured
$ emacs -nw -Q -f package-initialize -L /path/to/git-cloned/eglot -l eglot.el
;; Example of a minimal configuration;;
(add-to-list 'eglot-server-programs '(ruby-mode "solargraph""socket""--port":autoport))
Apologies, I'm fairly new to emacs, so I hope you can bear with me on this particular section here please. I did strictly the above and no completions popped up, but I'm guessing that's because I haven't loaded company as well?
Not sure how best to do that and wire everything up with eglot; would appreciate some guidance on that if it's not too much to ask.
The text was updated successfully, but these errors were encountered:
So for some reason, I have very inconsistent behavior with Ruby projects when awaiting completions to be provided. For no discernible reason whatsoever to me, most of the time, when I type and await a completion (e.g.
object.
)...nothing happens. The eglot logs reflect the same as no events occur besides indicating that I changed the document.However, some times (very very infrequently and unreliably) I do get completions and see in the eglot logs that a
textDocument/completion
request was made to the server and completion items were returned.Particularly strange is that if I try to replicate the exact situation (exact file, line of code, and characters I typed) when I did get completions successfully, more often than not, I don't get any completions again. Very bewildered as to how it appears to be so random.
Haven't rigorously observed and measured it, but for what it's worth as well: rough ballpark of completions being provided would be like 5-10% of the time.
Haven't tried eglot out with much else, but did try with some golang and Rust projects and it provided completions reliably as expected (although it did constantly raise some error with the golang projects, but can look into that later for now).
194b178ef41ccd3d937983f3829d44a546bb24d6
LSP transcript - M-x eglot-events-buffer (mandatory unless Emacs inoperable)
Output
This is output from when completions are **not** provided when they should have beenBacktrace (mandatory, unless no error message seen or heard):
No errors surfaced
Minimal configuration (mandatory)
# Type this in a shell to start an Emacs with Eglot configured $ emacs -nw -Q -f package-initialize -L /path/to/git-cloned/eglot -l eglot.el
Apologies, I'm fairly new to emacs, so I hope you can bear with me on this particular section here please. I did strictly the above and no completions popped up, but I'm guessing that's because I haven't loaded company as well?
Not sure how best to do that and wire everything up with eglot; would appreciate some guidance on that if it's not too much to ask.
The text was updated successfully, but these errors were encountered: