ElixirSublime: Code completion not working

Hello,

Is there anything else i should do to make this work? I have elixir installed, i have my env settings like:

"env": {
    "PATH": "/usr/lib/elixir/bin"
},

And i also Elixir, and ElixirSublime packages installed. But code completion is not working like showed on gif in your readme. Any ideas how to make it work?

image

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 1
  • Comments: 52 (5 by maintainers)

Commits related to this issue

Most upvoted comments

It works for me now 🚀

Changes made regarding this plugin:

In Sublime Text 3, Preferences -> Package Settings -> SublimeLinter -> Settings-User

        "env": {
            "PATH": "/usr/local/bin/elixir"
        }

(I use ubuntu 14.04 and the “PATH” above is from running which elixir in terminal)

Go to sublime_completion using cd ~/.config/sublime-text-3/Packages/ElixirSublime/sublime_completion (which is a mix project)

In mix.exs file, add iex as an application

  def application do
    [
      applications: [:iex, :logger, :poison],
      mod: {SublimeCompletion, []}
    ]
  end

In config.exs file, add the configuration for iex

  use Mix.Config

  config :iex,
          autocomplete_server: IEx.Server

Restart the Sublime Text 3

Note: My elixir version is 1.2.3 and I am not sure whether these changes(under sublime_completion) will persist if the package gets updated by Package Control. But for time being, it works 👍

@Angarsk8 @seanpowell You guys should check @YurkoHoshko 's repo https://github.com/YurkoHoshko/ElixirSublime

I downloaded it and replace all the files in my ElixirSublime folder, then it works

I did add the @YurkoHoshko’s repo to my sublime Package Control: Add Repository I removed the package and then I installed it again with the new added repo

It works! Thanks a lot 😄

@radik909 's way works for me, even without setting env path

Indeed! It works now! thanks @YurkoHoshko!!

Still nothing! 😦 I’ve tried every possible solution, but nothing works! I get this stack trace in the Sublime Text console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 359, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "/Users/Angarsk8/Library/Application Support/Sublime Text 3/Packages/ElixirSublime/elixir_sublime.py", line 270, in on_query_completions
    if not session.send('COMPLETE', expand_selection(view, locations[0], aliases=aliases)):
  File "/Users/Angarsk8/Library/Application Support/Sublime Text 3/Packages/ElixirSublime/elixir_sublime.py", line 189, in send
    self.socket.send(str.encode(cmd))
AttributeError: 'NoneType' object has no attribute 'send'

_Andrés Alejandro García_