wende / autocomplete-elixir

Intelligent Elixir autocompletion provider for Atom autocomplete-plus
MIT License
42 stars 11 forks source link
atom atom-autocomplete autocomplete-elixir coffeescript elixir elixir-language

PROJECT DEPRECATED BECAUSE OF DRASTIC CHANGES IN ATOM EXTERNAL PROCESS API.

For Elixir autocompletion in Atom head to https://github.com/msaraiva/atom-elixir

Atom intelligent Elixir Autocompletion for Autocomplete+

Image of autocomplete-elixir

Features

Installation

Installation is done using Atom package manager or command

apm install autocomplete-elixir

CAUTION: MAKE SURE TO HAVE autocomplete-plus PACKAGE INSTALLED

Incoming features

1.6

Feel free to suggest additional features at issues page

Common Errors

Package spits out a lot of errors on my OSX

It seems that OSX has a lot of different safe measures which don't cooperate nicely with atom environment.
Make sure you've got both erlang and elixir installed and paths set up in package settings: Image of autocomplete-elixir

For optimal behaviour always start atom from command line instead of Finder.

Failed to spawn command elixir. Make sure elixir is installed and in your PATH

Let me guess. You're using OSX. This happens when starting atom from Finder. Finder-started applications have no access to PATH variable. To go around that make sure to set "Elixir Path" in package configuration to Your absolute elixir executable path or start atom from command line instead.

Required modules

Troubleshooting

  1. Make sure you've got both Elixir and Erlang installed
  2. Make sure you've got both paths set up in settings You can check both things by running: which elixir -> /usr/local/bin/elixir which erl -> /usr/local/bin/erl And insert the whole path of elixir but only folder path of erl Image of autocomplete-elixir
  3. Make sure You've got Elixir-language package installed
  4. Try running atom from the CLI
  5. If functions are not showing up in the auto-complete list, be sure that atom's root directory has your mix.exs file. This can be either your individual application or an umbrella app.
  6. Read existing issues ;)