Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter from files to run mix format only in {.ex,.exs} files #8

Open
garaujodev opened this issue Sep 13, 2022 · 0 comments · May be fixed by #9
Open

Filter from files to run mix format only in {.ex,.exs} files #8

garaujodev opened this issue Sep 13, 2022 · 0 comments · May be fixed by #9
Labels
bug Something isn't working

Comments

@garaujodev
Copy link
Contributor

I got an exception when I'm trying to commit changes in a .vue file:

mix format failed for file: assets/js/components/stats/CollaboratorsListTable.vue
** (SyntaxError) assets/js/components/stats/CollaboratorsListTable.vue:63:24: keyword argument must be followed by space after: bind:
    (elixir 1.12.3) lib/code.ex:978: Code.format_string!/2
    (mix 1.12.3) lib/mix/tasks/format.ex:418: Mix.Tasks.Format.format_file/2
    (elixir 1.12.3) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.12.3) lib/task/supervised.ex:35: Task.Supervised.reply/5
    (stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
** (MatchError) no match of right hand side value: {"", 1}
    (auto_formatter 0.1.1) lib/auto_formatter/action.ex:35: AutoFormatter.Action.perform/1
    (auto_formatter 0.1.1) lib/auto_formatter/cli.ex:9: AutoFormatter.CLI.main/1
    (elixir 1.12.3) lib/kernel/cli.ex:124: anonymous fn/3 in Kernel.CLI.exec_fun/2

This error occurs because I have this line in the .vue file:

<a v-bind:href="column.link">Details</a>

To solve it, we need to only call mix format only with .ex and .exs files

@garaujodev garaujodev added the bug Something isn't working label Sep 13, 2022
@garaujodev garaujodev linked a pull request Dec 11, 2022 that will close this issue
@garaujodev garaujodev linked a pull request Dec 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant