-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
File paths in output need http://
prefix to match URL_REGEXP in karma/lib/reporter.js
#137
Comments
We receive a number of errors with source maps lately. It seems as if karma + karma-browserify + browserify can sometimes exchange the source map and sometimes not. |
@nikku Thanks. Just for the sake of completeness, I tried all the seemingly reasonable permutations of By the time they get to
whereas the url should (according to the |
I actually think this is a browser issue. Running against PhantomJS stack traces would properly be prefixed with See if you can reproduce this behavior. |
Thanks @nikku – I cannot speak for PhantomJS or Safari or IE with these tests, offhand, but the problem appears to exhibit in Firefox as well i.e. the error pinpoints are reported as something like
i.e. lacking Will see if I can put together a minimal test case. |
Here's a minimum working example that should run in multiple platforms https://gist.github.com/brianmhunt/e9b54d35af5c6537e3c8 Note that PhantomJS also exhibits the problem, e.g.
|
All right. I presume we should wait for some time to let these browsers (or karma) come up with respective fixes. The only thing we do is parsing the source map an providing it to karma. |
Ok, thanks @nikku – the issue is not here by the looks of it. I'll note the MWE on the Karma issue. |
Seems to be fixed in [email protected] |
Thanks @nikku- yes you are right- we fixed up the regex in karma reporter, sorry for not updating this issue. |
The files output by karma-browserify seem to not match the general reporter regular expression for formatting errors, and so source maps are not exposed.
I am not sure if it is easier for karma-browserify to add the
http://
to the beginning of the path in the error messages, or for karma-runner/karma to update the regular expression – so I am cross-posting this issue with karma-runner/karma#1495The text was updated successfully, but these errors were encountered: