-
Notifications
You must be signed in to change notification settings - Fork 107
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
Can't do java code formatting. #229
Comments
Can you format other languages? Looks like either vim can't find its own tmp files on your Windows setup OR the particular formatter command you set up there with your jar file is failing to output code to tmp and codefmt is only surfacing a confusing secondary error that means "command failed to produce output". |
I can't format other languages. I tried js-beautify. `" 構文チェック "--------------- "---------------- "---------------- "---------------- "---------------- "---------------- "---------------- "---------------- call glaive#Install() augroup autoformat_settings :FormatCode google-java-format I searched "C:\Users\J22011\AppData\Local\Temp\VJB687D.tmp", but could find no such file. The java runtime environment exists.JDK21.01 |
Duplicate of #86. |
Describe the bug
When attempting to format a file using Vim with the specified command, the error message "Error formatting file: Vim(let):E282: Cannot read from 'C:\Users\J22011\AppData\Local\Temp\V3F7F37.tmp'" is encountered.
To Reproduce
Minimal vimrc: https://raw.githubusercontent.com/kametsun/vim-setting/main/.vimrc
Steps to reproduce the behavior:
[
]
Expected behavior
We expect the file to be formatted without error and the changes to be saved successfully.
OS (version)
Windows 11 Pro 23H2
Additional context
PS C:\workspace-java> vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jun 28 2022 12:30:17)
The text was updated successfully, but these errors were encountered: