Open brandon-arnold opened 9 years ago
I'm having a similar problem. Karma is running fine for me on Unix/Mac, but failing with a bunch of warnings like this on Windows:
[2015-03-27 13:24:16.160] [WARN] watcher - Pattern "e:/dev/cli/trunk/runtime/ui/bower_components/angular-mocks/angular-mocks.js" does not match any file.
That file exists, but for some reason Karma isn't finding it.
I'm guessing it is the backslashes in the path, but can't figure out why they are getting changed.
That happens because you haven't added the angular-mocks package to your karma.conf.js.
I think I have a similar issue to this on my build server. It works fine locally. It also works fine locally on that server when I run it as the same user, but fails when run from Bamboo. I have no idea how to debug this problem. The error code I get is different: 4294967295.
build 14-Apr-2015 08:11:00 [36mDEBUG [launcher]: [39mProcess PhantomJS exited with code 4294967295
build 14-Apr-2015 08:11:00 [31mERROR [launcher]: [39mCannot start PhantomJS
Looking into it, I am pretty sure this is nothing to do with karma-phantomjs-launcher, but is in fact a bad build of PhantomJS hosted on their binary server at Bitbucket. The later version (2.0) works on the system. If I have time, I'll fork this repo and try to update it, or if someone else can do it in the meantime, that would be very helpful. In the meantime, I'll try to use Chrome version in a non-UI session (you need a version from at least four months ago, as referenced in this thread).
Interesting - so if I update to phantomjs 2 it will work? The latest version on npm is still 1.9.16 so I guess I have to wait until it's released there or try and hack something together.
@robdmoore: I can only say that version 2 runs and works from command line. I haven't configured it in karma-phantomjs-launcher yet. FWIW: my Jenkins server is working fine now using Chrome as a non-UI system process, which I'll stick to using for now.
Ref #56
Hi all,
I have a project that is working on all of the development workstations cross-platform, but not on my Jenkins server. If I remote in with the same account Jenkins uses and run
grunt karma
, I get a number ofCannot start PhantomJS
errors, with no useful debug information aside from the exit code3221225477
(see below, whereby I have the karma config set to DEBUG).I have tracked down the phantomJS exe that is being used to the appropriate lib folder beneath karma-phantomjs-launcher in the project's node modules, and verified that it is running that exe.
Is there anything someone can suggest I try?