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 - mhanberg/elixir.nvim: Neovim plugin for Elixir), 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:

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:

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!

Where Next?

Popular in Questions Top

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
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
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
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

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
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
nobody
Hi! In PHP: $SERVER['SERVERADDR'] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

We're in Beta

About us Mission Statement