vscode-elixir-ls: Symbol search does not work

Command+T allows to search for modules but it seems to be the default VSC functionnality. Using prefixes like f or t does not find anything.

Otherwise the outline panel shows all symbols without problem.

  • Elixir & Erlang versions (elixir --version): Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
  • Elixir 1.10.2 (compiled with Erlang/OTP 22)
  • VSCode ElixirLS Fork version: 0.3.2
  • Operating System Version: darwin 18.7.0
  • Visual studio: Version: 1.44.2 Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd Date: 2020-04-16T17:07:18.473Z (2 wks ago) Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Darwin x64 18.7.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 20 (5 by maintainers)

Most upvoted comments

I have the same problem on my machine. No Symbol search, and also no go to definition. Even though ElixirLS apparently indexes stuff correctly in the output tab.

@axelson @lud we can close it now as query prefix feature was removed

I suspect this happened in VS Code v1.44

Filter results by separating multiple queries with spaces If you are getting too many results for a file search, you can add more search patterns after typing a space. For example, you can narrow down results by folder if you type <file name> <folder name> one after the other. https://code.visualstudio.com/updates/v1_44

I stuck some inspect statements in to the workspace symbol provider and it looks like anything after a space never makes it to the language server

I have the follow logs as well:

Info  - 7:46:39 am] [ElixirLS WorkspaceSymbols] 1548 modules added to index
[Info  - 7:46:39 am] [ElixirLS WorkspaceSymbols] 965 types added to index
[Info  - 7:47:08 am] [ElixirLS WorkspaceSymbols] 18446 functions added to index
[Info  - 7:47:39 am] [ElixirLS Dialyzer] Analyzing 1499 modules:

It seems that functions should be added to ElixirLS’ WorkspaceSymbols, yet they are not listed when searching with cmd+T ¯_(ツ)_/¯

It works for me, I installed the extension from git but changed the tool-version to match my project. I then disabled the dialyzer and i can still search by symbol.