chewm

chewm

how configure visual studio code for elixir intellisense

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

Most Liked

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.

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!

Where Next?

Popular in Questions Top

pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
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
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
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
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
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
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
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
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New

We're in Beta

About us Mission Statement