ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Elixir​Sublime

by vishnevskiy ST3

Elixir plugin for SublimeText 3 providing code completion and linting.

Details

Installs

  • Total 23K
  • Win 5K
  • OS X 12K
  • Linux 5K
May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5
Windows 1 2 2 1 2 4 0 0 1 2 0 0 0 1 0 0 0 1 1 3 2 1 0 0 1 1 3 1 1 2 1 0 2 1 2 1 2 1 0 3 2 3 1 2 0 4
OS X 2 0 1 4 4 5 13 1 2 3 2 6 4 2 6 3 1 1 3 4 2 8 3 0 0 5 4 9 3 0 2 6 1 1 5 6 3 2 6 5 4 3 3 1 1 8
Linux 0 2 2 4 3 3 3 3 1 0 3 1 3 4 0 3 0 2 3 3 3 0 0 1 2 4 1 2 3 4 2 2 1 1 4 3 2 1 1 4 1 4 4 2 2 3

Readme

Source
raw.​githubusercontent.​com

ElixirSublime

Features

  • Code completion for modules and functions.
  • Go to definition for modules and functions with Shift+Click
  • Errors and warnings via SublimeLinter3.

This package does not offer syntax highlighting. Use the offical Elixir TextMate bundle.

Demo

Demo

Caveats

This is built by piggybacking on IEx.Autocomplete so it can be a little naive.

  • It does not understand macros, aliases and imports and therefore will not provide completion for them.
  • Go to definition does not work on local functions.
  • Since Elixir and Erlang standard library sources tend to not ship with the install it does best effort for go to definition by opening the documentation in the browser.

Installation

  1. Install Sublime Package Control if you haven't already.
  2. Brand up the commands with CTRL+Shift+P or CMD+Shift+P and type Package Control: Install Package then ElixirSublime.
  3. Repeat the previous step for SublimeLinter if you don't already have it.

Troubleshooting

If the plugin does not seem to work then it probably cannot find your Elixir installation. Provide the path in the default user settings.

{
    "env": {
        "PATH": "path to elixir bins"
    }
}