Replies: 5 comments
-
Can you start your LSP session with |
Beta Was this translation helpful? Give feedback.
-
ah yup that triggered the backtrace, cool.
looks pretty similar to the full-config's bt. |
Beta Was this translation helpful? Give feedback.
-
The init.el you supplied has spurious single quotes inside the initializationOptions. That's a mistake. Even without them it's a mistake. Remove the initializationOptions section entirely and try again. Then try without those single quotes and using arrays instead. |
Beta Was this translation helpful? Give feedback.
-
See https://joaotavora.github.io/eglot/#JSONRPC-objects-in-Elisp-1 for how arrays work |
Beta Was this translation helpful? Give feedback.
-
ooooh, well I have to admit i didn't even know elisp had arrays, since it has lists and they're good enough for everything else I've ever done. I'll read that, and yes switching to arrays has fixed the error. |
Beta Was this translation helpful? Give feedback.
-
EGLOT events buffer:
error:
Strangely, despite enabling both
stack-trace-on-error
anddebug-on-error
in the minimalinit.el
, I do not get a nice backtrace or debugger session when I get the error with the minimalinit.el
, so I've included (above) what I get with the minimalinit.el
but I'm also going to include (below) the details I get when loading my full emacs config, because it provides more info and the backtrace and debugger actually work. If you have any ideas how to get the debugger/backtrace to work in the minimalinit.el
I'd be very happy to hear them, as I honestly can't figure out why they aren't working, and I'd prefer to submit a less janky bug report.Full backtrace from full emacs config:
test.rb:
init.el:
emacs start command:
/usr/local/bin/emacs --init-directory=~/Developer/Lisp/ test.rb
The
~/Developer/Lisp/
dir is where my minimalinit.el
is located.Reproduction steps:
ruby
and theruby-lsp
gemruby
andruby-lsp
are in yourPATH
env var, you can check this withcommand -v ruby-lsp && command -v ruby
test.rb
if you likeinit.el
file with the contents I providedemacs
in such a way that it uses theinit.el
I provided and opens the ruby file, you can use the emacs start command I provided to do this if you likemore info:
GNU Emacs 29.4 (build 1, x86_64-apple-darwin23.4.0) of 2024-06-22
1.17
for full-config emacs, builtin:1.12.29
for minimal-init, both exhibit the same bugruby 3.2.5 (2024-07-26 revision 31d0f1a2e7) +YJIT [x86_64-darwin23]
0.17.14
Beta Was this translation helpful? Give feedback.
All reactions