gmile

gmile

Viewing elixir-ls logs / diagnostics

Maybe a silly question, but may I ask how is it that one runs the language server in a way to make logs visible, like on the sample output from the issue description to this issue on GH? (cc @dogweather @lukaszsamson)

In case it’s not easy / possible, any pointers as to how do I make neovim find the non-compiled version of server, e.g. run server manually, to make output logs (supposedly) visible in the terminal, and point my neovim to a server ran like this?

For context, I am failing to make elixir-ls work with NeoVim. In fact, I’ve installed and configured the settings, and formatting capability of LS works, however advanced features (such as jump to definition and such) are silently not working. I also don’t happen to be able to find .elixir-ls folder in my project’s root, or my home directory. (upd. I was able to locate .elixir-ls folder some time later)

I’m willing to try and debug the issues myself, but felling completely in the dark being unable to find the LS logs :frowning: I would like to be able to view some diagnostics / logs to helpfully better understand where the issue may be coming from.

Trivia: this is likely of little help, but to give context I am running a Linux machine, where elixir, elixir-ls and neovim are installed via homebrew (“Brew for Linux”).

Marked As Solved

mindok

mindok

So the output you saw would have been from the VSCode output window (View → Output) - but that’s no use to you!

Having a quick look at the readme for the first neovim plug-in that supports ElixirLS (GitHub - elixir-tools/elixir-tools.nvim: Neovim plugin for Elixir · GitHub), there’s a section explaining how to access the ElixirLS output - search for OutputPanel.

Also Liked

axelson

axelson

Scenic Core Team

I’m glad you were able to find the output! There’s actually instructions for viewing the output in the README for the extension:
https://github.com/elixir-lsp/vscode-elixir-ls/#check-elixirls-output

Were you looking somewhere else in the docs? Maybe we can add instructions there as well.

To make it more obvious I’ve created a PR to add a little GIF to the readme:
https://github.com/elixir-lsp/vscode-elixir-ls/pull/264

mindok

mindok

I think the issue was accessing the output in NeoVim rather than VSCode, but glad to see the GIF as I wasn’t aware of the output on VSCode for quite a while.

axelson

axelson

Scenic Core Team

Whoops, that’s a failure of reading comprehension on my part!

Last Post!

gmile

gmile

I was curious about neovim, yeah :sweat_smile: But thanks for jumping in!

While at it, perhaps you would be willing to address this part of my question?

[…] how do I make neovim find the non-compiled version of server, e.g. run server manually, […] and point my neovim to a server ran like this?

So far I’ve looked through the contents DEVELOPMENT.md, but unfortunately found it lacking to provide the necessary level of detail. I’d be interested in seeing instructions like:

  1. run the server like this…,
  2. then go to your client, and change it’s settings to point it to the running server like this…

Where Next?

Popular in Questions Top

RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49084 226
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40042 209
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement