flutter-format-pre-commit icon indicating copy to clipboard operation
flutter-format-pre-commit copied to clipboard

Problem with flutter pre-commit format?

Open PopovVA opened this issue 5 years ago • 3 comments

In file .pre-commit-config.yaml i have set start file of application for testing of functionality hook.

- repo: https://github.com/Cretezy/flutter-format-pre-commit
  rev: "master"
  hooks:
    - id: flutter-format
      files: lib/src/app.dart # Only format source file

Intentionally I indent in the file and after that I commit, I get an error -

Commit failed with error
0 files committed, 1 file failed to commit: test hook

Format Flutter Code......................................................Failed

hookid: flutter-format          
Files were modified by this hook. Additional output:        
Formatted lib/src/app.dart
find: ‘>     bin [’: No such file or directory

My OS is Windows 10

PopovVA avatar May 28 '19 10:05 PopovVA

Same here...

chickahoona avatar Jul 21 '19 12:07 chickahoona

Sorry I somehow never saw this. I haven't tried on Windows so can you give me more information on which shell you are using?

Cretezy avatar Dec 27 '19 19:12 Cretezy

A normal cmd, nothing fancy.

chickahoona avatar Dec 28 '19 16:12 chickahoona