LoginSignup
1
2

More than 5 years have passed since last update.

SublimeLinter-contrib-elixircに怒られない方法

Last updated at Posted at 2015-02-27

何これ?

elixirの開発でこの子に怒られない設定についてとりま、まとめます

mixで作ったphoenixプロジェクトの場合

  1. プロジェクト直下に${プロジェクト名}.sublime-projectファイルを作ります
  2. 上のファイルに下記をコピーします
{
    "folders":
    [
        {
            "follow_symlinks": true
            ,"path": "."
            ,"folder_exclude_patterns": ["_build"]
        }
    ],
    "SublimeLinter": {
        "linters": {
            "elixirc": {
                "pa": [
                    "${project}/_build/dev/lib/{プロジェクト名}/ebin"
                    ,"${project}/_build/dev/lib/phoenix/ebin"
                    ,"${project}/_build/dev/lib/phoenix_html/ebin"
                    ,"${project}/_build/dev/lib/plug/ebin"
                    ,"${project}/_build/dev/consolidated"
                ]
            }
        }
    }
}

なんかある日突然怒られ始めたら

  • まずは、Consoleでなんて怒られてるか見ましょう
  • もしかしたら、sublime-projectファイルが正しく読まれてないかもしれません
    • Project > Open Project から、${プロジェクト名}.sublime-projectを選択してプロジェクトを開きなおしてみましょう

lib下をガツッといっぺんに指定したい向け

            "elixirc": {
                "pa": [
                    "${project}/_build/dev/**/ebin"
                    ,"${project}/_build/dev/consolidated"
                ]
            }
1
2
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
1
2