You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Unable to open 'Unknown Source'" if StackFrame.source is missing #20622
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
As I understand, StackFrame.source in the debug protocol is supposed to be optional (because there might not always be a source location available). However, starting with VSCode 1.9.0, a missing source causes the following error (after a pause request response, might happen elsewhere too):
(btw: same thing with a source that is present, but has no path)
At first glance, this makes it look like pausing didn't work. However, at a second glance, pausing and resuming still works fine, so it's mostly a cosmetic issue (that still might lead the user to think it's broken).
Isidor Nikolic (@isidorn) Yes, it works if our debug adapter sends a stackframe like the one in the screenshot of my original post (one without a source).
Our debug adapter used to send messages like this, where source is present, but path is null - with this, I can still reproduce the error on Insider's:
I just assumed that that was incorrect API usage / not supposed to work anyway - it always showed the path as null in the call stack rather than detecting it as Unknown Source:
Even though in 1.8.1, this didn't error, but it actually opened a <null> file, which doesn't seem correct either:
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Activity
fix: pause feature is turned off until this issue will be resolved mi…
isidorn commentedon Feb 20, 2017
Jens Fischer (@Gama11) does the fix work for you? Namely vscode should simply not open the source if it is missing which would prevent the error.
Gama11 commentedon Feb 20, 2017
Isidor Nikolic (@isidorn) Yes, it works if our debug adapter sends a stackframe like the one in the screenshot of my original post (one without a
source).Our debug adapter used to send messages like this, where
sourceis present, but path isnull- with this, I can still reproduce the error on Insider's:I just assumed that that was incorrect API usage / not supposed to work anyway - it always showed the path as
nullin the call stack rather than detecting it asUnknown Source:Even though in 1.8.1, this didn't error, but it actually opened a
<null>file, which doesn't seem correct either:isidorn commentedon Feb 20, 2017
Jens Fischer (@Gama11) thanks. Yes that is how it is supposed to work now. Adding verified label
debug: do not open deemphesized sources in editor