-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
karma v1.0.0: You need to include some adapter that implements __karma__.start method! #162
Comments
I've got the very same error using karma v1.0.0, karma-jspm v2.1.1, jspm v0.16.39 and jasmine v2.4.1 on Windows 10. This is my current karma.conf.js:
And that's the karma output:
Any suggestions on how to get it up and running? |
Same issue. I've even gone so far as to place some console.log statments in karma-jspm/src/init.js. It looks like Is there perhaps a change lately in karma where files is cloned before being passed in? I'm also on win10 but not on jspm 17
|
just updated to karma v1.1.0, same error here... |
Odd....I put in the files that we wanted manually into the files array and...same issue. If I leave the files array populated manually and then remove the jspm plugin it works (sort of, there's a different error but the right files are loaded) So definitely some issue with what karma-jspm does to files I'm thinking karma 1.0 changed its DI structure. Here's what karma-requirejs looks like currently Whereas here is karma-jspm. Note we're not doing any $Inject properties |
Ok, nevermind that, I do see the |
The problem seems to be related to the duplicate referencing of I patched init.js like below and it works as expected. Replace
with
That's a bit too ugly to make into a PR though. |
Similar to @RIAstar 's line of thinking, I believe that the root issue is that the current implementation overwrites the |
CP-2039 fix(init): issue #162
What is the status on this? |
Fixed in #167, released in karma-jspm 2.2.0. Sorry, this issue should have gotten closed! |
This still reproduces with karma 1.1.1 and karma-jspm 2.2.0:
|
Same here, that is why I asked. But I have other plugins and I though one of those may be cause that. |
@rolandjitsu @tamird There are other plugins that might be causing this issue (i.e. chai). I suspect that PhantomJS might be adding to the mix as well. What happens when you run it without PhantomJS (perhaps try it with the chrome launcher only) or chai plugins? Is the issue still there? I was the one that submitted the pr for this, and as far as I can tell, |
My only karma plugins are: {
"karma-chrome-launcher": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jspm": "^2.2.0",
"karma-sauce-launcher": "^1.0.0",
"karma-spec-reporter": "^0.0.26"
} It can be either of sauce, spec-reporter or jasmine. I will try to see if I remove them I still get the error. |
I think there is still an issue with this plugin. I removed it and tried to run karma and it works without karma-jspm. Actually none of the other plugins cause this kind of error message, it is only when I leave this plugin enabled that I get the error. |
@rolandjitsu Thank you for the feedback. Upon further investigation, it does appear that the pr I submitted for this issue is accurate. However, I did identify a related bug inside Karma and submitted a pr to them accordingly. Knowing what I know now, I think it's safe to say that your issue is likely do to your file patterns amounting to duplicates, which (I speculate) is only present when you have @tamird Install my fork of Karma and let me know if you see anything different. |
Tried it, and got:
|
OK, I applied the patch locally and things worked (mostly):
Note the 404 warning which is a bit concerning. |
@m-a-r-c-e-l-i-n-o indeed, that warning is emitted even in the earlier version of karma, so that's unrelated. In any case, your patch upstream fixes karma 1.1.1 for me. |
@m-a-r-c-e-l-i-n-o I still think this issue should still be opened. As I stated before, once I enable karma-jspm, I still get: 16 07 2016 12:35:21.399:INFO [karma]: Karma v1.1.1 server started at http://localhost:9876/
16 07 2016 12:35:21.401:INFO [launcher]: Launching browser Chrome with unlimited concurrency
16 07 2016 12:35:21.407:INFO [launcher]: Starting browser Chrome
16 07 2016 12:35:22.421:INFO [Chrome 52.0.2743 (Mac OS X 10.11.5)]: Connected on socket /#IVdPwbkz9LroSpojAAAA with id 67492651
Chrome 52.0.2743 (Mac OS X 10.11.5) ERROR
You need to include some adapter that implements __karma__.start method!
Chrome 52.0.2743 (Mac OS X 10.11.5): Executed 0 of 0 ERROR (0.041 secs / 0 secs) And I have checked that none of the other plugins I use cause this. As for duplicate files, I do not have any, I barely have 3 files. |
After upgrading our project from karma v0.13.22 to v.1.0.0 we get following error:
You need to include some adapter that implements __karma__.start method!
package.json:
see relate issue: karma-runner/karma#2194
The text was updated successfully, but these errors were encountered: