-
Notifications
You must be signed in to change notification settings - Fork 102
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
Code does not format for files not checked into git #342
Comments
Looking at your other bug reports this may be related to switching to Visual Studio key mapping as well. I switched to that and noticed it at first and switched back to windows and it still didn't work, so I'm not entirely sure which one is the root cause, but everything worked after I checked in the new file with windows keymap. I switched to Visual Studio again and it didn't work for any file, then switch back to Windows keymap and it works again as well. |
Hey @viedt sorry I missed this issue, but thank you for letting me know. This is a long standing issue I was never able to reproduce. If you are able to reproduce consistently, can you post your idea.log please? Thanks |
saveactions_settings.xml Relevant part of idea.log In the above log, I switched to Visual Studio added a few spaces to an existing file, and hit ctrl+s. Nothing happened, switched back to Windows and added another space and hit ctrl+s and it formatted the file again. Hope this helps. |
Hey, I have the same error, but the difference is, that I have set a keymap based on Eclipse for MacOS. |
Ok @KaiHufenbach, interesting 🤔 Just for anyone reading this: current workaround is make sure that CTRL+S is mapped to the "Save all" action (NOT "Save"). |
Describe the bug
This issue was previously reported in #188 and appears to be back in version 2.2.0. When a file is not checked into git, it does not trigger the save actions at all.
What triggered the plugin
Any new file not tracked by git seems to reproduce this issue.
Versions
IntelliJ IDEA 2020.2.2 (Community Edition)
Build #IC-202.7319.50, built on September 14, 2020
Runtime version: 11.0.8+10-b944.31 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Non-Bundled Plugins: com.dubreuia, org.sonarlint.idea, org.jetbrains.kotlin, com.bruce.intellijplugin.generatesetter
The text was updated successfully, but these errors were encountered: