Repository navigation
Test case for broken stack trace when path has parenthesis - #154
Merged
Merged
Conversation
Collaborator
|
From this quick test, it looks like this might be fixable in So this line: var lineMatch = line.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);
// would become
var lineMatch = line.match(/at (?:(.+?)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/); |
Contributor
Author
|
That's what I found as well, but when I tried to write tests on the repo against the bug I wasn't able to get it working. :-( I'm also not sure if there are regressions with that change. |
Collaborator
|
I submitted a PR with this fix. |
Member
|
This will be fixed one we move to |
Member
|
I will close this since we released new major bump with using 5.x SDKs |
Collaborator
|
@HazAT I think this PR was a test case to ensure that the |
Member
|
OK so good to merge now, lol :) |
HazAT
approved these changes
Nov 12, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When our electron app has a parenthesis in the name, we get bad stack traces that don't SourceMap properly.
I was able to fix part of the problem with #153 but that only helps with browser errors.
Errors in the main process seem to be parsed elsewhere (maybe by the
stack-tracemodule?).In any case, this PR doesn't solve the bug, just provides a test for it.