An Erlang Plugin for Sublime Text 2, which enables code completion and allows you to run tests within the editor itself.
- Total 6K
- Win 3K
- OS X 2K
- Linux 1K
|Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8|
SublimErl (Erlang Tests & Code Completion)
SublimErl is a plugin for the text editor Sublime Text 2. It allows you to:
- Benefit from Code Completion ( all Erlang libs + your current project )
- Allows you to Auto-Indent your Erlang code
- Run Eunit tests ( all tests for module / single test )
- Run Common Tests ( all tests for module )
- Run Dialyzer tests ( single module )
- Goto any exported function of your project easily
- Access man pages from the text editor
All within your test editor.
A brief feature introduction video can be seen here:
Here's a screenshot of SublimErl's Code Completion feature:
Here's a screenshot of SublimErl's Auto-Indenting feature:
Here's a screenshot of SublimErl running an Eunit specific test in file.
- Code Completion: Just type and select available options
- Auto-Indenting: hit
Command-Option-Lto auto-intent an entire file
- Run single Eunit: position your cursor anywhere within your test function and hit
- Run all Eunit tests in file: position your cursor outside any test function and hit
- Run all CT tests in file: view the file and hit
- Run Dialyzer on file: view the file and hit
- Re-Run the previous test: hit
Command-F8( you do not need to be viewing the test to launch it )
- View Common Tests results in browser: hit
- Goto any exported function of your project easily: hit
Command-Alt-p(Linux/Win) and select a function
- To access man pages: hit
Command-Alt-i(Linux/Win) and select a module
SublimErl currently supports only on OSX and Linux. There are 3 ways to install it.
1. Sublime Package Control
Download and install the Sublime Package Control. This package controller allows you to easily manage your Sublime Text 2 plugins (installs / removals / upgrades).
SublimErl's latest stable versions are pushed automatically to the package control. However, if you want the latest and greatest, you'll have to use one of the other following options.
2. Git Clone
Go to your Sublime Text 2
- OS X:
~/Library/Application Support/Sublime Text 2/Packages
~/.Sublime Text 2/Packages/
and clone the repository using the command below:
git clone https://github.com/ostinelli/SublimErl.git
3. File Download
Head to the downloads section and unzipping the downloaded file into the Sublime Text 2
SublimErl needs and will try to detect the paths of the following executables: rebar, erl, escript and dialyzer. If it doesn't succeed to find those, or if you prefer to manually configure these path, you can set them in the
SublimErl.sublime-settings file, located in the
SublimErl plugin directory.
To use SublimErl, you need to have:
- The editor Sublime Text 2.
- Erlang ( ..obviously _ ).
- Basho's Rebar built after September 13th, 2012 (which has support for the
- (optional) Erlang man pages if you use this functionality.
To unleash the full power of the plugin, you will also need to comply to:
- OTP standards ( i.e. have your project defined according to OTP Directory Structure ).
- Rebar's conventions.
TL;DR: it basically means to organize your project structure using:
-- myproject |-- ebin |-- src |-- myproject.app.src |-- test |-- ...
or, for example, a more complex project structure defined in rebar.conf:
-- myproject rebar.config |-- apps |-- app1 |-- app2 |-- deps |-- dep1 |-- dep2 |-- ...
We have had reports that some plugin functionalities experience unwanted behaviour (freezing) with the Erlang precompiled package provided by Erlang Solutions, see issue #56. We're looking into this.