-
Notifications
You must be signed in to change notification settings - Fork 22
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
Cannot override isClean
#16
Comments
If I replace all instances of |
rrthomas
added a commit
to rrthomas/stacktracey
that referenced
this issue
Mar 17, 2024
Construct the current class rather than explicitly constructing StackTracey, so that overrides work.
#17 fixes this bug. |
Note: I have published a friendly fork as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I override
isClean
in a subclass ofStackTracey
, the original method is called instead.This does not happen with
isThirdParty
, which I can override no problem: indeed, my override ofisThirdParty
is correctly called by the originalisClean
.I believe this problem arises because
mergeRepeatedLines
callsnew StackTracey
, rather than constructing the current class. The same problem is present inwithSourcesAsync()
, and in the array methods, so that even overridingclean()
is not sufficient to prevent anisClean
being ignored.The text was updated successfully, but these errors were encountered: