karma init is not working in latest master #443

Closed
dignifiedquire opened this Issue Mar 29, 2013 · 3 comments

Projects

None yet

2 participants

@dignifiedquire
Karma member

Because the launchers have been extracted out, the init script doesn't find them anymore and fails when trying to validate the input. Here is the error message:

Do you want to capture a browser automatically ?
Press tab to list possible options. Enter empty string to move to the next question.
> Chrome

/Users/dignifiedquire/opensource/karma/myfork/lib/init.js:54
  var proto = launcher[value + 'Browser'].prototype;
                                         ^
TypeError: Cannot read property 'prototype' of undefined
    at Object.validateBrowser [as validate] (/Users/dignifiedquire/opensource/karma/myfork/lib/init.js:54:42)
    at StateMachine.onLine (/Users/dignifiedquire/opensource/karma/myfork/lib/init.js:165:25)
    at Interface.EventEmitter.emit (events.js:96:17)
    at Interface._onLine (readline.js:200:10)
    at Interface._line (readline.js:518:8)
    at Interface._ttyWrite (readline.js:736:14)
    at ReadStream.onkeypress (readline.js:97:10)
    at ReadStream.EventEmitter.emit (events.js:126:20)
    at emitKey (readline.js:1058:12)
    at ReadStream.onData (readline.js:807:7)
@vojtajina

I'm aware of this... The whole karma init needs to be fixed to work with master, it's my last thing before pushing canary...

@dignifiedquire
Karma member

Good. Just wanted to document it somewhere.

@vojtajina

This is already fixed.

@vojtajina vojtajina closed this May 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment