Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Formatter not working

Open
#166 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
elixir, python
Domain
tooling

Research direction

Start with mix_format_file.py at the failing subprocess call and compare the package's formatter invocation with the reported Sublime Text environment. Reproduce the save action, verify how the mix executable is discovered, and consider the issue done when format_on_save runs without the reported FileNotFoundError.

Written by the indexing model from the issue text.

Description

I'm using Sublime Text 3.1 and I cannot get my formatter to work.

I've enabled format_on_save in my package settings but whenever I save i get the following message in the ST console:

no such context .nest_curly_and_self in Packages/Elixir/Syntaxes/Elixir.tmLanguage
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1072, in run_
    return self.run(edit)
  File "/Users/johan/Library/Application Support/Sublime Text 3/Installed Packages/Elixir.sublime-package/mix_format_file.py", line 49, in run
  File "./python3.3/subprocess.py", line 819, in __init__
  File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'mix'

Do I need to configure anything in particular in order to get the formatter to work?

Dominant language
Python
Stars
262
Forks
64
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elixir-editors/elixir-tmbundle

All issues in elixir-editors/elixir-tmbundle

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.