{"action":"created","issue":{"url":"https://api.github.com/repos/mrhooray/gulp-mocha-phantomjs/issues/46","labels_url":"https://api.github.com/repos/mrhooray/gulp-mocha-phantomjs/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/mrhooray/gulp-mocha-phantomjs/issues/46/comments","events_url":"https://api.github.com/repos/mrhooray/gulp-mocha-phantomjs/issues/46/events","html_url":"https://github.com/mrhooray/gulp-mocha-phantomjs/issues/46","id":104088571,"number":46,"title":"Error after upgrade to gulp-mocha-phantomjs version 0.10.0 on the windows platform","user":{"login":"doberkofler","id":1009585,"avatar_url":"https://avatars.githubusercontent.com/u/1009585?v=3","gravatar_id":"","url":"https://api.github.com/users/doberkofler","html_url":"https://github.com/doberkofler","followers_url":"https://api.github.com/users/doberkofler/followers","following_url":"https://api.github.com/users/doberkofler/following{/other_user}","gists_url":"https://api.github.com/users/doberkofler/gists{/gist_id}","starred_url":"https://api.github.com/users/doberkofler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doberkofler/subscriptions","organizations_url":"https://api.github.com/users/doberkofler/orgs","repos_url":"https://api.github.com/users/doberkofler/repos","events_url":"https://api.github.com/users/doberkofler/events{/privacy}","received_events_url":"https://api.github.com/users/doberkofler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-31T16:44:47Z","updated_at":"2015-09-01T14:21:49Z","closed_at":null,"body":"The exact same unit tests failed to work after (exclusively) upgrading from version 0.9.0 to 0.10.0.\r\n\r\nThe error messages looks like this:\r\n```\r\nError loading resource file://d/MyDev/ljs_app/trunk/periscope/build/test/frontend/lib/runner.html (203).\r\nDetails: Error opening //d/MyDev/ljs_app/trunk/periscope/build/test/frontend/lib/runner.html: The network path was not found.\r\nFailed to load the page. Check the url: file://d/MyDev/ljs_app/trunk/periscope/build/test/frontend/lib/runner.html\r\n```\r\n\r\nIt seems to me, as if the URL would have an invalid format:\r\nThe URL `file://d/MyDev/ljs_app/trunk/periscope/build/test/frontend/lib/runner.html` is not a valid URL  on Windows but it should rather (not the `d:` instead of `d`) be `file://d:/MyDev/ljs_app/trunk/periscope/build/test/frontend/lib/runner.html`."},"comment":{"url":"https://api.github.com/repos/mrhooray/gulp-mocha-phantomjs/issues/comments/136737770","html_url":"https://github.com/mrhooray/gulp-mocha-phantomjs/issues/46#issuecomment-136737770","issue_url":"https://api.github.com/repos/mrhooray/gulp-mocha-phantomjs/issues/46","id":136737770,"user":{"login":"doberkofler","id":1009585,"avatar_url":"https://avatars.githubusercontent.com/u/1009585?v=3","gravatar_id":"","url":"https://api.github.com/users/doberkofler","html_url":"https://github.com/doberkofler","followers_url":"https://api.github.com/users/doberkofler/followers","following_url":"https://api.github.com/users/doberkofler/following{/other_user}","gists_url":"https://api.github.com/users/doberkofler/gists{/gist_id}","starred_url":"https://api.github.com/users/doberkofler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doberkofler/subscriptions","organizations_url":"https://api.github.com/users/doberkofler/orgs","repos_url":"https://api.github.com/users/doberkofler/repos","events_url":"https://api.github.com/users/doberkofler/events{/privacy}","received_events_url":"https://api.github.com/users/doberkofler/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T14:21:49Z","updated_at":"2015-09-01T14:21:49Z","body":"Yes, the above changes seem to cause this problem. I've added some debug output:\r\n```javascript\r\nfunction mochaPhantomJS(options) {\r\n    options = options || {};\r\n\r\n    var scriptPath = lookup('mocha-phantomjs-core/mocha-phantomjs-core.js');\r\n\r\n    if (!scriptPath) {\r\n        throw new gutil.PluginError(pluginName, 'mocha-phantomjs-core.js not found');\r\n    }\r\n\r\n    return through.obj(function (file, enc, cb) {\r\n        var args = [\r\n            scriptPath,\r\n            //mergeQuery(toURI(file.path), options.mocha),\r\n            mergeQuery(file.path, options.mocha),\r\n            options.reporter || 'spec',\r\n            JSON.stringify(options.phantomjs || {})\r\n        ];\r\n\r\n        console.log('file.path: \"' + file.path + '\"');\r\n        console.log('toURI(file.path): \"' + toURI(file.path) + '\"');\r\n        console.log('mergeQuery(file.path, options.mocha): \"' + mergeQuery(file.path, options.mocha) + '\"');\r\n        console.log('mergeQuery(toURI(file.path), options.mocha): \"' + mergeQuery(toURI(file.path), options.mocha) + '\"');\r\n\r\n        spawnPhantomJS(args, options, this, function (err) {\r\n            if (err) {\r\n                return cb(err);\r\n            }\r\n\r\n            this.push(file);\r\n\r\n            cb();\r\n        }.bind(this));\r\n    });\r\n}\r\n```\r\nto show what happens:\r\n```\r\nfile.path: \"D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\test\\frontend\\onerror\\runner.html\"\r\ntoURI(file.path): \"file://D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\test\\frontend\\onerror\\runner.html\"\r\nmergeQuery(file.path, options.mocha): \"d:/MyDev/ljs_app/trunk/periscope/build/test/frontend/onerror/runner.html\"\r\nmergeQuery(toURI(file.path), options.mocha): \"file://d/MyDev/ljs_app/trunk/periscope/build/test/frontend/onerror/runner.html\"\r\n```\r\n"}}