erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
618 stars 136 forks source link

Error void-function linum-mode on Emacs #1514

Closed peerst closed 1 month ago

peerst commented 1 month ago

Describe the bug After a lot of warnings when installing from the description of https://erlang-ls.github.io/getting-started/emacs/ (don't know if the many warnings while are considered a bug too, let me know if I should report them).

After opening the first Erlang file I get the following error:

File mode specification error: (void-function linum-mode)

It looks like it works but I don't know if some things didn't run because of this error.

To Reproduce

On MacOS 14.1 MacBook Pro with M3 chip with a pretty recent official Emacs for MacOS: Version 29.2 (9.0)

Copy the .emacs content into a otherwise empty one from here: https://github.com/erlang-ls/erlang_ls/blob/main/misc/dotemacs

Start emacs: it downloads and compiles everything with a ton of warnings.

Then open first *.erl file in a project.

Expected behavior

No error message.

Actual behavior

Error message: File mode specification error: (void-function linum-mode)

Context

  erlang                         20240429.1402  installed             Erlang major mode
  helm-lsp                       20210419.2014  installed             LSP helm integration
  lsp-mode                       20240502.1852  installed             LSP mode
  lsp-origami                    20230815.704   installed             origami.el support for lsp-mode
  lsp-ui                         20240424.412   installed             UI modules for lsp-mode
peerst commented 1 month ago

Found this apparently linum-mode is deprecated: https://www.reddit.com/r/emacs/comments/15e26ea/linummode_and_displaylinenumbersmode_in_291/