Recent Problems with Emacs+Rustic

Hi,

the last couple of days, I'm noticing that my emacs configuration isn't working smoothly anymore.
(I'm using Rustic+lsp-mode+company).

  • it seems slower
  • automatic imports stopped working, even though the options are still shown
  • I get an error Lisp nesting exceeds ‘max-lisp-eval-depth’", I had to increase the eval depth a good lot

I've tried updating, re-installing, etc, but the issues seem to be remaining.

Has anybody else noticed similar phenomena recently?

EDIT: Ok, it seems like the performance problems can be solved by completely purging the rust installation and install everything from scratch ... at least for me, after doing that, the performance is ok again ...

The auto-import issue remains though ...

Best,
N

See here on SO. Perhaps it helps.

Thanks for the hint :slight_smile:

It helps a little. After increasing the number, the editor doesn't freeze up completely anymore on the initial run of checks after opening a Rust file.

But, until recently it worked fine without having to touch that setting (and my projects didn't increase in complexity since then).

1 Like

That same SO also (rightly) mentioned that it's a temporary patch to let the code continue executing, but it's not a permanent fix: almost all code that hits a limit of e.g. 500 will also run into a higher limit eventually as essentially it's a stack overflow.

So the real issue is with the elisp code being executed, and if it's possible to find out who the authors are, it should probably be discussed with them.

1 Like

Yes, I opened an issue over at the rustic mode repo, mostly regarding the auto import ...

1 Like

Ok, I purged both my emacs- and my rust installation (rustup self uninstall, then re-install).

I then switched to nightly and re-installed rust-analyzer using rustup.

I also did a cargo clean in the project.

That at least helped with the performance issues, performance is acceptable now and the max-lisp-eval-depth issue doesn't occur anymore, even without touching the respective variable.

The auto-import issue remains, though.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.