You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[14:55:44] Using gulpfile D:\dev\git\spring-asciidoctor-backends\gulpfile.js
[14:55:44] Starting 'build'...[2m 7s]
[14:55:44] Starting 'info'...
[14:55:44] Writing to $npm_config_output
[14:55:44] Finished 'info' after 798 ╬╝s
[14:55:44] Starting 'css'...
[14:55:47] Finished 'css' after 3.13 s
[14:55:47] Starting 'img'...
[14:55:47] Finished 'img' after 24 ms
[14:55:47] Starting 'jsSetup'...
[14:55:48] Finished 'jsSetup' after 977 ms
[14:55:48] Starting 'jsSite'...
[14:55:50] Finished 'jsSite' after 1.7 s
[14:55:50] Finished 'build' after 5.84 s
What went wrong:
Execution failed for task ':prettierCheckFormat'.
Process 'command 'D:\dev\git\spring-asciidoctor-backends.gradle\nodejs\node-v15.11.0-win-x64\npm.cmd'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
This seems to come from the default windows git configuration when core.autocrlf=true. Line feeds are converted to CRLF when cloning the repo, and then the command prettier --check . fails because of this.
I could continue the build by launching manually the npm run format = prettier --write . which "fixes" the files with the intended line endings.
One suggestion i could make to make it work without changing user configuration would be, based on prettier documentation (emphasis by me)
If you want to make sure that your entire git repository only contains Linux-style line endings in files covered by Prettier:
- [...]
- Add * text=auto eol=lf to the repo’s .gitattributes file. You may need to ask Windows users to re-clone your repo after this change to ensure git has not converted LF to CRLF on checkout.
Since I wanted to find the Windows-related issues, I tried to build the project on Windows, but it failed:
Here is the log:
Welcome to Gradle 6.8.2!
Here are the highlights of this release:
For more details see https://docs.gradle.org/6.8.2/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
added 1474 packages, and audited 1475 packages in 1m
106 packages are looking for funding
run
npm fund
for detailsfound 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 7.6.0 -> 7.10.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.10.0
npm notice Run
npm install -g [email protected]
to update!npm notice
[14:55:44] Using gulpfile D:\dev\git\spring-asciidoctor-backends\gulpfile.js
[14:55:44] Starting 'build'...[2m 7s]
[14:55:44] Starting 'info'...
[14:55:44] Writing to $npm_config_output
[14:55:44] Finished 'info' after 798 ╬╝s
[14:55:44] Starting 'css'...
[14:55:47] Finished 'css' after 3.13 s
[14:55:47] Starting 'img'...
[14:55:47] Finished 'img' after 24 ms
[14:55:47] Starting 'jsSetup'...
[14:55:48] Finished 'jsSetup' after 977 ms
[14:55:48] Starting 'jsSite'...
[14:55:50] Finished 'jsSite' after 1.7 s
[14:55:50] Finished 'build' after 5.84 s
Checking formatting...
[warn] src\main\css\asciidoctor.css
[warn] src\main\css\codetools.css
[warn] src\main\css\components.css
[warn] src\main\css\elements.css
[warn] src\main\css\generic.css
[warn] src\main\css\highlight.css
[warn] src\main\css\layout.css
[warn] src\main\css\settings-dark.css
[warn] src\main\css\settings.css
[warn] src\main\css\site.css
[warn] src\main\css\tabs.css
[warn] src\main\css\toc.css
[warn] src\main\js\setup\layout.js
[warn] src\main\js\setup\switchtheme.js
[warn] src\main\js\site\codetools.js
[warn] src\main\js\site\tabs.js
[warn] src\main\js\site\toc.js
[warn] src\main\ruby\lib\spring-asciidoctor-backends\body_template.html
[warn] Code style issues found in the above file(s). Forgot to run Prettier?
FAILURE: Build failed with an exception.
Execution failed for task ':prettierCheckFormat'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 34s
10 actionable tasks: 10 executed
The text was updated successfully, but these errors were encountered: