big-r81 opened a new issue, #4333:
URL: https://github.com/apache/couchdb/issues/4333

   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ 
)
   
   ## Description
   
   Trying to run erlfmt-format on Windows doesn't work and give the following 
output (example):
   Full log: https://paste.apache.org/dmidr
   
   ```
   PS C:\relax\couchdb> make -f Makefile.win erlfmt-format
   no files matching [{files,"dev\\*.erl"}]
   Usage: erlfmt [-h] [-v] [-w] [-o <out>] [--verbose] [-c]
                 [--print-width <print_width>] [--require-pragma] [-i]
                 [--delete-pragma] [--range <range>]
                 [--exclude-files <exclude_files>] [<files>]
    
     -h, --help           print this message
     -v, --version        print version
     -w, --write          modify formatted files in place
     -o, --out            output directory
     --verbose            include debug output
     -c, --check          Check if your files are formatted. Get exit code 1,
                          if some files are not formatted. --write is not
                          supported.
     --print-width        The line length that formatter would wrap on
     --require-pragma     Require a special comment @format, called a pragma,
                          to be present in the file's first docblock comment
                          in order for erlfmt to format it.
     -i, --insert-pragma  Insert a @format pragma to the top of formatted
                          files when pragma is absent. Works well when used
                          in tandem with --require-pragma, but it is not
                          allowed to use require-pragma and insert-pragma at
                          the same time.
     --delete-pragma      Deletes the @format pragma at the top of formatted
                          files. It will also reformat the file, but is only
                          applied to files with a pragma, see
                          --require-pragma.
     --range              Range to be formatted in start-end format (both
                          inclusive). Warning! A bigger range might end up
                          being formatted, as for now the format granularity
                          is top-level form.
     --exclude-files      files not to format. This overrides the files
                          specified to format
     <files>              files to format, - for stdin. If no files are
                          provided and one option of [-w, -o, -c] are
                          provided then
                          {src,include,test}/*.{hrl,erl,app.src} and
                          rebar.config are specified as the default.
    
   no files matching [{files,"rel\\plugins\\*.erl"}]
   Usage: erlfmt [-h] [-v] [-w] [-o <out>] [--verbose] [-c]
                 [--print-width <print_width>] [--require-pragma] [-i]
                 [--delete-pragma] [--range <range>]
                 [--exclude-files <exclude_files>] [<files>]
    
     -h, --help           print this message
     -v, --version        print version
     -w, --write          modify formatted files in place
     -o, --out            output directory
     --verbose            include debug output
     -c, --check          Check if your files are formatted. Get exit code 1,
                          if some files are not formatted. --write is not
                          supported.
     --print-width        The line length that formatter would wrap on
     --require-pragma     Require a special comment @format, called a pragma,
                          to be present in the file's first docblock comment
                          in order for erlfmt to format it.
     -i, --insert-pragma  Insert a @format pragma to the top of formatted
                          files when pragma is absent. Works well when used
                          in tandem with --require-pragma, but it is not
                          allowed to use require-pragma and insert-pragma at
                          the same time.
     --delete-pragma      Deletes the @format pragma at the top of formatted
                          files. It will also reformat the file, but is only
                          applied to files with a pragma, see
                          --require-pragma.
     --range              Range to be formatted in start-end format (both
                          inclusive). Warning! A bigger range might end up
                          being formatted, as for now the format granularity
                          is top-level form.
     --exclude-files      files not to format. This overrides the files
                          specified to format
     <files>              files to format, - for stdin. If no files are
                          provided and one option of [-w, -o, -c] are
                          provided then
                          {src,include,test}/*.{hrl,erl,app.src} and
                          rebar.config are specified as the default.
   ```
   
   
   ## Steps to Reproduce
   
   - Setup build-env on Windows
   - Checkout Couchdb source
   - run `make -f Makefile.win erlfmt-format`
   
   ## Expected Behaviour
   
   - should format source files like in linux/unix/macOS
   
   ## Your Environment
   
   * CouchDB version used: main
   * Operating system and version: Windows 10
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to