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.72k stars 860 forks source link

AUCTeX's LaTeX-mode is not recognized as a Latex mode #4467

Closed lima-limon-inc closed 1 month ago

lima-limon-inc commented 1 month ago

Thank you for the bug report

Bug description

AUCTeX's LaTeX-mode is not recognized as a Latex mode; and thus fails to launch the lsp server.

The following error message is then shown:

Warning (lsp-mode): Unable to calculate the languageId for buffer ‘informe.tex’. Take a look at ‘lsp-language-id-configuration’. The ‘major-mode’ is LaTeX-mode

Steps to reproduce

Open any .tex file with AUCTex

Expected behavior

The LSP server (in my case, texlab) should launch normally

Which Language Server did you use?

texlab

OS

Linux

Error callstack

No response

Anything else?

No response