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
Uncaught TypeError: Converting circular structure to JSON --> starting at object with constructor 'TextEditor' | property 'decorationManager' -> object with constructor 'DecorationManager' --- property 'editor' closes the circle
#234
Closed
diomat opened this issue
Feb 18, 2021
· 3 comments
I also renamed my ATOM_HOME folder (after the steps) to have a clean start in Atom and only installed the highlight-selected package. After that no error was thrown so it is probably a problem with one of my many other packages. Not sure if this fact makes it a valuable "Issue". Feel free to close immediately :o
Uncaught TypeError: Converting circular structure to JSON
--> starting at object with constructor 'TextEditor'
| property 'decorationManager' -> object with constructor 'DecorationManager'
--- property 'editor' closes the circle
At C:\Users\user\.atom\packages\highlight-selected\lib\search-model.js:230
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'TextEditor'
| property 'decorationManager' -> object with constructor 'DecorationManager'
--- property 'editor' closes the circle
at JSON.stringify (<anonymous>)
at Zt.getDecorationManagement (/packages/minimap/dist/main-146015fd.js:1:93664)
at Zt.decorateMarker (/packages/minimap/dist/main-146015fd.js:1:94559)
at Object.markerCreated (/packages/minimap-highlight-selected/lib/minimap-highlight-selected.js:71:12)
at /packages/minimap-highlight-selected/lib/minimap-highlight-selected.js:47:66
at Function.simpleDispatch (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:1190181)
at Emitter.emit (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:1191622)
at /packages/highlight-selected/lib/search-model.js:215:41
at TextBuffer.scanInRange (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:495557)
at TextBuffer.scan (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:495013)
at TextEditor.scan (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:40885)
at SearchModel.highlightSelectionInEditor (/packages/highlight-selected/lib/search-model.js:176:14)
at /packages/highlight-selected/lib/search-model.js:129:21
at Array.forEach (<anonymous>)
at SearchModel.handleSelection (/packages/highlight-selected/lib/search-model.js:128:26)
at /packages/highlight-selected/lib/selection-manager.js:96:26)
at later (/packages/highlight-selected/node_modules/debounce/index.js:27:23)
I compared our plugin lists and tried disabling minimap & minimap-highlight-selected, which seemed to have taken care of this error for me. It's likely this is a bug in their plugin.
[Enter steps to reproduce:]
I also renamed my ATOM_HOME folder (after the steps) to have a clean start in Atom and only installed the highlight-selected package. After that no error was thrown so it is probably a problem with one of my many other packages. Not sure if this fact makes it a valuable "Issue". Feel free to close immediately :o
Atom: 1.54.0 x64
Electron: 6.1.12
OS:
Thrown From: highlight-selected package 0.17.0
Stack Trace
Uncaught TypeError: Converting circular structure to JSON
--> starting at object with constructor 'TextEditor'
| property 'decorationManager' -> object with constructor 'DecorationManager'
--- property 'editor' closes the circle
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: