Elixir v1.1.0 autocomplete
See original GitHub issueHi,
I was having issues with the autocomplete upon upgrading to Elixir v1.1.0. The issue is on IEx.Autocomplete.expand:
16:39:33.139 [error] Task #PID<0.130.0> started from SublimeCompletion.Supervisor terminating
** (UndefinedFunctionError) undefined function: nil.current_env/0 (module nil is not available)
nil.current_env()
lib/iex/autocomplete.ex:172: IEx.Autocomplete.env_aliases/0
lib/iex/autocomplete.ex:159: IEx.Autocomplete.expand_alias/1
lib/iex/autocomplete.ex:145: IEx.Autocomplete.expand_elixir_modules/2
(sublime_completion) lib/sublime_completion.ex:129: SublimeCompletion.expand/1
(sublime_completion) lib/sublime_completion.ex:41: SublimeCompletion.read_line/1
(sublime_completion) lib/sublime_completion.ex:29: SublimeCompletion.loop/1
(elixir) lib/task/supervised.ex:74: Task.Supervised.do_apply/2
Function: &SublimeCompletion.connect/1
Args: [50625]
It happens because of the following commit: https://github.com/elixir-lang/elixir/commit/5e21d0d22dbbd55ff603763a31afe21885c12658
My simple fix was to add to the sublime_completion config.exs:
config :iex,
autocomplete_server: IEx.Server,
Bruno.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Changelog for Elixir v1.13 — Elixir v1.13.0-rc.1 - HexDocs
Elixir v1.13 comes with many improvements to the compiler, so it recompiles your files less ... such as the autocompletion of sigils, structs,...
Read more >Auto-completion misbehaving in Elixir · Issue #1898 - GitHub
I'm happily using the alchemist-v1.0 alpha branch and so far it rocks. It's really, really fast! And so far I haven't experienced any...
Read more >Elixir v1.0 released - The Elixir programming language
IEx - Elixir's interactive shell with code reloading, auto-complete, and easy access to documentation, typespecs and more; Logger - the latest ...
Read more >Elixir v1.14.0-rc.0 released
Elixir v1.14 brings many improvements to the debugging experience in Elixir and data-type inspection. It also includes a new abstraction for ...
Read more >New versons of Elixir, Rust, and more FP news | Lambda ...
Elixir logo Elixir v1.13 ; Rust logo Rust 1.57.0 ; Compose Multiplatform logo Compose Multiplatform 1.0 ; IntelliJ logo IntelliJ Scala Plugin ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Putting iex in the applications list in module SublimeCompletion.MixFile works too.
defmodule SublimeCompletion.Mixfile do
use Mix.Project … def application do [ applications: [:iex, :logger, :poison], mod: {SublimeCompletion, []} ] end … end
👍 @tfindlow solution worked for me thanks