{"action":"created","issue":{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/157","repository_url":"https://api.github.com/repos/AliSoftware/SwiftGen","labels_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/157/comments","events_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/157/events","html_url":"https://github.com/AliSoftware/SwiftGen/issues/157","id":171746494,"number":157,"title":"SourceKit crash on L10N autocompletes","user":{"login":"AndrewSB","id":3814772,"avatar_url":"https://avatars.githubusercontent.com/u/3814772?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewSB","html_url":"https://github.com/AndrewSB","followers_url":"https://api.github.com/users/AndrewSB/followers","following_url":"https://api.github.com/users/AndrewSB/following{/other_user}","gists_url":"https://api.github.com/users/AndrewSB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewSB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewSB/subscriptions","organizations_url":"https://api.github.com/users/AndrewSB/orgs","repos_url":"https://api.github.com/users/AndrewSB/repos","events_url":"https://api.github.com/users/AndrewSB/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewSB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-17T19:59:49Z","updated_at":"2016-08-19T09:31:37Z","closed_at":null,"body":"This always happens whenever I try to autocomplete the enum in `tr(.)`.\r\n\r\nHas anyone found a workaround that gives me all the enum cases so one doesn't have to guess names?"},"comment":{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/comments/240972540","html_url":"https://github.com/AliSoftware/SwiftGen/issues/157#issuecomment-240972540","issue_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/157","id":240972540,"user":{"login":"AliSoftware","id":216089,"avatar_url":"https://avatars.githubusercontent.com/u/216089?v=3","gravatar_id":"","url":"https://api.github.com/users/AliSoftware","html_url":"https://github.com/AliSoftware","followers_url":"https://api.github.com/users/AliSoftware/followers","following_url":"https://api.github.com/users/AliSoftware/following{/other_user}","gists_url":"https://api.github.com/users/AliSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/AliSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliSoftware/subscriptions","organizations_url":"https://api.github.com/users/AliSoftware/orgs","repos_url":"https://api.github.com/users/AliSoftware/repos","events_url":"https://api.github.com/users/AliSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/AliSoftware/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T09:31:37Z","updated_at":"2016-08-19T09:31:37Z","body":"Yeah, what your screenshot shows is indeed a SourceKit crash, with the explicit banner on top (and loss of syntax highlighting because SourceKit crashes).\r\n\r\nBut I confirm that I never had those just by trying to use autocomplete (like `tr(.⇥`) — I had some SourceKit crashes in some projects like everybody else, especially on previous versions of Xcode, but never had those just by trying to autocomplete `tr(.` in Xcode 7.3.1 like you seem to have. That's very strange indeed.\r\n\r\n* Is the crash systematic, and especially no matter how many strings you have in your `Localizable.strings` (so no matter how many `case` SwiftGen generates in the `enum L10n`?\r\n* Are you using the latest version of SwiftGen (and more especially the latest version of the default template)? I know some older versions of the template triggered SourceKit crashes and I had to alter them a bit to workaround those SourceKit bugs until they're fixed, so maybe that's just an old one you use without realizing?\r\n\r\nSee also Apple bugs reported in #56, #57, #112 about those templates which made the _compiler_ crash on optimized builds — they are not the same issue, as they are related to an issue in the Swift *compiler* writing bad code on some occasions in optimized builds, not about SourceKitService crashing… but maybe you can find interesting info and existing bug reports in there.\r\n\r\nPlease let us know the JIRA bug number once you've filed it, I can maybe try to push it forward to the Swift compiler team to have their feedback on such bugs. Hopefully if we file such bug report soon enough it could be fixed in next Xcode 8 betas before the GM.\r\n\r\nDon't forget to check if you still got the SourceKit crash in Xcode 8 latest betas though before filing a bug to Apple, as maybe they already fixed that crash in SourceKit :wink:"}}
{"actor":{"display_login":"AliSoftware"}}