Collab-server keeps phantom state of renamed files

オープン
#174 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

Start in the collab-server code that handles File Explorer renames and manages Y.Doc instances, then reproduce the a.txt → b.txt → a.txt sequence described in the issue. Done means reopening a.txt retains Version 3 rather than overwriting it with Version 2, while Ctrl-Z no longer restores the lost content.

索引モデルが issue の本文から書いたものです。

説明

To replicate:

  • Open an new file a.txt in a fresh project. Make edits to it and save them. (This is Version 1 of the document)
  • Edit the document and do not save those changes (this is Version 2 of the document)
  • Rename the file to b.txt using the File Explorer. Due to the fix in #160, the b.txt document will correctly contain Version 2 of the document
  • Make further edits to b.txt. This is Version 3 of the document. You can save these, or not.
  • Rename b.txt back to a.txt using the file explorer.

Expected: the a.txt buffer contains Version 3 of the document
Actual: the a.txt buffer contains Version 2 of the document. Pressing Ctrl-Z restores Version 3 of the document.

Reason: the collab server kept around a phantom Y.Doc for a.txt, and when a buffer for a.txt was opened, the collab server overwrote the document with its document.

Replaces #146 — this is the part of #146 that wasn't fixed by #160.

主要言語
TypeScript
スター
12
フォーク
1
平均マージ
1日 8時間
マージ済み PR(30日)
66

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

leanprover/lean-workbench のほかの issue

leanprover/lean-workbench の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。