karma-brackets
karma-brackets copied to clipboard
Karma-Brackets Windows 7
Hi I have Karma-brackets installed on Windows 7
I keep getting this error I am bit lost as to where/how to change the settings
"There was an error while starting karma server. Check you have the path to karma executable configured correctly and that karma config file is in the root of the current project."
my app is generated by yeoman
hi! thanks for reporting. Are you using a global version of karma or the local?Can you paste here your karma.conf.js?
I tried both local and global
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-10-16 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [],
// list of files / patterns to exclude
exclude: [],
// web server port
port: 8080,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: [
'Chrome',
],
// Which plugins to enable
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine'
],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false,
reporters: ['brackets'],
colors: true,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_INFO
// Uncomment the following lines if you are using grunt's server to run the tests
// proxies: {
// '/': 'http://localhost:9000/'
// },
// URL root prevent conflicts with the site root
// urlRoot: '_karma_'
});
};
Karma.conf.js is in "test" folder created by yeoman So I've set the Krama brackets Extension settings to
so that C:\DEV\GIT\KarmaRunner\node_modules\karma
test\karma.conf.js
I've got two possible problems in mind:
- Install karma-cli globally (and karma + karma-brackets-reporter locally)
- Try to double-escape your path backslashes (e.g
C:\\DEV\GIT\\KarmaRunner\\node_modules\\karmatest\\karma.conf.js
)
I'm not sure the second one is the issue though.
Furthermore, if you can't manage to fix this, can you put the output of $ karma start
run from within your project root?
/c/dev/git/KarmaRunner
$ karma start
INFO [karma]: Karma v0.12.24 server started at http://localhost:9876/
INFO [Chrome 39.0.2171 (Windows 7)]: Connected on socket mmoZcJ8JKIK1uakTzfjr with id manual-9860
Chrome 39.0.2171 (Windows 7) ERROR
You need to include some adapter that implements __karma__.start method!
This is why I ran it from test\ folder instead of the root and got following
/c/dev/git/KarmaRunner/test
$ karma start
WARN [reporter]: Can not load "brackets", it is not registered!
Perhaps you are missing some plugin?
INFO [karma]: Karma v0.12.24 server started at http://localhost:8080/
WARN [launcher]: Can not load "Chrome", it is not registered!
Perhaps you are missing some plugin?
Ok, cool That means that the instance of karma you're running can't find the reporter. This usually happens with global instances of karma. I suggest you uninstall karma globally and install 'karma-cli' instead. Then install karma brackets reporter (locally). Please let me know if that doesn't fix it! On Oct 19, 2014 1:32 AM, "Shavin Fonseka" [email protected] wrote:
$ karma start INFO [karma]: Karma v0.12.24 server started at http://localhost:9876/ INFO [Chrome 39.0.2171 (Windows 7)]: Connected on socket mmoZcJ8JKIK1uakTzfjr with id manual-9860 Chrome 39.0.2171 (Windows 7) ERROR You need to include some adapter that implements karma.start method!
This is why I ran it from test\ folder instead of the root
— Reply to this email directly or view it on GitHub https://github.com/artoale/karma-brackets/issues/17#issuecomment-59635046 .
Ok now I remove Karma and installed Karma-cli
What should my Brackets settings be? ( i did try double escaping) I should still point this to local karma?
I get this error
$ karma start
WARN [reporter]: Can not load "Brackets", it is not registered! Perhaps you are missing some plugin?
INFO [karma]: Karma v0.12.24 server started at http://localhost:8080/
INFO [launcher]: Starting browser PhantomJS
WARN [watcher]: Pattern "c:/dev/git/KarmaRun/test/mock/**/*.js" does not match any file.
INFO [PhantomJS 1.9.7 (Windows 7)]: Connected on socket H5st5ewBFtMlKI4hEC2A with id 52208819
Should I delete the local karma installed by yo angular
Ideally, you should point to "global" karma, yes. But I believe you sill have some problem (which doesn't depend on your brackets settings) since you can't load karma brackets plugin even if launching karma globally. Is karma brackets reporter installed locally or globally (or both?)
On Sun, Oct 19, 2014, 02:51 Shavin Fonseka [email protected] wrote:
Ok now I remove Karma and installed Karma-cli [image: -gkarma] https://cloud.githubusercontent.com/assets/1387263/4691686/2dd7306a-572d-11e4-9dfd-16b5b6f56040.JPG
What should my Brackets settings be? ( i did try double escaping) I should still point this to local karma?
[image: karmasettings] https://cloud.githubusercontent.com/assets/1387263/4691687/2dda59a2-572d-11e4-99be-4d3949e3ba25.JPG
I get this error
$ karma start WARN [reporter]: Can not load "Brackets", it is not registered! Perhaps you are missing some plugin? INFO [karma]: Karma v0.12.24 server started at http://localhost:8080/ INFO [launcher]: Starting browser PhantomJS WARN [watcher]: Pattern "c:/dev/git/KarmaRun/test/mock/**/*.js" does not match any file. INFO [PhantomJS 1.9.7 (Windows 7)]: Connected on socket H5st5ewBFtMlKI4hEC2A with id 52208819
Should I delete the local karma installed by yo angular [image: capture2] https://cloud.githubusercontent.com/assets/1387263/4691772/45c8edb2-5732-11e4-9b44-10a9dda8163c.JPG
[image: local] https://cloud.githubusercontent.com/assets/1387263/4691773/45cd904c-5732-11e4-997c-8503ea660db5.JPG
— Reply to this email directly or view it on GitHub https://github.com/artoale/karma-brackets/issues/17#issuecomment-59636499 .
In my situation i got the same error, since the global KARMA was installed to different location - %appdata%\npm\karma