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

Tee
can someone please explain to me how Enum.reduce works with maps
New
LegitStack
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it. I’m very interested in Elixir,...
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
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 record...
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
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Kagamiiiii
Student & New to elixir. Nice language. I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
sergio
I couldn’t find any guides that worked well with Phoenix 1.6.0 and esbuild. I hope this helps people test the waters and eases you into t...
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
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
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
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New

We're in Beta

About us Mission Statement