-
Notifications
You must be signed in to change notification settings - Fork 9
[Stack] Errors parsing stack frames when using pretty-error module. #99
Comments
Thanks for reporting this @bonesoul. We'll take a look and hopefully get a fix quickly. Note that while this looks like a lot of errors, Glimpse should still be working, the only thing impacted is our ability to display source code locations where certain events occur (e.g., where middleware is registered, where log statements are made, or where http client calls occur) |
i can't get glimpse working as the huge amount of errors slows down my application, i can not even boot it. |
sorry to hear that. :(. Is your application public by chance so that I can take a look? |
it's a private repository but i can help you with the information you need. |
Thanks @bonesoul. I don't understand why your stack frames are formatted as When I run this code in win 10/node 7.10.0: process.nextTick(() => {
func = () => {
const e = new Error();
console.log(e.stack);
};
const a = [func];
a.forEach((f) => {
f();
});
}); I see this output:
which is very different from the stack frames reported in those error messages. Can you send me the output on your machine from above code? |
Hi @bonesoul - Could you answer these questions for me?
|
|
Just wondering, are you using any packages that change the format of stack frames? |
i'm not aware of any that makes changes, but i'm aware of ones that watch it actually, but they are already disabled; risingstack/trace: "3.10.0", additinoally i've packages that may depend on stack; "debug": "2.6.6", i'll be disabling them to see the outcome. |
found it; https://github.com/AriaMinaei/pretty-error is the offending package. |
Thanks @bonesoul. Given the usage of pretty-error, we'll look into supporting parsing stack frame format produced by pretty-error. Stay tuned. Until we get support in, you could remove pretty-error & you shouldn't see those error messages any longer. Also, we should have an update out today that will chagne our error reporting logic such that we'll only emit an error message once per unsupported frame, so this should limit the noise here. |
OK, v0.20.9 is now available on NPM. This will limit the number of errors we output when we can't parse certain stacks, so your app should be usable even if you include pretty-error. |
great i'll give it a try |
node 7.10.0
win10 - x64
my code;
if (process.env.NODE_ENV !== 'production') { require('@glimpse/glimpse').init(); }
getting luts of errors like;
The text was updated successfully, but these errors were encountered: