{"action":"closed","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/1231","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/1231/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/1231/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/1231/events","html_url":"https://github.com/karma-runner/karma/issues/1231","id":47547376,"number":1231,"title":"Karma init. TypeError: Cannot call method 'slice' of undefined","user":{"login":"maksimr","id":616193,"avatar_url":"https://avatars.githubusercontent.com/u/616193?v=3","gravatar_id":"","url":"https://api.github.com/users/maksimr","html_url":"https://github.com/maksimr","followers_url":"https://api.github.com/users/maksimr/followers","following_url":"https://api.github.com/users/maksimr/following{/other_user}","gists_url":"https://api.github.com/users/maksimr/gists{/gist_id}","starred_url":"https://api.github.com/users/maksimr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksimr/subscriptions","organizations_url":"https://api.github.com/users/maksimr/orgs","repos_url":"https://api.github.com/users/maksimr/repos","events_url":"https://api.github.com/users/maksimr/events{/privacy}","received_events_url":"https://api.github.com/users/maksimr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma/labels/needs:%20investigation","name":"needs: investigation","color":"fbca04"},{"url":"https://api.github.com/repos/karma-runner/karma/labels/type:%20backlog","name":"type: backlog","color":"bfdadc"},{"url":"https://api.github.com/repos/karma-runner/karma/labels/type:%20bug","name":"type: bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-02T20:17:40Z","updated_at":"2015-06-27T07:21:12Z","closed_at":"2015-06-27T07:21:12Z","body":"Get error when try run `karma init`: \r\n\r\n```\r\n readline.js:507\r\n  this.line = this.line.slice(this.cursor);\r\n                        ^\r\nTypeError: Cannot call method 'slice' of undefined\r\n    at Interface._deleteLineLeft (readline.js:507:25)\r\n    at suggestNextOption (/home/maksimrv/www/jetbrains/.../node_modules/karma/lib/init/state_machine.js:43:9)\r\n    at nextQuestion (/home/maksimrv/www/jetbrains/.../node_modules/karma/lib/init/state_machine.js:120:12)\r\n ```\r\n\r\n- Linux 3.13.0-24-generic 47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n- Ubuntu 14\r\n- Karma version: 0.12.24\r\n- karma-cli 0.0.4\r\n- node 0.10.29/0.11.13\r\n- use nvm\r\n\r\nWe had same error on [Windows under *Cygwin*](http://stackoverflow.com/questions/19070777/get-error-with-line-slice-on-karma-init) now I can reproduce it on *ubuntu*"}}