{"action":"created","issue":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/22","repository_url":"https://api.github.com/repos/monounity/karma-typescript","labels_url":"https://api.github.com/repos/monounity/karma-typescript/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/monounity/karma-typescript/issues/22/comments","events_url":"https://api.github.com/repos/monounity/karma-typescript/issues/22/events","html_url":"https://github.com/monounity/karma-typescript/issues/22","id":186421449,"number":22,"title":"Never ending command when there is no matched files","user":{"login":"kubut","id":8919502,"avatar_url":"https://avatars.githubusercontent.com/u/8919502?v=3","gravatar_id":"","url":"https://api.github.com/users/kubut","html_url":"https://github.com/kubut","followers_url":"https://api.github.com/users/kubut/followers","following_url":"https://api.github.com/users/kubut/following{/other_user}","gists_url":"https://api.github.com/users/kubut/gists{/gist_id}","starred_url":"https://api.github.com/users/kubut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubut/subscriptions","organizations_url":"https://api.github.com/users/kubut/orgs","repos_url":"https://api.github.com/users/kubut/repos","events_url":"https://api.github.com/users/kubut/events{/privacy}","received_events_url":"https://api.github.com/users/kubut/received_events","type":"User","site_admin":false},"labels":[{"id":429965888,"url":"https://api.github.com/repos/monounity/karma-typescript/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-31T22:55:45Z","updated_at":"2016-11-01T14:53:17Z","closed_at":null,"body":"Hi!\r\nI have some trouble with karma-typescript. It works perfectly fine until there is a mistake in the test or there is no files that match file-path pattern and lib can't create coverage.\r\n\r\nScenario\r\n-\r\n* Download `karma-typescript v2.0.9`\r\n* Enter to `example_project` dir\r\n* Change `package.json` (added `karma-phantomjs-launcher`):\r\n``` json\r\n{\r\n  \"name\": \"karma-typescript-example-project\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"author\": \"monounity\",\r\n  \"contributors\": [\r\n    {\r\n      \"name\": \"erikbarke\"\r\n    }\r\n  ],\r\n  \"private\": true,\r\n  \"license\": \"MIT\",\r\n  \"scripts\": {\r\n    \"test\": \"karma start karma.conf.js\",\r\n    \"dev\": \"clear && rm -rf coverage && cp ../index.js node_modules/karma-typescript && cp -R ../lib/* node_modules/karma-typescript/lib/ && karma start\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@types/jasmine\": \"^2.2.31\",\r\n    \"jasmine-core\": \"^2.4.1\",\r\n    \"karma\": \"^1.2.0\",\r\n    \"karma-phantomjs-launcher\": \"1.0.2\",\r\n    \"karma-cli\": \"^1.0.1\",\r\n    \"karma-jasmine\": \"^1.0.2\",\r\n    \"karma-typescript\": \"../\",\r\n    \"typescript\": \"^1.8.10\"\r\n  }\r\n}\r\n```\r\n* Change `karma.conf.js` (changed browser to PhantomJS, add `singleRun` and change pattern)\r\n``` javascript\r\nmodule.exports = function(config) {\r\n    config.set({\r\n        frameworks: [\"jasmine\", \"karma-typescript\"],\r\n        files: [\r\n            { pattern: \"foo/**/*.ts\" }\r\n        ],\r\n        preprocessors: {\r\n            \"**/*.ts\": [\"karma-typescript\"]\r\n        },\r\n        reporters: [\"progress\", \"karma-typescript\"],\r\n        singleRun: true,\r\n        browsers: [\"PhantomJS\"]\r\n    });\r\n};\r\n```\r\n* run `karma start karma.conf.js`\r\n\r\n\r\nWhat happend?\r\n-\r\nWhat is obviously there is no files that match pattern - I'm getting the error `PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 0 ERROR (0.028 secs / 0 secs`, but command doesn't stop. When I'm trying to kill this by `ctrl+c`, I'm getting `31 10 2016 22:06:18.602:DEBUG [launcher]: Disconnecting all browsers` info (when log.debug is turned on). I have to kill node process. The same thing is happening when I have some mistakes in my tests and coverage can't be generated.\r\nJakub Górowski\r\n\r\n\r\nMy platform\r\n-\r\n* Vagrant 1.8.1 with `bento/ubuntu-15.04` box\r\n* Host system: Mint 18\r\n* NodeJS v5.10 (I can't install 6.x on Ubuntu 15.04)\r\n* NPM 3.8.3\r\n\r\nLog with debug mode\r\n-\r\n```\r\nvagrant@vagrant:~/www/node_modules/karma-typescript/example-project$ karma start karma.conf.js \r\n31 10 2016 22:03:31.081:DEBUG [plugin]: Loading karma-* from /vagrant/node_modules/karma-typescript/example-project/node_modules\r\n31 10 2016 22:03:31.086:DEBUG [plugin]: Loading plugin /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-commonjs.\r\n31 10 2016 22:03:31.088:DEBUG [plugin]: Loading plugin /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-coverage.\r\n31 10 2016 22:03:31.299:DEBUG [plugin]: Loading plugin /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-jasmine.\r\n31 10 2016 22:03:31.301:DEBUG [plugin]: Loading plugin /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-phantomjs-launcher.\r\n31 10 2016 22:03:31.333:DEBUG [plugin]: Loading plugin /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-typescript.\r\n31 10 2016 22:03:31.496:INFO [preprocessor.karma-typescript]: Using Typescript 2.0.6\r\n31 10 2016 22:03:31.504:DEBUG [web-server]: Instantiating middleware\r\n31 10 2016 22:03:31.521:DEBUG [reporter]: Trying to load reporter: karma-typescript\r\n31 10 2016 22:03:31.523:DEBUG [reporter]: Trying to load color-version of reporter: karma-typescript (karma-typescript_color)\r\n31 10 2016 22:03:31.523:DEBUG [reporter]: Couldn't load color-version.\r\n31 10 2016 22:03:31.539:WARN [watcher]: Pattern \"/vagrant/node_modules/karma-typescript/example-project/srac/**/*.ts\" does not match any file.\r\n31 10 2016 22:03:31.549:DEBUG [preprocessor.commonjs]: Configured root path for modules \"/vagrant/node_modules/karma-typescript/example-project/node_modules\".\r\n31 10 2016 22:03:31.549:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Processing style loader dummy /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-typescript/lib/style/loader.js\r\n31 10 2016 22:03:31.562:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Adding dummy modules for /vagrant/node_modules/karma-typescript/example-project/coverage/PhantomJS 2.1.1 (Linux 0.0.0)/html/base.css\r\n31 10 2016 22:03:31.563:DEBUG [preprocessor.commonjs]: Processing \"/vagrant/node_modules/karma-typescript/example-project/coverage/PhantomJS 2.1.1 (Linux 0.0.0)/html/base.css\".\r\n31 10 2016 22:03:31.563:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Adding dummy modules for /vagrant/node_modules/karma-typescript/example-project/coverage/PhantomJS 2.1.1 (Linux 0.0.0)/html/prettify.css\r\n31 10 2016 22:03:31.563:DEBUG [preprocessor.commonjs]: Processing \"/vagrant/node_modules/karma-typescript/example-project/coverage/PhantomJS 2.1.1 (Linux 0.0.0)/html/prettify.css\".\r\n31 10 2016 22:03:31.564:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Adding dummy modules for /vagrant/node_modules/karma-typescript/example-project/src/style/css.css\r\n31 10 2016 22:03:31.564:DEBUG [preprocessor.commonjs]: Processing \"/vagrant/node_modules/karma-typescript/example-project/src/style/css.css\".\r\n31 10 2016 22:03:31.564:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Adding dummy modules for /vagrant/node_modules/karma-typescript/example-project/src/style/less.less\r\n31 10 2016 22:03:31.564:DEBUG [preprocessor.commonjs]: Processing \"/vagrant/node_modules/karma-typescript/example-project/src/style/less.less\".\r\n31 10 2016 22:03:31.565:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Adding dummy modules for /vagrant/node_modules/karma-typescript/example-project/src/style/sass.sass\r\n31 10 2016 22:03:31.566:DEBUG [preprocessor.commonjs]: Processing \"/vagrant/node_modules/karma-typescript/example-project/src/style/sass.sass\".\r\n31 10 2016 22:03:31.566:DEBUG [preprocessor.karma-typescript-style-preprocessor]: Adding dummy modules for /vagrant/node_modules/karma-typescript/example-project/src/style/scss.scss\r\n31 10 2016 22:03:31.566:DEBUG [preprocessor.commonjs]: Processing \"/vagrant/node_modules/karma-typescript/example-project/src/style/scss.scss\".\r\n31 10 2016 22:03:31.575:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/\r\n31 10 2016 22:03:31.576:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency\r\n31 10 2016 22:03:31.584:INFO [launcher]: Starting browser PhantomJS\r\n31 10 2016 22:03:31.585:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-58013638\r\n31 10 2016 22:03:31.589:DEBUG [launcher]: /vagrant/node_modules/karma-typescript/example-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /tmp/karma-58013638/capture.js\r\n31 10 2016 22:03:31.663:DEBUG [web-server]: serving: /vagrant/node_modules/karma-typescript/example-project/node_modules/karma/static/client.html\r\n31 10 2016 22:03:31.680:DEBUG [web-server]: serving: /vagrant/node_modules/karma-typescript/example-project/node_modules/karma/static/karma.js\r\n31 10 2016 22:03:31.750:DEBUG [karma]: A browser has connected on socket /#bEt4NX6d5Wjo5le6AAAA\r\n31 10 2016 22:03:31.756:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=bEt4NX6d5Wjo5le6AAAA\r\n31 10 2016 22:03:31.810:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket /#bEt4NX6d5Wjo5le6AAAA with id 58013638\r\n31 10 2016 22:03:31.811:DEBUG [launcher]: PhantomJS (id 58013638) captured in 0.234 secs\r\n31 10 2016 22:03:31.820:DEBUG [phantomjs.launcher]: \r\n\r\n31 10 2016 22:03:31.821:DEBUG [middleware:karma]: custom files null null\r\n31 10 2016 22:03:31.822:DEBUG [middleware:karma]: Serving static request /context.html\r\n31 10 2016 22:03:31.823:DEBUG [web-server]: serving: /vagrant/node_modules/karma-typescript/example-project/node_modules/karma/static/context.html\r\n31 10 2016 22:03:31.828:DEBUG [middleware:source-files]: Requesting /base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?916005cc407925f4764668d61d04888d59258f5d /\r\n31 10 2016 22:03:31.830:DEBUG [middleware:source-files]: Fetching /vagrant/node_modules/karma-typescript/example-project/node_modules/jasmine-core/lib/jasmine-core/jasmine.js\r\n31 10 2016 22:03:31.831:DEBUG [web-server]: serving (cached): /vagrant/node_modules/karma-typescript/example-project/node_modules/jasmine-core/lib/jasmine-core/jasmine.js\r\n31 10 2016 22:03:31.833:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e /\r\n31 10 2016 22:03:31.833:DEBUG [middleware:source-files]: Fetching /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-jasmine/lib/boot.js\r\n31 10 2016 22:03:31.834:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine/lib/adapter.js?7975a273517f1eb29d7bd018790fd4c7b9a485d5 /\r\n31 10 2016 22:03:31.834:DEBUG [middleware:source-files]: Fetching /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-jasmine/lib/adapter.js\r\n31 10 2016 22:03:31.834:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-typescript/lib/style/loader.js?2b1c135b955e134de02687282f31d11b4fef26fa /\r\n31 10 2016 22:03:31.835:DEBUG [middleware:source-files]: Fetching /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-typescript/lib/style/loader.js\r\n31 10 2016 22:03:31.835:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-commonjs/client/commonjs_bridge.js?3ffaad19615c0ece301fbf07794b83488c0f7851 /\r\n31 10 2016 22:03:31.835:DEBUG [middleware:source-files]: Fetching /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-commonjs/client/commonjs_bridge.js\r\n31 10 2016 22:03:31.836:DEBUG [web-server]: serving (cached): /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-jasmine/lib/boot.js\r\n31 10 2016 22:03:31.837:DEBUG [web-server]: serving (cached): /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-jasmine/lib/adapter.js\r\n31 10 2016 22:03:31.838:DEBUG [web-server]: serving (cached): /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-typescript/lib/style/loader.js\r\n31 10 2016 22:03:31.839:DEBUG [web-server]: serving (cached): /vagrant/node_modules/karma-typescript/example-project/node_modules/karma-commonjs/client/commonjs_bridge.js\r\n31 10 2016 22:03:31.840:DEBUG [web-server]: serving: /vagrant/node_modules/karma-typescript/example-project/node_modules/karma/static/context.js\r\nPhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 0 ERROR (0.033 secs / 0 secs)\r\n31 10 2016 22:03:31.890:DEBUG [karma]: Run complete, exiting.\r\n31 10 2016 22:03:31.892:DEBUG [launcher]: Disconnecting all browsers\r\n31 10 2016 22:03:31.897:DEBUG [launcher]: Process PhantomJS exited with code 0\r\n31 10 2016 22:03:31.897:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-58013638\r\n31 10 2016 22:03:31.902:DEBUG [launcher]: Finished all browsers\r\n^C31 10 2016 22:03:46.495:DEBUG [launcher]: Disconnecting all browsers\r\n^Z\r\n```"},"comment":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/comments/257587195","html_url":"https://github.com/monounity/karma-typescript/issues/22#issuecomment-257587195","issue_url":"https://api.github.com/repos/monounity/karma-typescript/issues/22","id":257587195,"user":{"login":"monounity","id":21166188,"avatar_url":"https://avatars.githubusercontent.com/u/21166188?v=3","gravatar_id":"","url":"https://api.github.com/users/monounity","html_url":"https://github.com/monounity","followers_url":"https://api.github.com/users/monounity/followers","following_url":"https://api.github.com/users/monounity/following{/other_user}","gists_url":"https://api.github.com/users/monounity/gists{/gist_id}","starred_url":"https://api.github.com/users/monounity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monounity/subscriptions","organizations_url":"https://api.github.com/users/monounity/orgs","repos_url":"https://api.github.com/users/monounity/repos","events_url":"https://api.github.com/users/monounity/events{/privacy}","received_events_url":"https://api.github.com/users/monounity/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T14:53:17Z","updated_at":"2016-11-01T14:53:17Z","body":"@kubut, this problem is related to #19 where the compiler doesn't find any files at all... This error is probably easy to reproduce!"}}
{"actor":{"display_login":"monounity"}}