{"action":"closed","issue":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/639","repository_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery","labels_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/639/comments","events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/639/events","html_url":"https://github.com/krzysztofzablocki/Sourcery/issues/639","id":335264040,"node_id":"MDU6SXNzdWUzMzUyNjQwNDA=","number":639,"title":"Warning on parseEnumCase when using Swift 4.2","user":{"login":"marcelofabri","id":833072,"node_id":"MDQ6VXNlcjgzMzA3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/833072?v=4","gravatar_id":"","url":"https://api.github.com/users/marcelofabri","html_url":"https://github.com/marcelofabri","followers_url":"https://api.github.com/users/marcelofabri/followers","following_url":"https://api.github.com/users/marcelofabri/following{/other_user}","gists_url":"https://api.github.com/users/marcelofabri/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelofabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelofabri/subscriptions","organizations_url":"https://api.github.com/users/marcelofabri/orgs","repos_url":"https://api.github.com/users/marcelofabri/repos","events_url":"https://api.github.com/users/marcelofabri/events{/privacy}","received_events_url":"https://api.github.com/users/marcelofabri/received_events","type":"User","site_admin":false},"labels":[{"id":1025074604,"node_id":"MDU6TGFiZWwxMDI1MDc0NjA0","url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/labels/Swift%204.2","name":"Swift 4.2","color":"f475ce","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-25T05:27:53Z","updated_at":"2018-09-23T12:45:09Z","closed_at":"2018-09-23T12:45:09Z","author_association":"CONTRIBUTOR","body":"After enabling use with Swift 4.2/Xcode 10 (#638), I started getting this warning when running sourcery:\r\n\r\n```\r\nFile.swift:parseEnumCase: Unable to extract enum body from [\"key.nameoffset\": 924, \"key.accessibility\": \"source.lang.swift.accessibility.private\", \"key.length\": 13, \"key.name\": \"empty(_:)\", \"key.kind\": \"source.lang.swift.decl.enumelement\", \"key.namelength\": 5, \"key.offset\": 924]\r\n```\r\n\r\nI haven't look at the code, but SwiftLint faced a similar issue because `key.name` now contains the parameters (https://github.com/realm/SwiftLint/issues/2231), so it might be related."}}
{"actor":{"display_login":"ilyapuchka"}}