LoginSignup
3
3

More than 5 years have passed since last update.

Elixirで利用するIDEについて

Posted at

はじめに

OS環境 : Mac
IDE環境: IntelliJ IDEA / Ruby Mine / Pycharm

個人的に、IDEが大好きなので、下記の環境にて、Elixirが開発可能か試してみた。

当然のように、Pluginにて提供されているので、その設定方法を書いてみる。

今回の画面は、HTML等のシンタックス等が、Phoenixに似ていいるので、RubyMineを使用する。

Pluginのインストール

[RubyMin]-[Preferences] で Preferences画面を表示する。

スクリーンショット 2017-12-15 19.28.37.png

[Plugins]を選択し、検索欄に、「elixir」を入力すると、最適な「Elixir」プラグインが表示されるので、そのままインストールする。IDEの再起動が必要なので再起動する。

スクリーンショット 2017-12-15 19.30.27.png

Elixir External Tool の設定

IDE再起動後に、インストールしたプラグイン[Elixir External Tools]の設定を行う。

※自分の環境の場合、elixirは、Home brewにてインストールしているので、他のインストール方法を行っている場合は、同様であるかは未検証である。

同様の環境である場合は、下記を設定する。

Mix Path : /usr/local/bin/mix
Elixir Path : /usr/local/Cellar/elixir/1.X.X

スクリーンショット 2017-12-15 19.29.59.png

Runの設定

ここでは、MixコマンドをIDEから実行する設定をしてみる。
下記のように Run...から、Edit Configrations... を選択して設定する。

スクリーンショット 2017-12-15 21.03.50.png

ここでは、既に3つのRunタスクが既に登録されているが、下記のように、mix phx.serverを登録してみる。

スクリーンショット 2017-12-15 21.01.45.png

Runの実行

IDEから、Runを実行するとサーバが起動され実行されることが確認できる。

スクリーンショット 2017-12-15 21.06.01.png

スクリーンショット 2017-12-15 21.09.20.png

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3