emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.78k stars 884 forks source link

[Spacemacs `develop`] Any `lsp` mode: no working `lsp` until saving file and reverting / reloading #3191

Closed stradicat closed 2 years ago

stradicat commented 2 years ago

Thank you for the bug report

Bug description

Description :octocat:

No syntax highlighting on any language supported by lsp-mode until saving file and reverting/reloading

Observed behaviour: :eyes: :broken_heart: No working lsp until saving file and reverting / reloading

Steps to reproduce

Reproduction guide :beetle:

Expected behavior

Expected behaviour: :heart: :smile: Working lsp at the moment of buffer creation, or at least right after saving the file

Which Language Server did you use?

lsp-python, lsp-rust, lsp-java, lsp-dart, lsp-html, lsp-go

OS

Linux

Error callstack

No response

Anything else?

System Info :computer:

yyoncho commented 2 years ago

This is expected behaviour C-x b won't set the file name of the buffer, thus lsp-mode cannot start. Use C-x C-f to create new files.