ausimian

ausimian

I want to echo this. I run into the same problem and others. NextLS although it’s not currently as featureful, is more reliable. I’ll definitely be switching if it stays on this path.

3
Post #11
doawoo

doawoo

Been switching my work, and personal machine to NextLS and so far it’s been a great experience!

I also wanted to just drop by and say thank you for being one of the largest projects (that I know of!) using Burrito to ship Elixir to end-users. It’s been incredibly valuable in finding bugs and improving compatibility across multiple platforms! :tada::tada::tada:

5
Post #12
delitrem

delitrem

It seems, it doesn’t work even with minimal elixir project (mix new test_next_ls):

[server-notification] Wed Oct  4 13:06:26 2023:
(:jsonrpc "2.0" :method "window/logMessage" :params
          (:message "[NextLS] Runtime for folder ~/src/elixir/test_next_ls/ failed to initialize" :type 1))
[server-notification] Wed Oct  4 13:06:26 2023:
(:jsonrpc "2.0" :method "window/logMessage" :params
          (:message "[NextLS] The runtime for ~/src/elixir/test_next_ls/ has crashed with reason: false" :type 1))
[stderr] 
[stderr] 13:08:26.619 [error] GenServer #PID<0.761.0> terminating
[stderr] ** (stop) false
[stderr] Last message: {:cancel, false}
[stderr] State: %{logger: #PID<0.260.0>, name: "~/src/elixir/test_next_ls/", parent: ~c"g1h3JW5leHQtbHMtMTY5NjQxMzc0NTEyNDU1OTQ5N0Bsb2NhbGhvc3QAAAELAAAAAGUdODI=", port: #Port<0.492>, registry: NextLS.Registry, errors: nil, task_supervisor: :runtime_task_supervisor, on_initialized: #Function<34.22965326/1 in NextLS.handle_notification/2>, working_dir: "/home/igor/src/elixir/test_next_ls", compiler_refs: %{}}

My env is emacs 29.1, eglot 1.15, erlang 26.1.1, elixir 1.15.6 (under Guix System).

eglot config:

(with-eval-after-load 'eglot
  (add-to-list 'eglot-server-programs
               `((elixir-ts-mode heex-ts-mode elixir-mode) .
                 ("~/src/elixir/next-ls/bin/start" "--stdio=true"))))

What can be wrong with my setup?

elixir-ls works fine.

1
Post #21
mhanberg

mhanberg OP

Expert LSP Core Team

would you mind opening a github issue?

but please include your operating system as well (unless Guix is the OS. i’m not familiar with it)

0
Post #22
tj0

tj0

Just tried myself with emacs 29.1 and the git ef21d4054bd2cc455fa828f88053431c9592b574 . I’m also getting failure to initialize. No crash though, just timeouts.

[server-notification] Wed Oct  4 09:37:39 2023:
(:jsonrpc "2.0" :method "window/logMessage" :params
          (:message "[NextLS] Runtime for folder ~/current/proj1/ failed to initialize" :type 1))
[client-request] (id:15) Wed Oct  4 09:37:39 2023:
(:jsonrpc "2.0" :id 15 :method "textDocument/hover" :params
          (:textDocument
           (:uri "file:///parser.ex")
           :position
           (:line 12 :character 11)))
[internal] (id:15) Wed Oct  4 09:37:49 2023:
(:timed-out :textDocument/hover :id 15 :params
            (:textDocument
             (:uri "file:///parser.ex")
             :position
             (:line 12 :character 11)))
0
Post #23
mhanberg

mhanberg OP

Expert LSP Core Team

I might know the problem actually, can look into it more later today.

do you know if you are using TRAMP?

0
Post #24
tj0

tj0

I’m not using TRAMP actively, but I’m sure it’s installed somewhere.

0
Post #26
mhanberg

mhanberg OP

Expert LSP Core Team

i was able to get it running in a minimal project.

can you confirm if epmd is in your path? and possibly run epmd -daemon (it should run this for you, but just to be sure)

0
Post #27
mhanberg

mhanberg OP

Expert LSP Core Team

could you try downloading the latest release from the github releases instead of running it from source?

0
Post #28