Skip to content

Find-replace escaped characters will lose content #14438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
yshumy opened this issue Mar 25, 2025 · 1 comment
Closed
3 tasks done

Find-replace escaped characters will lose content #14438

yshumy opened this issue Mar 25, 2025 · 1 comment
Assignees
Labels
Milestone

Comments

@yshumy
Copy link

yshumy commented Mar 25, 2025

搜索删除*号会连带删除块内其他内容

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

1.sy.zip

删除*号前:

Image

删除后:

Image

Expected result

多次复现。

Screenshot or screen recording presentation

No response

Version environment

- Version: 版本3.1.25
- Operating System: Mac
- Browser (if used):edge

Log file

2025/03/25 09:06:34 tree.go:214: block id is invalid [id=], stack: [ github.com/siyuan-note/siyuan/kernel/model.LoadTreeByBlockID({0x0, 0x0})
/Users/Vanessa/Work/Code/siyuan/kernel/model/tree.go:213 +0x148
github.com/siyuan-note/siyuan/kernel/model.getNodeByBlockID(0x14000501008?, {0x0, 0x0})
/Users/Vanessa/Work/Code/siyuan/kernel/model/attribute_view.go:3352 +0x38
github.com/siyuan-note/siyuan/kernel/model.getAttrViewViewByBlockID(0x1400d129480, {0x0?, 0x140085ad538?})
/Users/Vanessa/Work/Code/siyuan/kernel/model/attribute_view.go:3608 +0x28
github.com/siyuan-note/siyuan/kernel/model.addAttributeViewBlock(0x195cad644a6, {0x14015e0aac7, 0x16}, {0x0, 0x0}, {0x1400dd20ba0, 0x16}, {0x1400dd20ca8?, 0x16?}, {0x0, ...}, ...)
/Users/Vanessa/Work/Code/siyuan/kernel/model/attribute_view.go:1951 +0x574
github.com/siyuan-note/siyuan/kernel/model.AddAttributeViewBlock(0x1400cdb88a0, {0x140085adde0, 0x1, 0xa?}, {0x14015e0aac7, 0x16}, {0x0, 0x0}, {0x1400dd20ba0, 0x16}, ...)
/Users/Vanessa/Work/Code/siyuan/kernel/model/attribute_view.go:1889 +0x2b0
github.com/siyuan-note/siyuan/kernel/model.(*Transaction).doInsert(0x1400cdb88a0, 0x1400b0ec160)
/Users/Vanessa/Work/Code/siyuan/kernel/model/transaction.go:1130 +0xdb8
github.com/siyuan-note/siyuan/kernel/model.performTx(0x1400cdb88a0)
/Users/Vanessa/Work/Code/siyuan/kernel/model/transaction.go:176 +0x2d4
github.com/siyuan-note/siyuan/kernel/model.flushTx(0x1400cdb88a0)
/Users/Vanessa/Work/Code/siyuan/kernel/model/transaction.go:95 +0xe8
github.com/siyuan-note/siyuan/kernel/model.flushQueue()
/Users/Vanessa/Work/Code/siyuan/kernel/model/transaction.go:80 +0x34
created by github.com/siyuan-note/siyuan/kernel/model.init.5 in goroutine 1
/Users/Vanessa/Work/Code/siyuan/kernel/model/transaction.go:73 +0x24

]
W 2025/03/25 09:06:34 block.go:312: block [20221121130350-axc2q4b] not found
I 2025/03/25 09:08:16 queue.go:125: database op tx [67938ms]
E 2025/03/25 09:08:37 blocktree.go:509: sql exec [DELETE FROM blocktrees WHERE id = ?] failed: database is locked
E 2025/03/25 09:08:46 blocktree.go:509: sql exec [DELETE FROM blocktrees WHERE id = ?] failed: database is locked
W 2025/03/25 09:08:47 transaction.go:110: op tx [16591ms]
I 2025/03/25 09:09:06 queue.go:125: database op tx [49850ms]
I 2025/03/25 09:10:20 queue.go:125: database op tx [74063ms]
W 2025/03/25 09:28:17 transaction.go:110: op tx [2592ms]
W 2025/03/25 09:37:55 file.go:274: ls elapsed [163ms]
W 2025/03/25 09:39:24 transaction.go:110: op tx [2764ms]
I 2025/03/25 09:47:24 queue.go:125: database op tx [2224527ms]
I 2025/03/25 09:48:02 queue.go:125: database op tx [38090ms]
I 2025/03/25 09:48:42 queue.go:125: database op tx [39735ms]
W 2025/03/25 09:49:14 transaction.go:110: op tx [2477ms]
I 2025/03/25 09:50:02 queue.go:125: database op tx [79324ms]
W 2025/03/25 09:51:22 session.go:408: [/api/search/fullTextSearchBlock] elapsed [15926ms]
I 2025/03/25 09:51:22 queue.go:125: database op tx [80847ms]
I 2025/03/25 09:56:44 box.go:77: auto stat [trees=10740, blocks=2937369, dataSize=14.08 GB, assetsSize=12.8 GB]
I 2025/03/25 09:56:44 disk.go:33: disk usage [total=245.11 GB, used=213.64 GB, free=31.48 GB]
I 2025/03/25 09:56:45 queue.go:125: database op tx [322776ms]
I 2025/03/25 09:57:58 queue.go:125: database op tx [72654ms]
I 2025/03/25 09:58:28 queue.go:125: database op tx [29895ms]
I 2025/03/25 09:58:59 queue.go:125: database op tx [30980ms]
I 2025/03/25 10:00:08 queue.go:125: database op tx [69055ms]
W 2025/03/25 10:05:16 session.go:408: [/api/search/fullTextSearchBlock] elapsed [23133ms]
I 2025/03/25 10:11:41 queue.go:125: database op tx [693045ms]
W 2025/03/25 10:16:49 transaction.go:110: op tx [9041ms]
W 2025/03/25 10:18:42 transaction.go:110: op tx [7617ms]
I 2025/03/25 10:25:11 conf.go:617: exiting kernel [force=false, setCurrentWorkspace=true, execInstallPkg=0]
I 2025/03/25 10:25:11 database.go:1318: closed database
I 2025/03/25 10:25:11 conf.go:1057: cleared workspace temp
I 2025/03/25 10:25:12 sync.go:798: sync websocket closed
I 2025/03/25 10:25:12 broadcast.go:444: close broadcast session in channel [sy-f-misc] with status code 1001:
I 2025/03/25 10:25:12 conf.go:687: exited kernel
I 2025/03/25 10:25:14 working.go:178:
___ ___ ___ ___
/ /\ ___ ___ //\ / /\ //
/ /:/_ / /\ //| \ :\ / /::\ \ :
/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ /
/::\ | |:| ___ \ :\ / /://::\ __:
//:/ /:/:\ _/:_ ||:| /
/\ __:\ /
/:/ /:/:\ /_/::::::::
\ :/:/
/:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~~/
\ ::/ /:/ _::/ ~:\ \ :\ /:/ \ ::/ \ :\ ~~~
_
/ /:/ //:/ \ :\ \ :/:/ \ :\ \ :
/
/:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2025/03/25 10:25:14 runtime.go:87: kernel is booting:
* ver [3.1.25]
* arch [arm64]
* os [darwin]
* pid [26171]
* runtime mode [prod]
* working directory [/Applications/SiYuan.app/Contents/Resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [/Users/i/思源]
I 2025/03/25 10:25:14 conf.go:129: loaded conf [/Users/i/思源/conf/conf.json]
I 2025/03/25 10:25:14 conf.go:408: repo key [ff3c7ffdb79d86d1e5ac4afe6dd0f8504e25ee3f]
I 2025/03/25 10:25:14 conf.go:473: OpenAI API enabled
userAgent=SiYuan/3.1.25 std/darwin
baseURL=https://api.minimax.com/v1/chat/completions
timeout=30s
proxy=
model=MiniMax-Text-01
maxTokens=1000
temperature=1.2
maxContexts=7
I 2025/03/25 10:25:15 conf.go:520: user has disabled [Google Analytics]
I 2025/03/25 10:25:15 runtime.go:139: use network proxy [system]
I 2025/03/25 10:25:15 serve.go:209: kernel [pid=26171] http server [127.0.0.1:65035] is booting
I 2025/03/25 10:25:15 working.go:543: database [/Users/i/思源/temp/siyuan.db] size [10.07 GB]
I 2025/03/25 10:25:15 working.go:543: database [/Users/i/思源/temp/blocktree.db] size [740.46 MB]
I 2025/03/25 10:25:15 working.go:543: database [/Users/i/思源/temp/history.db] size [248.45 MB]
I 2025/03/25 10:25:15 working.go:543: database [/Users/i/思源/temp/asset_content.db] size [2.08 MB]
I 2025/03/25 10:25:15 pandoc.go:146: built-in pandoc [ver=3.5, bin=/Users/i/思源/temp/pandoc/bin/pandoc]
I 2025/03/25 10:25:15 conf.go:1136: pandoc initialized, set pandoc bin to [/Users/i/思源/temp/pandoc/bin/pandoc]
I 2025/03/25 10:25:15 conf.go:874: tree/block count [10740/2937356]
I 2025/03/25 10:25:15 working.go:224: kernel booted
I 2025/03/25 10:25:16 fixedport.go:35: fixed port service [127.0.0.1:6806] is running
I 2025/03/25 10:25:17 font.go:58: loaded system fonts [207] in [1259ms]
I 2025/03/25 10:25:17 box.go:77: auto stat [trees=10740, blocks=2937356, dataSize=14.08 GB, assetsSize=12.8 GB]
I 2025/03/25 10:25:17 disk.go:33: disk usage [total=245.11 GB, used=213.57 GB, free=31.55 GB]
W 2025/03/25 10:25:18 file.go:356: list doc tree [/] build docs [3988] elapsed [831ms]
W 2025/03/25 10:25:18 file.go:356: list doc tree [/] build docs [3988] elapsed [1142ms]
W 2025/03/25 10:25:30 file.go:356: list doc tree [/] build docs [3988] elapsed [789ms]
I 2025/03/25 10:25:38 working.go:543: database [/Users/i/思源/temp/siyuan.db] size [10.07 GB]
I 2025/03/25 10:25:38 working.go:543: database [/Users/i/思源/temp/blocktree.db] size [740.46 MB]
I 2025/03/25 10:25:38 blocktree.go:75: reinitialized database [/Users/i/思源/temp/blocktree.db]
I 2025/03/25 10:25:39 database.go:109: reinitialized database [/Users/i/思源/temp/siyuan.db]
I 2025/03/25 10:25:48 index.go:220: rebuilt database for notebook [20221019201840-d3c62dv] in [8.50s], tree [count=5451, size=349.47 MB]
I 2025/03/25 10:25:48 index.go:220: rebuilt database for notebook [20221024092316-4tnxm9j] in [0.04s], tree [count=40, size=748.76 kB]
I 2025/03/25 10:25:50 queue.go:125: database op tx [10148ms]
I 2025/03/25 10:25:50 index.go:220: rebuilt database for notebook [20221025093810-vo99qxv] in [1.46s], tree [count=480, size=43.93 MB]
I 2025/03/25 10:25:53 index.go:220: rebuilt database for notebook [20221030005740-0tj9riv] in [2.03s], tree [count=1074, size=86.3 MB]
I 2025/03/25 10:25:55 index.go:220: rebuilt database for notebook [20221104051313-y9kbq59] in [1.16s], tree [count=391, size=51.37 MB]
I 2025/03/25 10:25:57 index.go:220: rebuilt database for notebook [20221107101642-s9rdujw] in [0.15s], tree [count=33, size=1.84 MB]
I 2025/03/25 10:26:14 index.go:220: rebuilt database for notebook [20230217104456-zdws2kc] in [15.03s], tree [count=893, size=462.16 MB]
I 2025/03/25 10:26:22 index.go:220: rebuilt database for notebook [20240414025119-08stfx9] in [3.24s], tree [count=1597, size=86.4 MB]
I 2025/03/25 10:26:29 index.go:220: rebuilt database for notebook [20240501121203-5dlttk6] in [1.35s], tree [count=693, size=36.34 MB]
I 2025/03/25 10:26:33 index.go:220: rebuilt database for notebook [20250321220634-7u8dktc] in [0.16s], tree [count=87, size=2.56 MB]
I 2025/03/25 10:26:37 index.go:220: rebuilt database for notebook [20250324130832-do1705y] in [0.24s], tree [count=1, size=4.81 MB]
I 2025/03/25 10:26:50 index.go:290: resolved refs [7] in [4766ms]
I 2025/03/25 10:26:52 broadcast.go:444: close broadcast session in channel [sy-f-misc] with status code 1001:
I 2025/03/25 10:31:20 queue.go:125: database op tx [327416ms]
I 2025/03/25 10:47:31 queue.go:125: database op tx [971215ms]
W 2025/03/25 10:54:30 session.go:408: [/api/search/fullTextSearchBlock] elapsed [26974ms]
W 2025/03/25 10:54:47 session.go:408: [/api/search/fullTextSearchBlock] elapsed [18382ms]
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:58:21 queue.go:183: too many tasks [task.reload.protyle], ignore show its status
W 2025/03/25 10:59:07 session.go:408: [/api/search/fullTextSearchBlock] elapsed [42303ms]
W 2025/03/25 10:59:12 transaction.go:110: op tx [8822ms]
W 2025/03/25 11:00:23 session.go:408: [/api/search/fullTextSearchBlock] elapsed [15512ms]
W 2025/03/25 11:19:41 session.go:408: [/api/search/fullTextSearchBlock] elapsed [15533ms]
I 2025/03/25 11:25:33 queue.go:125: database op tx [73030ms]

2025-03-25 02:25:12 exited ui
2025-03-25 02:25:14 app is packaged [true], command line args [/Applications/SiYuan.app/Contents/MacOS/SiYuan]
2025-03-25 02:25:14 got kernel port [65035]
2025-03-25 02:25:14 ui version [3.1.25], booting kernel [/Applications/SiYuan.app/Contents/Resources/kernel/SiYuan-Kernel --port 65035 --wd /Applications/SiYuan.app/Contents/Resources]
2025-03-25 02:25:14 booted kernel process [pid=26171, port=65035]
2025-03-25 02:25:14 checking kernel version
2025-03-25 02:25:14 get kernel version failed: net::ERR_CONNECTION_REFUSED
2025-03-25 02:25:15 got kernel version [3.1.25]
2025-03-25 02:25:16 window stat [x=40, y=0, width=1880, height=1080], default [x=0, y=0, width=1536, height=864], old [x=40, y=0, width=1880, height=1080], workArea [width=1920, height=1080]
2025-03-25 02:25:16 window position [x=40, y=0]

More information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Mar 25, 2025

我可以重现问题

@88250 88250 self-assigned this Mar 25, 2025
@88250 88250 added the Bug label Mar 25, 2025
@88250 88250 added this to the 3.1.27 milestone Mar 25, 2025
@88250 88250 changed the title 搜索删除*号会连带删除块内其他内容 Find-replace escaped characters will lose content Mar 26, 2025
@88250 88250 closed this as completed Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants