{"action":"created","issue":{"url":"https://api.github.com/repos/steelbrain/autocomplete-swift/issues/8","repository_url":"https://api.github.com/repos/steelbrain/autocomplete-swift","labels_url":"https://api.github.com/repos/steelbrain/autocomplete-swift/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/steelbrain/autocomplete-swift/issues/8/comments","events_url":"https://api.github.com/repos/steelbrain/autocomplete-swift/issues/8/events","html_url":"https://github.com/steelbrain/autocomplete-swift/issues/8","id":276758897,"number":8,"title":"Not autocompleting","user":{"login":"rodrigoruiz","id":764094,"avatar_url":"https://avatars2.githubusercontent.com/u/764094?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigoruiz","html_url":"https://github.com/rodrigoruiz","followers_url":"https://api.github.com/users/rodrigoruiz/followers","following_url":"https://api.github.com/users/rodrigoruiz/following{/other_user}","gists_url":"https://api.github.com/users/rodrigoruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigoruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigoruiz/subscriptions","organizations_url":"https://api.github.com/users/rodrigoruiz/orgs","repos_url":"https://api.github.com/users/rodrigoruiz/repos","events_url":"https://api.github.com/users/rodrigoruiz/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigoruiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-25T15:48:09Z","updated_at":"2018-05-01T18:09:18Z","closed_at":null,"author_association":"NONE","body":"I installed SourceKittenDaemon and checked it's in my $PATH, but this package is still not showing the autocompletion for arrays, for example. As in type `[1].m`, I'd expect to see `map`.\r\n\r\nAm I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/steelbrain/autocomplete-swift/issues/comments/385743972","html_url":"https://github.com/steelbrain/autocomplete-swift/issues/8#issuecomment-385743972","issue_url":"https://api.github.com/repos/steelbrain/autocomplete-swift/issues/8","id":385743972,"user":{"login":"tcrondo","id":5581811,"avatar_url":"https://avatars1.githubusercontent.com/u/5581811?v=4","gravatar_id":"","url":"https://api.github.com/users/tcrondo","html_url":"https://github.com/tcrondo","followers_url":"https://api.github.com/users/tcrondo/followers","following_url":"https://api.github.com/users/tcrondo/following{/other_user}","gists_url":"https://api.github.com/users/tcrondo/gists{/gist_id}","starred_url":"https://api.github.com/users/tcrondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcrondo/subscriptions","organizations_url":"https://api.github.com/users/tcrondo/orgs","repos_url":"https://api.github.com/users/tcrondo/repos","events_url":"https://api.github.com/users/tcrondo/events{/privacy}","received_events_url":"https://api.github.com/users/tcrondo/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T18:09:18Z","updated_at":"2018-05-01T18:09:18Z","author_association":"NONE","body":"I had the same problem and here is my solution.\r\n\r\n- Atom: 1.26.1\r\n- SourceKittenDaemon: 0.1.7\r\n- autocomplete-swift: 1.0.3\r\n- macOS: 10.13.4\r\n\r\n1. Ensure your `xcodeproj` exists.\r\nIf you don't have it, create with `swift package generate-xcodeproj`. This is required by SourceKittenDaemon.\r\n2. Change `hostname: '127.0.0.1'` to `host: '::1'` in `~/.atom/packages/autocomplete-swift/lib/api.js`.\r\nSave the file and reload the window from `View > Developer > Reload Window`.\r\n\r\nFor the second part, I found an error message in the developer console.\r\n\r\n```\r\nevents.js:163 Uncaught Error: connect ECONNREFUSED 127.0.0.1:44877\r\n    at Object.exports._errnoException (util.js:1050)\r\n    at exports._exceptionWithHostPort (util.js:1073)\r\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097)\r\n```\r\n\r\nI don't know why but I guess ipv4 localhost address cannot be used for SourceKittenDaemon."}}
{"actor":{"display_login":"tcrondo"}}