chewm

chewm OP

Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellisense-autocomplete seems not working, I installed elixirLS inside vscode and also vscode-elixir (which seems use elixirsense) I don’t know if I need run a command line before, because seems that for elixirsense you need run a server before start coding, basically I just download the extensions inside vscode and also I compiled this and put the binaries inside my path

can you explain me a little bit how achieve intellisense inside vscode???..I need an extra step?

thank you so much guys, sorry for the super noob question

First 10 of 11 Posts Switch mode

joefractal

joefractal

If you have elixir in your path, you should just be able to install the extension in vscode and it should just work.

Other data that might help debug,

  1. is there any messages in the output tab of the builtin terminal?
  2. is there there anything is the .elixir_ls in your project directory (same level as your project mix.exs)
pietrofxq

pietrofxq

I’m having the same issue. Actually Intellisense works for elixir methods, but not for my own classes. Is it suppose to work this way?

NobbZ

NobbZ

There are neither methods, nor classes in elixir, so I assume you are meaning functions and modules.

Can you tell us how you manage your erlang/elixir installation and how you start vs code?

If you use anything other than your systems installation of elixir and starting vs code from the GUI, you are doing it wrong.

Try starting it from the terminal you used to verify that the correct version of erlang and elixir are available.

pietrofxq

pietrofxq

Yes sorry, I meant Modules and Functions.

I’m running windows, installed elixir through the installer but override OTP to use version 21.

Output of elixir -v:

Erlang/OTP 21 [erts-10.1] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]

Elixir 1.8.0-dev (929e58c) (compiled with Erlang/OTP 21)

I’m using the plugins vscode-elixir and ElixirLS. Autocomplete/intellisense works fine for Elixir own modules, but vscode can’t even recognize the name of my modules. When I start typing there’s no suggestion for them nad neither for the module functions.

NobbZ

NobbZ

No, you use either one, not both. At least as far as I remember…

As soon as I’m back home, we had dinner and the kids are sleeping I can take a look again. Also I might be able to come up with some instructions to debug. I have to admit though that I’m not using windows.

pietrofxq

pietrofxq

So, disabling ElixirLS makes the default vscode intellisense work (it searches for used words in the document and I can select them), but then I lose the autocomplete for the Elixir modules. Disabling only vscode-elixir seems to make no difference on the mentioned problem - I have autocomplete on Elixir modules but intellisense on the document for my own code doesn’t work.

I can confirm same behavior on MacOS Mojave. I should probably create an issue on the ElixirLS plugin repo.

Thanks for your help!

jwbaldwin

jwbaldwin

@NobbZ

I’m currently still having this problem. Elixirls seems to only provide current module and Elixir autocompletion, but not for my projects other modules.

However, I can get it to work by disabling elixirls, and using vscode-elixir instead (but I then lose the goodness of elixirls).

On macOS Catalina. Any help would be great. I can make an issue if you’d like!

NobbZ

NobbZ

I do not use vscode anymore, and I am not sure who actually does.

Perhaps create an issue at Issues · elixir-lsp/vscode-elixir-ls · GitHub and provide some logs from your LS output pane.

Especially what version of the LSP you are on, which version of the plugin you use and what versions of elixir are involved.

catra

catra

What are you using instead of vscode?

NobbZ

NobbZ

Emacs with lsp-mode and elixir-ls, as well as a plentora of others plugins.

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
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
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
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