Different result for ktfmtFormat on Windows vs. OSX
Hi all 😀
We are using ktfmtFormat in Jewel (https://github.com/JetBrains/jewel) and we are seeing different behaviors on Windows and OSX.
Running ktfmtFormat on this commit https://github.com/JetBrains/jewel/actions/runs/10919605303/job/30307618757 on Windows will produce no changes to any files, and then when the CI runs check will error out with:
Execution failed for task ':ide-laf-bridge:ktfmtCheckMain'.
> [ktfmt] Found 1 files that are not properly formatted:
src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt
Running ktfmtFormat on Mac will change a couple of files, as shown in this commit https://github.com/JetBrains/jewel/pull/601/commits/c322d7b6b904eff7576d0bd13fa3f438befdf5ee?file-filters%5B%5D=.kt&show-viewed-files=true, rearranging a few import statements.
Running check on the CI will then succeed.
Thank you.
Hi @hick209 any chance y'all can take a look at this? @hamen can help you repro by providing more Jewel commits where this happens. It's very annoying...
Yeah, it forced me to a very exhausting workflow where I need to:
- run it on Windows
- push the code
- watch the CI failing
- pull the branch on Linux
- run it on Linux
- push the code
- watch the CI succeed
It's very time-consuming.
Yes, @rock3r, please do share more commits where this happens and what is lacking. Unfortunately I don't have a Windows machine to easily test this 🫤
@hamen ⬆️
I'm thinking this might be related to https://github.com/facebook/ktfmt/issues/523 since I suspect that issue happens only on Windows
I'll link some commit next week once I get back to Jewel 👍🏻
@hamen any success on recently reproducing this?
Hi @hick209, I'm not using the tool anymore. I can't give you any other feedback on it.
@rock3r let me know if you are still experiencing issues with this, else I'll close it
Ivan was the only one using Windows regularly... I'd close for now. If it comes back we'll file a new one