Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Fixed Xcode crash involving "completion-scope" #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

allewun
Copy link

@allewun allewun commented May 4, 2015

If the YAML section of a snippet doesn't define a completion-scope key-value pair, xcodesnippet will assign [nil] to @snippet.completion_scopes and generate an invalid .plist, causing Xcode to crash.

I've updated xcodesnippet to only accept completion-scopes (plural) and not completion-scope. This subtle difference was also pretty easy to miss imho. As a result, the snippets in your other repo would need to be updated to use completion-scopes rather than completion-scope.

I also updated the README with the list of valid completion scopes. Hope these are reasonable changes!

@allewun allewun force-pushed the aw-fix-completionscope-crash branch from 269f9e7 to baed4f0 Compare May 4, 2015 02:54
@allewun allewun changed the title Fixed crash with "completion-scope" Fixed Xcode crash involving "completion-scope" May 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant