question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Elixir v1.1.0 autocomplete

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
tfindlowcommented, Oct 6, 2015

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

0reactions
gouthamvelcommented, Dec 1, 2015

👍 @tfindlow solution worked for me thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found