Format files #1179
No reviewers
Labels
No Label
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🔙 Backport
💭 Brainstorming
🐛 Bug
🔭 Cannot-reproduce
🧺 Cleanup
🧾 Confirmed
💬 Discussion
📄 Documentation
🎯 Enhancement
🩹 External-dependecy
📱 F-droid
🎉 Feature
👋 Good-first-issue
🤾 Google-play
🔙 Has-backport
🚀 Improvement
🚨 Investigate
🌠 Long-term
🔙 Needs-backport
🧺 Needs-cleanup
📡 Needs-feedback
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
🥑 Ready
🪒 Refactor
🔙 Regression
📸 Release
🔒 Security
💡 Suggestion
🧪 Testing
🌐 Translation
💻 UI/UX
🪜 Upstream
🟦 Website
🙇♂️ Needs-help
🛰️ API-dependency
🛡️ Blocked
🏗️ Build
🗒️ Changelog
🗄️ Repository
🗓️ Summary
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#1179
Loading…
Reference in New Issue
There is no content yet.
Delete Branch ":format"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Reopened #1177
use https://codeberg.org/qwerty287/woodpecker-intellij-formatter
@mmarif @6543
Hmm that's really weird. I can't format
RepoDetailActivity
correctly, everything else is ready now. It looks like the IntelliJ formatter has a bug here. Can somebody of you try to reformat the file? Feel free to push it here for testing if it worked. Otherwise, I'll ask Jetbrains' support.@qwerty287 can you show where the issue is in formatting?
Not really. It is very weird because it moves one of the ActivityResultLaunchers to another place, removes some newlines (this results in
} private ActivityResultLauncher ...
which is not correct of course). If I run the formatter again, it changes it back again - and so on. You can check that locally bywe can ignore that specific file for now and it looks like a bug ...
... so report it upstream?
I'll do this later.
Reported it, https://youtrack.jetbrains.com/issue/IDEA-299065/Formatting-a-Java-file-has-weird-results-and-repeats-itself.
Nice! I was able to fix the formatting by adding a temporary step which prints out the diff after formatting. After applying this diff, it's working now!