Skip to content
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

v3.1.0-dev7 创建dailynote不加载模板 #11834

Open
3 tasks done
Achuan-2 opened this issue Jun 27, 2024 · 21 comments
Open
3 tasks done

v3.1.0-dev7 创建dailynote不加载模板 #11834

Achuan-2 opened this issue Jun 27, 2024 · 21 comments

Comments

@Achuan-2
Copy link
Member

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

v3.1.0-dev7 创建dailynote不加载模板,创建的dailynote始终为空白文档

Expected result

能加载模板

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.1.0 dev7
- Operating System: Win 11
- Browser (if used):

Log file

no need

More information

No response

@88250
Copy link
Member

88250 commented Jun 27, 2024

我这里测试正常,请录屏补充重现步骤。

@TCOTC
Copy link
Contributor

TCOTC commented Jun 27, 2024

我这里没测试。建议先确认一下创建 dailynote 的笔记本设置里的模板路径,以及对应路径下的实际文件

@Achuan-2
Copy link
Member Author

模板路径和文件没有问题,因为我改为dev1,创建dailynote就是正常的加载模板

@88250
Copy link
Member

88250 commented Jun 27, 2024

需要描述一下重现步骤,谢谢。

@Achuan-2
Copy link
Member Author

复现步骤就是正常的创建dailynote
包含使用alt➕5快捷键和使用顶栏的按钮点击创建dailynote,创建的dailynote文档内容为空白,没有加载模板内容,更换不同模板也是一样问题

@TCOTC

This comment was marked as outdated.

@TCOTC

This comment was marked as outdated.

@88250
Copy link
Member

88250 commented Jun 28, 2024

我这里还是重现不了……

@TCOTC

This comment was marked as outdated.

@88250
Copy link
Member

88250 commented Jun 28, 2024

@TCOTC 模板路径那里不要加 /data/templates/

image

@TCOTC
Copy link
Contributor

TCOTC commented Jun 28, 2024

噢,好久没用过日记了,确实只用填文件名就行了。

那我没能复现

@Achuan-2
Copy link
Member Author

Achuan-2 commented Jun 28, 2024

那等新版本我再看看吧,之前数据库的问题(#11792)也是等下个dev版本就好了

@88250
Copy link
Member

88250 commented Jun 30, 2024

dev8 已经发布,请帮忙测试。

@Achuan-2
Copy link
Member Author

Achuan-2 commented Jun 30, 2024

dev 8 创建dailynote依然不会加载模板
路径改为默认的/日记/{{now | date "2006/01"}}/{{now | date "2006-01-02"}},也是一样(我之前用/Diary/{{now | date "2006/2006-01"}}/{{now | date "2006-01-02 Mon"}}),不会是日记模板的问题,因为同样的设置,我在之前版本是可以正常使用的
Clip_2024-06-30_16-13-23

而且发现如果指定的dailynote路径不存在,不会自动生成

Clip_2024-06-30_16-07-31
而且测试过程中,遇到过两次卡死问题,应该是点击文档树的【定位打开的文档】触发的,卡死的时候所有界面元素都无法点击

@Achuan-2
Copy link
Member Author

log文件
siyuan.log

@88250
Copy link
Member

88250 commented Jun 30, 2024

从日志上看,确实有相关报错,代码上面暂时看不出问题(是很早之前的代码)。

如果能在新的工作空间重现该问题,麻烦将工作空间打包上传,多谢。

@Achuan-2
Copy link
Member Author

Achuan-2 commented Jun 30, 2024

新建了一个工作空间就正常了,新建日记能加载模板,日记的父文档不存在也不会报错
但是原来的工作空间依然有这个问题

@88250
Copy link
Member

88250 commented Jun 30, 2024

不大好排查,还是需要工作空间打包数据才好定位。

@Achuan-2
Copy link
Member Author

Clip_2024-07-01_00-20-47
报错的工作空间,删除今日日记后,还会报文件不存在,无法创建日记
打包工作空间我需要看看怎么缩小文件数量。

@88250
Copy link
Member

88250 commented Jun 30, 2024

好的,这个可能比较耗时,麻烦多帮忙试试。(和 assets 应该没有关系)

@Achuan-2
Copy link
Member Author

我日常只用一个笔记本,这个笔记本有大概4000个文件,我把这个笔记本关闭,另一个新笔记本就能正常创建日记了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants