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
Ktfmt failed to run with... #72
Comments
Can you provide a full build log? If you could rerun also with:
would be really helpful for me to debug |
https://scans.gradle.com/s/5wteeksr5wilc It does output the files, if poking at the source code would help you can find it all here on this branch https://github.com/bkbnio/kompendium/tree/v3 |
ahh i think I see the problem... the list of files that break ktfmt are effectively fully commented out 😄 This branch is a practically a total re-write of the library, so a number of files are currently totally commented out (see here). |
Oh nevermind, that was just for that particular module..... if I apply it to another module with actual code, it still explodes :( |
So that error (
Could you link which file you're referring to? |
If you wanna replicate, I've gone ahead and created a ktfmt branch here. If you clone that and run |
went ahead and pushed that via the gradle scan thingy as well https://scans.gradle.com/s/dg6pvfjsqbnta |
Thanks for the reproducer, that helped me replicate. For some reason the plugin is failing with this stacktrace:
It seems like it's failing inside ktfmt, and not inside the Gralde plugin. I'll have to take a closer look and get back to you. |
So I looked into this @unredundant and the problem seems to be inside the plugin you're using: I don't know what the exact reason is as this plugin is essentially configuring a lot of things. As soon as you remove it from your setup, ktfmt-gradle works correctly. I would advice against using those kind of plugins which encapsulate "too much" and creates those sort of errors. Anyway, this issue should probably be raised against them. |
Oh super interesting! I maintain that plugin as well, it's pretty much just meant to keep my gradle configs DRY. Thanks for looking into this, I'll close this since it's just some incompatibility with my own work :) |
🐛 Describe the bug
👋 Neat plugin... was excited to give it a spin, unfortunately I'm running into a problem that I'm not sure how to triage further. I have applied the ktfmt plugin to my project modules, but when I run
./gradlew ktfmtFormat
it spits out a bunch ofe: Generic error during file processing
messages. Digging a bit deeper with./gradewl ktfmtFormat --stacktrace
I get the followingWhich is still... not super helpful? I'm not sure what the 18 failures are 🤷
Cannot run ktfmt
✅ Expected behavior
Can run ktfmt
💣 Steps to reproduce
Bit hard to say given how unspecific the error messages are 😔
📷 Screenshots
N/A
📱 Tech info
The text was updated successfully, but these errors were encountered: