Skip to content

Linter fails with Sublime Linter 4 on umbrella projects #44

Description

@samsondav

I get this error:

SublimeLinter: #339 elixirlinter 20180314105306_add_new_total_paid_back_fields.exs ERROR:

 Linter crashed.

Traceback (most recent call last):
  File "lint.backend in /Users/sam/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package", line 97, in execute_lint_task
  File "lint.linter in /Users/sam/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package", line 794, in lint
  File "lint.linter in /Users/sam/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package", line 500, in get_cmd
  File "/Users/sam/Library/Application Support/Sublime Text 3/Packages/ElixirSublime/elixir_sublime.py", line 330, in cmd
    for path in find_ebin_folders(find_mix_project(self.filename)):
  File "/Users/sam/Library/Application Support/Sublime Text 3/Packages/ElixirSublime/elixir_sublime.py", line 86, in find_ebin_folders
    for lib in os.listdir(lib_path):
FileNotFoundError: [Errno 2] No such file or directory: '/Users/sam/code/nested/local-stack/elixir-umbrella/apps/nest_db/_build/dev/lib'

It's looking for the _build directory in the child app, but it should be looking in the umbrella project root.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions