gmile

gmile

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”).

First 6 of 6 Posts Switch mode

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.

gmile

gmile OP

Thank you, this was very helpful! This pointer helped me locate what I was looking for. I am able to see the logs now:

For some reason I was under the impression that LS logs aren’t shipped to the client, was hence looking for ways to find them alongside the server end somewhere :man_facepalming:

To anyone interested, in neovim I:

  • made sure to set:

    vim.lsp.set_log_level 'info'
    
  • then when in editor, run the following command in ex:

    :LspLog
    
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!

gmile

gmile OP

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…
— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement