Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Error: editor not found #3549

Description

@lguychard
  1. Navigate to a PR, eg. https://github.com/sourcegraph/sourcegraph/pull/3548.
  2. Switch between the Conversation and Files tabs.
  3. Witness errors like this in the console:
Uncaught Error: editor not found: editor#0
    at findEditor (EditorTextField.tsx:202)
    at MapSubscriber.project (EditorTextField.tsx:68)
    at MapSubscriber._next (map.ts:85)
    at MapSubscriber.Subscriber.next (Subscriber.ts:100)
    at MapSubscriber._next (map.ts:90)
    at MapSubscriber.Subscriber.next (Subscriber.ts:100)
    at CombineLatestSubscriber.notifyNext (combineLatest.ts:280)
    at InnerSubscriber._next (InnerSubscriber.ts:18)
    at InnerSubscriber.Subscriber.next (Subscriber.ts:100)
    at BehaviorSubject.Subject.next (Subject.ts:71)

When calling removeEditor() when unsubscribing from synchronizeTextField(), editorService.editors emits, and the call to findEditor() in updateElementOnEditorOrModelChanges() throws.

cc @sqs

Metadata

Metadata

Labels

browser-extensionbugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions