Stream: general

Topic: emacs as IDE


pnkfelix (Dec 07 2018 at 11:31, on Zulip):

hey @nikomatsakis , you said you use eglot as your way to leverage RLS in Emacs, right?

nikomatsakis (Dec 07 2018 at 11:32, on Zulip):

yes

pnkfelix (Dec 07 2018 at 11:32, on Zulip):

do you customize it at all, e.g. disable documentation on hover or whatnot?

nikomatsakis (Dec 07 2018 at 11:32, on Zulip):

I...forget

nikomatsakis (Dec 07 2018 at 11:32, on Zulip):

I've not had occasion to use it recently

nikomatsakis (Dec 07 2018 at 11:32, on Zulip):

given that I am running in emacs -nox, some of that stuff maybe doesn't apply

pnkfelix (Dec 07 2018 at 11:32, on Zulip):

I ask because I noticed that out of the box, it seems to try to render the full doc in the minibuffer

nikomatsakis (Dec 07 2018 at 11:33, on Zulip):

I don't seem to have a lot of customization in my .emacs file

pnkfelix (Dec 07 2018 at 11:33, on Zulip):

(when I have my cursor on a method that has doc available, e.g. elems.next()

nikomatsakis (Dec 07 2018 at 11:33, on Zulip):

yeah, I think it maybe does that

nikomatsakis (Dec 07 2018 at 11:33, on Zulip):

sounds potentially annoying :)

pnkfelix (Dec 07 2018 at 11:33, on Zulip):

the behavior I am observing is not ideal because the doc is so long that it doesn't actually show the full text. it just shows the suffix.

pnkfelix (Dec 07 2018 at 11:33, on Zulip):

which is just a series of examples from the ## Examples section.

pnkfelix (Dec 07 2018 at 11:34, on Zulip):

(I'd probably prefer the first couple of lines of doc plus a hyperlink to the rest...)

pnkfelix (Dec 07 2018 at 11:35, on Zulip):

ah, this is due to eldoc-mode

nikomatsakis (Dec 07 2018 at 11:36, on Zulip):

the behavior I am observing is not ideal because the doc is so long that it doesn't actually show the full text. it just shows the suffix.

lolol

nikomatsakis (Dec 07 2018 at 11:36, on Zulip):

perfect

pnkfelix (Dec 07 2018 at 11:37, on Zulip):

okay so this was very easy to disable locally (just do M-x eldoc-mode to toggle it off). Now I just need to track down whether eldoc-mode is being enabled by eglot by default, or if its is being caused by some interaction with some other customization I have in place...

Jake Goulding (Dec 08 2018 at 13:58, on Zulip):

FWIW, I use LSP-mode with emacs in nox mode as well.

Jake Goulding (Dec 08 2018 at 13:59, on Zulip):

(Which caused me to find a bug in the current stable version of emacs, amusingly)

Jake Goulding (Dec 08 2018 at 13:59, on Zulip):

Here's the bottom half of my screen

pasted image

Jake Goulding (Dec 08 2018 at 14:01, on Zulip):

The docs do appear to be the end, so it may be a common eldoc issue

Jake Goulding (Dec 08 2018 at 14:01, on Zulip):

So if you figure that out...

blitzerr (Dec 09 2018 at 15:09, on Zulip):

You guys are talking about using RLS with emacs for projects other than rustc development?

Jake Goulding (Dec 09 2018 at 21:35, on Zulip):

I feel like I've opened rust-lang/rust in emacs and seen RLS-related information. I haven't put any effort into seeing if it's correct or not though.

gnzlbg (Dec 10 2018 at 18:14, on Zulip):

I use spacemacs and I currently disable the RLS because it hangs for too long every now and then (~5 second freezes). I also had to disable the electric parens mode because of the same issue, particularly while editing >1kLOC files, or macros.

Jake Goulding (Dec 10 2018 at 21:05, on Zulip):

I only have slowdowns when first opening a project as RLS spins up

Last update: Nov 21 2019 at 23:50UTC