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
This is a cosmetic issue. If I commit a programmer error, and I mess up something with my commands and their handlers, I want to see a clear error about the problem, this happens usually, but not always. I can hit an Uncaught (in promise) TypeError: Converting circular structure to JSON error.
command.ts:298 Uncaught (in promise) TypeError: Converting circular structure to JSON
--> starting at object with constructor 'TheiaDockPanel'
| property '_layout' -> object with constructor 'DockLayout'
--- property '_parent' closes the circle
at JSON.stringify (<anonymous>)
at CommandRegistry.<anonymous> (command.ts:298)
at step (command.ts:15)
at Object.next (command.ts:15)
at command.ts:15
at new Promise (<anonymous>)
at ../../packages/core/lib/common/command.js.__awaiter (command.ts:15)
at CommandRegistry.../../packages/core/lib/common/command.js.CommandRegistry.executeCommand (command.ts:290)
at TabBarToolbar._this.executeCommand (tab-bar-toolbar.tsx:184)
at HTMLUnknownElement.callCallback (react-dom.development.js:336)
Bug Description:
This is a cosmetic issue. If I commit a programmer error, and I mess up something with my commands and their handlers, I want to see a clear error about the problem, this happens usually, but not always. I can hit an
Uncaught (in promise) TypeError: Converting circular structure to JSON
error.Related code:
theia/packages/core/src/common/command.ts
Line 298 in 87677a2
Steps to Reproduce:
Help wanted: Maybe one can rebind the default
JSON.stringify
with a lib that handles it gracefully; for instancejson-stringify-safe
or a better one.Additional Information
The text was updated successfully, but these errors were encountered: