Skip to content
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

Unable to open stderr buffer again if killed #1062

Open
joaotavora opened this issue Sep 28, 2022 Discussed in #1036 · 0 comments
Open

Unable to open stderr buffer again if killed #1062

joaotavora opened this issue Sep 28, 2022 Discussed in #1036 · 0 comments

Comments

@joaotavora
Copy link
Owner

Discussed in #1036

Originally posted by doolio September 16, 2022
Not sure if this is a bug so asking here first. If I kill (C-x k) the *EGLOT stderr* buffer I cannot open it again with M-x eglot-stderr-buffer and see this error message Wrong type argument: stringp, nil

Reproduction recipe

  1. Ensure the clangd LSP server is installed and available in path
  2. Invoke Emacs master with Eglot master:
    ~/Source/Emacs/emacs/src/emacs -Q -L ~/Source/Emacs/eglot -l eglot ~/tmp/coiso.cpp -f eglot
  3. M-x eglot-stderr-buffer
  4. Kill the resulting *EGLOT (tmp/(c++-mode c-mode)) stderr* buffer
  5. Type M-x toggle-debug-on-error
  6. Type M-x eglot-stderr-buffer again and get this unexpected error:
Debugger entered--Lisp error: (error "Invalid buffer")
  signal(error ("Invalid buffer"))
  error("Invalid buffer")
  display-buffer(#<killed buffer>)
  eglot-stderr-buffer(#<eglot-lsp-server eglot-lsp-server-1574d968226a>)
  funcall-interactively(eglot-stderr-buffer #<eglot-lsp-server eglot-lsp-server-1574d968226a>)
  call-interactively(eglot-stderr-buffer record nil)
  command-execute(eglot-stderr-buffer record)
  execute-extended-command(nil "eglot-stderr-buffer" "eglot-std")
  funcall-interactively(execute-extended-command nil "eglot-stderr-buffer" "eglot-std")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant