It seems to me like we should be able to prevent a modal dialog from showing up and obstructing editor actions (as in bug 566773) by catching the StackOverflowError at an appropriate place, even if the underlying error means some AST-based features will not work correctly.
From: [hidden email] <[hidden email]> on behalf of Marc-Andre Laperle <[hidden email]>
Sent: September 8, 2020 4:00 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] stackoverflowerror causes pop-ups
I don’t believe there is any general mechanism, AFAIK it was always handled issue by issue in the parser by adding safe guards specific to the underlying issue.
Over the last year there have been numerous reports about pop-up errors like "Notifying selection
listeners" and "EnclosingASTNameJob" whose root cause is a StackOverflowError caused by some (typically) C++ code that doesn't get along with CDT.
Do we have a mechanism in CDT to suppress that pop-up and perhaps stop analysing the problematic file?