-
Notifications
You must be signed in to change notification settings - Fork 50
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
First selection was not a text range #20
Comments
Hi @laurence79 Thanks for raising this issue. I haven't been able to reproduce your issue so far. If you help me clarify a few things I might be able to help solve your problem.
|
Hi, thanks for looking into it.
|
Thanks for the info. I've looked into the error and, you're right, it seems like Assuming Xcode is only passing selections containing According to my analytics, you are the only user who has seen this error so far. So I wonder if the problem is due to your environment. Could you try uninstalling the plugin, restarting your machine, reinstalling, and making sure only one Xcode is open and that It's not exactly inspiring advice for fixing a problem but I can't think of any other reasons why you would see this error. * I've checked the rpaths of the binary and they point to directories in the bundle. There is also not a copy of XcodeKit.framework in the bundle. I also searched Xcode.app directories for the XcodeKit.framework and there seems to be only one bundled with Xcode. |
I've done this, also uninstalled Xcode completely, emptied trash, restart, reinstall, but the problem persists. |
When attempting to generate anything using the plugin for the first time I am receiving this First selection was not a text range error.
Looking through the code I can see that this is being thrown because
XCSourceEditorCommandInvocation.buffer.selections[0]
isn't of typeXCSourceTextRange
, but I don't really know where to go from here.macOS Mojave 10.14.1
XCode 10.0 (10A255)
The text was updated successfully, but these errors were encountered: