shahryarjb
Elixir Vscode Autocomplete dosent work
Hi, I installed some plugins on Vscode for elixir but I don’t know why Vscode’s Autocomplete doesn’t work.
see this image please:
it doesn’t load any Elixir module. the plugins I installed are in left side of my image
my user settings.json
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 18,
"editor.tabSize": 3,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
"window.zoomLevel": 0,
"editor.wordWrap": "on",
"workbench.colorTheme": "Solarized Light",
"[Eex]": {},
"emmet.includeLanguages": {"HTML (Eex)": "html"},
"files.associations": {
"*.eex": "HTML (EEx)",
"*.leex": "HTML (EEx)"
},
"[HTML (Eex)]": {},
"explorer.confirmDragAndDrop": false
}
and this image is my mix file:
!Marked As Solved
NobbZ
I meant in the “OUTPUT” pane, there is a dropdown to the right, there you can check the “ElixirLS” log.
Though as far as I remember, mjmcloug.vscode-elixir builds on the “elixir-sense” library which is used in the LS-fork as well.
Therefore it might be, that either both extensions are conflicting, or, as the last release of mjmcloug.vscode-elixir is from 2017, it might just be, that it suffers from the same incompatibilites with Elixir 1.10, that also JakeBeckers LS implementation now suffers from.
Try deactivating that plugin.
Also Liked
axelson
I’m assuming your talking about the inferred type specs from code lens. Are you receiving any errors? Here’s some of the debug instructions for vscode:
- Check the output log by opening
View > Outputand selecting “ElixirLS” in the dropdown. Please include any output that looks relevant. (If ElixirLS isn’t in the dropdown, the server failed to launch.) - Check the developer console by opening
Help > Toggle Developer Toolsand include any errors that look relevant. - Run the VSCode command “ElixirLS Fork: Copy Debug Info” and paste the output here
shahryarjb
Hi, I deleted all the deps, _build and .elixir_ls file after these job I closed VScode and re-launch it, but it didint work until I renamed a function name and saved , recompiled. for now it works and shows me @spec .
if I see this problem I said I will definitely do what you said,
Thank you
sztosz
From my understanding, elixir-ls stopped being actively developed some time ago, use that instead: GitHub - elixir-lsp/elixir-ls: A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol" · GitHub It’s actively developed fork.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










