Code Editor becomes unresponsive when 'value' prop is not empty
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
issue にリンクされている再現手順から始め、報告された CodeMirror の選択に関する stack trace を調査します。空でない value prop を使って caret の移動と行編集の手順を再現します。完了の条件は、エディターが応答可能なままで、IndexSizeError が発生しないことです。
索引モデルが issue の本文から書いたものです。
説明
If 'value' prop is defined for the codemirror then following bugs occur:
- sometimes we cannot use caret navigation for first word of code editor
- if we delete the entire line then add just single word then editor becomes unresponsive... after that it either removes the word after like 1 min or throws the following error:
IndexSizeError
Failed to execute 'collapse' on 'Selection': The offset 4 is larger than the node's length (0).
▼ 6 stack frames were expanded.
at eval (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:2520:18
at DOMObserver.ignore (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5690:14
at DocView.updateSelection (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:2504:26
at EditorView.update (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:6008:20
at DOMObserver.flush (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5797:50
at MutationObserver.eval (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5561:263
https://github.com/user-attachments/assets/82ebf7a9-32f0-4afc-a175-ceb71f4496e2
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 162
- 平均マージ
- 2時間 41分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uiwjs/react-codemirror のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
uiwjs/react-codemirror#766 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
uiwjs/react-codemirror#765 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
uiwjs/react-codemirror#772 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
uiwjs/react-codemirror#770 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
uiwjs/react-codemirror#767 · コメント 2 件 ·
uiwjs/react-codemirror の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
answerLoops/answerLoops#345 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
siyuan-note/siyuan#20313 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LanternOps/breeze#8254 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
gofish-graphics/gofish-graphics#1084 ·
メンテナーはふだん 1 日以内に返信