Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

This plugin doesn't work completely since Xcode 9 #137

Closed
xingheng opened this issue Sep 25, 2017 · 3 comments
Closed

This plugin doesn't work completely since Xcode 9 #137

xingheng opened this issue Sep 25, 2017 · 3 comments

Comments

@xingheng
Copy link

The Format Selected Files feature doesn't work since issue #135, the latter Format Active File and Format Selected Lines becomes disabled state since Xcode 9, it causes by the [XCFXcodeFormatter currentSourceCodeDocument] instance is nil. I dig it into the kernel case and compare the result between Xcode 8 and Xcode 9, it seems the editor view's class type changed.

According to the Accessibility Inspector's result, Xcode 8 uses the DVTSourceTextView, 9 uses the SourceEditor.SourceEditorContentView.

XCFXcodeFormatter couldn't get the NSDocument subclass instance anymore in Xcode 9, I tried my best to fix it but failed. :(

Are there any solutions/replacements for this? Please help!

@loveuqian
Copy link

@xingheng
Copy link
Author

xingheng commented Sep 27, 2017

Thanks @loveuqian , I just built a new code format script code base on uncrustify, check it from here.

@xingheng
Copy link
Author

Closed as this repository isn't active anymore.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants