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

format error on windows. #164

Open
liudonghua123 opened this issue May 17, 2021 · 0 comments
Open

format error on windows. #164

liudonghua123 opened this issue May 17, 2021 · 0 comments
Labels

Comments

@liudonghua123
Copy link

I installed foxundermoon.shell-format-7.1.0 in my vscode on Windows platform, and I also downloaded https://github.com/mvdan/sh/releases/download/v3.2.4/shfmt_v3.2.4_windows_386.exe to c:\Users\Liu.D.H\.vscode\extensions\foxundermoon.shell-format-7.1.0\bin\shfmt_v3.2.4_windows_386.exe according to the output prompt.
However, I always got the following errors. And some seconds later, the c:\Users\Liu.D.H\.vscode\extensions\foxundermoon.shell-format-7.1.0\bin\shfmt_v3.2.4_windows_386.exe was deleted.

shfmt hasn't downloaded yet!Error: spawnSync c:\Users\Liu.D.H\.vscode\extensions\foxundermoon.shell-format-7.1.0\bin\shfmt_v3.2.4_windows_386.exe UNKNOWN
Shfmt will be downloaded automatically!
download url: https://github.com/mvdan/sh/releases/download/v3.2.4/shfmt_v3.2.4_windows_386.exe
download to: c:\Users\Liu.D.H\.vscode\extensions\foxundermoon.shell-format-7.1.0\bin\shfmt_v3.2.4_windows_386.exe
If the download fails, you can manually download it to the dest directory.
Or download to another directory, and then set the "shellformat.path" as the path
download shfmt page: https://github.com/mvdan/sh/releases
You can't use this plugin until the download is successful.
Effective shfmt flags: -bn,-ci,-i,2

I checked the code, it seems this error was produced via

let shfmt = child_process.spawn(Formatter.formatCommand, shfmtFlags);
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants