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

hangs during rustfmt when saving #17

Open
antifuchs opened this Issue Oct 27, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@antifuchs

antifuchs commented Oct 27, 2018

I'm just trying out rustic, and it feels really cool! Unfortunately, I'm running into a weird problem: When I save a rust file with rustic-format-on-save set to t, emacs hangs. I used toggle-debug-on-quit, used C-x C-s, waited a bit and then hit C-g; I got this backtrace:

Debugger entered--Lisp error: (quit)
  rustic-before-save-hook()
  run-hooks(before-save-hook)
  basic-save-buffer(t)
  save-buffer(1)
  funcall-interactively(save-buffer 1)
  call-interactively(save-buffer nil nil)
  command-execute(save-buffer)

I suspect this is an interaction with something else on the before-save-hook, so here's what's on there:

(eglot--signal-textDocument/willSave rustic-before-save-hook t)

I set rustic-rls-pkg to eglot, could that be related?

@antifuchs

This comment has been minimized.

antifuchs commented Oct 27, 2018

(Update: I tried setting rustic-rls-pkg to lsp-mode, installed lsp-mode and restarted emacs; saving still hangs).

@brotzeit

This comment has been minimized.

Owner

brotzeit commented Oct 27, 2018

Did you try it with a minimal config ? I mean only rustic + eglot/lsp-mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment