重新启动 Logseq 时无法打开图谱,无法删除多余图谱。
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Search first
- I searched and no similar issues were found
What Happened?
- 退出 Logseq 0.11.0 时,默认会将数据库指向一个不存在的文件夹位置,因无法读取数据,故无法打开且不能切换图谱。
- 在「所有图谱」管理页面删除使用「eate db graph」建立的图谱,且在 C:\Users\XXX\logseq\graphs 位置删除文件后,下次正常启动后依然能够看到该图谱。
Reproduce the Bug
- 在「所有图谱」管理页面删除使用「eate db graph」建立的「News」图谱。
- 切换到正常使用的 DB 图谱后,退出正在运行中的 Logseq 0.11.0
- 重新运行 Logseq 0.11.0 ,发现停留在读取数据步骤中,此时也不能切换图谱。
- 退出后运行 Logseq 0.10.13,提示数据库位置不存在。见下图:
- 切换回正常的 md 图谱后退出 Logseq 0.10.13
- 删除C:\Users\XXX\logseq\graphs 位置内的「News」文件夹。
- 重新运行 Logseq 0.11.0 ,此时打开的是第5步打开的 md 图谱。
- 切换回 DB 图谱后正常读取且正常编辑。但已删除的「News」图谱仍然存在。见下图:
上述问题的另一个解决方法是在退出Logseq 0.11.0 时先切换回 MD 图谱,则下次启动时能够正常启动。
Expected Behavior
解决软件退出时,数据库重新指向的问题。
Files
Browser, Desktop or Mobile Platform Information
根据提示点击版本号显示 CurrentRevision: da73a6c
设备名 书房电脑-2020
处理器 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz 3.60 GHz
机带 RAM 32.0 GB (31.9 GB 可用)
存储 932 GB WDC WD10EZEX-00RKKA0, 466 GB SSD Samsung SSD 860 EVO 500GB, 932 GB WDC WD10EZEX-00RKKA0
显卡 NVIDIA GeForce GTX 970 (4 GB), Intel(R) HD Graphics 4600 (113 MB)
系统类型 64 位操作系统, 基于 x64 的处理器
笔和触控 笔支持
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
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 the sequence in the “所有图谱” management page: delete the News DB graph, switch graphs, exit Logseq 0.11.0, and restart it. Compare the saved database location and graph list with the C:\Users\XXX\logseq\graphs contents, including the 0.10.13 fallback described. Done means restart opens normally, deleted graphs no longer appear, and switching between DB and MD graphs remains possible.
Written by the indexing model from the issue text.
Assessment
- Domain
- databases, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100