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

Remove the target docx file when exporting #8822

Closed
3 tasks done
choyy opened this issue Jul 26, 2023 · 5 comments
Closed
3 tasks done

Remove the target docx file when exporting #8822

choyy opened this issue Jul 26, 2023 · 5 comments
Assignees
Milestone

Comments

@choyy
Copy link

choyy commented Jul 26, 2023

导出文档出现“工作空间下的文件被第三方软件占用”

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

导出docx文件后,打开导出的docx文件
再次导出该docx文件到相同路径,提示:

工作空间下的文件正在被第三方软件(比如同步盘 iCloud/OneDrive/Dropbox/Google Drive/坚果云/百度网盘/腾讯微云等)扫描读取占用,继续使用会导致数据损坏,思源内核已经安全退出。

Expected result

应提示docx文件被占用,而不应该退出内核

Screenshot or screen recording presentation

No response

Version environment

- Version: 
- Operating System: 
- Browser (if used):

Log file

More information

No response

@88250
Copy link
Member

88250 commented Jul 26, 2023

为了保险起见,只要工作空间路径下的文件读写出错都会退出内核。

@88250 88250 closed this as completed Jul 26, 2023
@choyy
Copy link
Author

choyy commented Jul 26, 2023

导出的docx跟工作空间没关系了,这有点过了

@88250
Copy link
Member

88250 commented Jul 26, 2023

有关系的,是从工作空间 temp 路径下复制文件到目标路径上。

@choyy
Copy link
Author

choyy commented Jul 26, 2023

但对用户来讲这样直接退内核太粗暴了,而且还不容易找到啥原因

@88250
Copy link
Member

88250 commented Jul 26, 2023 via email

@88250 88250 reopened this Jul 26, 2023
@88250 88250 changed the title 导出文档出现“工作空间下的文件被第三方软件占用” Detect target file occupancy when exporting Jul 26, 2023
@88250 88250 self-assigned this Jul 26, 2023
@88250 88250 added this to the 2.9.8 milestone Jul 26, 2023
@88250 88250 changed the title Detect target file occupancy when exporting Remove the target file when exporting Jul 26, 2023
@88250 88250 changed the title Remove the target file when exporting Remove the target docx file when exporting Jul 26, 2023
@88250 88250 closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants