Closed jakubkiermasz-zd closed 3 years ago
@jakubkiermasz-zd this looks like a bug.
Thanks for the info!
@jakubkiermasz-zd I'm not able to reproduce this with the default settings. Can you share your configuration?
Sure!
@jakubkiermasz-zd thanks. It looks like --closingparen same-line
is triggering the bug. I'll fix it asap, but in the meantime removing that option should fix it.
Thank you so much!
@jakubkiermasz-zd I now realize this was by design and not a bug. I might need to think about the right approach here since it does seem surprising: https://github.com/nicklockwood/SwiftFormat/pull/667
Thanks for letting me know! I totally understand the intention of #667, but it fights with what I want to achieve. If you need anything, ping me :)
I've fixed this now in a way that should hopefully satisfy both requirements
Thanks!
Is there any way to replace the executable file in the macos app? I want to use the swiftformat (as xcode extension) built from the develop, since it contains your fix.
You'd need to rebuild the whole app from source.
If you rebuild the Mac app, it should build and bundle the extension correctly. For best results use the Archive option and then export the app from Organizer.
Thank you so much for your help!
I did what you suggested. Definitely a good idea. I just run into an issue. I archived an app, with the personal development team, with a different bundle identifier. Moved it into the Applications folder, granted extensions permission in sysprefs and it's still not available from XCode's editor tab. Can it be caused by the bundle id?
The bundle ID shouldn't be a problem in itself, but extensions are pretty flaky generally. It might have been confused by there being multiple copies of the same extension.
Try quitting Xcode, moving it to a different folder and then moving it back again.
Still nothing :/ I'll probably wait till the release of the new version. When do you plan to update this amazing tool ^^?
@jakubkiermasz-zd fixed in 0.48.1
Awesome!
Hi!
I'm curious if it's an issue or intended behavior, but when I run SwiftFormat on that code:
It is formatted to:
Any feedback will be appreciated!