Bug:vnote启动时,说没找到根目录,请指定新路径,但实际上目录路径正确,重新指定路径也无效
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13k
- Forks
- 1.3k
- Avg merge
- 14h 3m
- Merged PRs (30d)
- 3
Description
OS Version (操作系统): Windows, Linux, macOS
VNote Version (Help - About VNote - Version: )(VNote版本): 2.2, d78e892d5cc etc..
Symptoms (表现):
How to Repro (如何复现):
笔记本的内容依然在。经查看发现,根目录底下的_vnote.json文件变成空文件。
至于其他子文件夹的json文件似乎依然正常。
重新编写json文件后,笔记本恢复正常。
该问题似乎是由于在vnote中删除文件夹失败后引起的。vnote似乎不应该把json文件弄成空文件。出错的时候,应该保持原来文件不变。vnote似乎在出错的时候,删除了json文件的内容,但没恢复内容。
行为应该是出错,就不要改变json文件的内容。文件夹删不了,有可能是文件夹下文件依然在使用。
吓了一跳,以为笔记本整个丢失了。若无备份,恢复这个似乎也不容易呀。
希望修复这个bug。希望解决文件夹删除失败时可能出现的故障。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing a failed notebook-folder deletion and inspect how the root _vnote.json file is written during that operation. Verify the behavior when deletion fails, then confirm that the notebook remains recoverable and the existing JSON content is preserved unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100