dr1ver
VS Code Autocomplete / Intellisense not working
Intellisense is not working for me for Elixir in VSCode.
The only suggestions that are made are from words in the current file - “words” as per the intellisense definition, https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions
So, no methods, nothing from Elixir standard modules, etc.
VScode Python Intellisense is working ok.
OS: Windows 11
This is View|Output|ElixirLS:
Installing ElixirLS release v0.15.1
Running in c:/Users/david/Exercism/elixir/triangle
Install complete
This is the output from Developer Tools|Console:
WARN [ms-vscode.remote-server]: The viewsWelcome contribution in 'ms-vscode.remote-server' requires 'enabledApiProposals: ["contribViewsWelcome"]' in order to use the 'group' proposed property.
console.ts:137 [Extension Host] ElixirLS: Loading extension
console.ts:137 [Extension Host] ElixirLS: activating extension in mode SINGLE_FOLDER
console.ts:137 [Extension Host] ElixirLS: Workspace folders are Array(1)
console.ts:137 [Extension Host] ElixirLS: Workspace is undefined
console.ts:137 [Extension Host] ElixirLS: creating test controller
console.ts:137 [Extension Host] ElixirLS: extension activated
log.ts:421 INFO [perf] Render performance baseline is 20ms
console.ts:137 [Extension Host] ElixirLS: starting LSP client for c:\Users\david\Exercism\elixir\triangle with server options Object client options Object
This is my settings.json:
{
// Controls if quick suggestions should show up while typing
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.autoSave": "afterDelay",
"terminal.integrated.defaultProfile.windows": "Git Bash",
"git.autofetch": true,
"csv-edit.fontSizeInPx": 12,
"workbench.colorTheme": "Visual Studio Dark",
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"outline.showVariables": false,
"editor.accessibilitySupport": "off",
"[python]": {
"editor.formatOnType": true
},
"[elixir]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.wordBasedSuggestions": true,
"editor.formatOnType": true,
"editor.trimAutoWhitespace": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
},
"launch": {
"configurations": [],
"compounds": []
}
}
First Post!
dr1ver
…opening a file in the same project containing tests has generated all kinds of errors in the Developer Tools console:
log.ts:431 WARN [ms-vscode.remote-server]: The viewsWelcome contribution in 'ms-vscode.remote-server' requires 'enabledApiProposals: ["contribViewsWelcome"]' in order to use the 'group' proposed property.
console.ts:137 [Extension Host] ElixirLS: Loading extension
console.ts:137 [Extension Host] ElixirLS: activating extension in mode SINGLE_FOLDER
console.ts:137 [Extension Host] ElixirLS: Workspace folders are Array(1)
console.ts:137 [Extension Host] ElixirLS: Workspace is undefined
console.ts:137 [Extension Host] ElixirLS: creating test controller
console.ts:137 [Extension Host] ElixirLS: extension activated
log.ts:421 INFO [perf] Render performance baseline is 20ms
console.ts:137 [Extension Host] ElixirLS: starting LSP client for c:\Users\david\Exercism\elixir\triangle with server options Object client options Object
2log.ts:431 WARN Settings pattern "application.*" doesn't match any settings
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'capabilities')
v @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
w @ event.ts:1088
fire @ event.ts:1119
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:583
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read properties of undefined (reading 'capabilities')
at parseTestsInFileContents (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:108:49)
at i.parseTestsInDocument [as value] (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:97:13)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.x (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1972)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2188)
at i.value (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:101:9303)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2119)
at e.$kL.acceptDocumentsAndEditorsDelta (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:101:13273)
at e.$kL.$acceptDocumentsAndEditorsDelta (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:101:11770)
at t.N (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:11199)
at t.M (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:10965)
at t.H (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:10046)
at t.G (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:9122)
at i.value (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:7952)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2119)
at f.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:76:13931)
at i.value (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:30341)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2119)
at f.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:76:13931)
at MessagePortMain.<anonymous> (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:28621)
at MessagePortMain.emit (node:events:513:28)
at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367)
v @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
w @ event.ts:1088
fire @ event.ts:1119
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:583
mainThreadExtensionService.ts:81 [JakeBecker.elixir-ls]Cannot read properties of undefined (reading 'capabilities')
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
w @ event.ts:1088
fire @ event.ts:1119
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:583
mainThreadExtensionService.ts:82 TypeError: Cannot read properties of undefined (reading 'capabilities')
at parseTestsInFileContents (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:108:49)
at i.parseTestsInDocument [as value] (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:97:13)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.x (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1972)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2188)
at i.value (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:101:9303)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2119)
at e.$kL.acceptDocumentsAndEditorsDelta (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:101:13273)
at e.$kL.$acceptDocumentsAndEditorsDelta (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:101:11770)
at t.N (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:11199)
at t.M (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:10965)
at t.H (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:10046)
at t.G (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:9122)
at i.value (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:111:7952)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2119)
at f.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:76:13931)
at i.value (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:30341)
at p.w (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:1902)
at p.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:60:2119)
at f.fire (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:76:13931)
at MessagePortMain.<anonymous> (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:28621)
at MessagePortMain.emit (node:events:513:28)
at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:82
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
w @ event.ts:1088
fire @ event.ts:1119
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:583
log.ts:441 ERR [Extension Host] Unhandled error in resolveHandler of test controller "elixirLSExUnitTests" TypeError: Cannot read properties of undefined (reading 'capabilities')
at parseTestsInFileContents (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:108:49)
at controller.resolveHandler [as h] (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:20:19)
at a.I (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:17403)
at a.expand (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14203)
at a.H (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:17014)
at c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14263
at async e.$w_b.$expandTest (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:103:5880)
console.ts:137 [Extension Host] Unhandled error in resolveHandler of test controller "elixirLSExUnitTests" TypeError: Cannot read properties of undefined (reading 'capabilities')
at parseTestsInFileContents (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:108:49)
at controller.resolveHandler [as h] (c:\Users\david\.vscode\extensions\jakebecker.elixir-ls-0.15.3\out\testController.js:20:19)
at a.I (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:17403)
at a.expand (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14203)
at a.H (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:17014)
at c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14263
at async e.$w_b.$expandTest (c:\Users\david\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:103:5880)
v @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
w @ event.ts:1088
fire @ event.ts:1119
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:583
Popular in Questions
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
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
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Hey,
Just curious what are the main benefits of Elixir compared to Clojure?
When is Elixir more useful than Clojure and vice versa?
Th...
New
I have a super simple question about elixir - how would I take a file like this
foo
bar
baz
and output a new file that enumerates th...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
The documentation above suggests that while ...
New
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
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
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar.
I p...
New
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
Other popular topics
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Hello, how can I check the Phoenix version ?
Thanks !
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
Hi everyone,
I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
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








