If you're using Dexter as your Elixir LSP in VS Code and wondering why String, Enum, and other standard library modules don't show up in autocomplete — the answer is likely a missing or misconfigured stdlibPath.
The Problem
Dexter needs access to the Elixir source files (.ex) to index the stdlib. When you install Elixir via Homebrew, only compiled .beam files are included — no source. So even if you point dexter.stdlibPath at something like:
"dexter.stdlibPath": "/opt/homebrew/opt/elixir/lib/elixir/lib"
...there's nothing for Dexter to index, and stdlib autocomplete silently doesn't work.
The Fix
Clone the Elixir source at the version matching your runtime:
elixir --version
git clone https://github.com/elixir-lang/elixir.git ~/elixir-src --depth=1 --branch v1.18.3
Then update your .vscode/settings.json:
"dexter.stdlibPath": "/Users/yourname/elixir-src/lib"
That lib/ directory contains subdirectories like elixir/lib/, mix/lib/, logger/lib/, etc. — all with proper .ex source files that Dexter can index for autocomplete.
After restarting VS Code, stdlib completions for String, Enum, Map, and friends should start appearing.
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.