-
Notifications
You must be signed in to change notification settings - Fork 404
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
[BUG] 操作系统文件资源管理器中选中文件拖入到opensumi ide文件树中内容消失 #3615
Comments
@767746649zyy 该问题是否涉及你们的一些逻辑修改导致的?在 ide-electron 案例中能复现吗?MacOS 环境下试了一下好像没这个问题。 |
我试试看能否在 ide-electron 中复现 |
可复现 1.js 文件内容为“function a (){}” 在拖拽到右侧打开展示正确有内容如图1,拖拽到文件树的某个文件夹下展示无内容 如图2 |
opensumi版本2.27.2 2.26.8 均可复现 |
@767746649zyy 是运行 ide-electron 项目后测试,我这边无法复现这个问题。 |
你们是MacOS 环境下吗 我的是win 10系统 可复现 |
@767746649zyy 看一下执行日志,打开文件时是否会因为中文或者路径原因读取了错误的文件内容,相关代码位置见:
MacOS 下确实还复现不了这个问题.. |
@767746649zyy 可以到具体文件这里调试一下看看,加点日志看看,目前看报错就是这个 core/packages/addons/src/node/file-drop.service.ts Lines 18 to 33 in 6416e4f
|
日志文件在哪里 没找到 |
@767746649zyy 引入一下 INodeLogger,输出一下参数看看是否有误,例如: @Autowired(INodeLogger)
private readonly logger: INodeLogger; |
描述你的问题(Describe the bug)


操作系统文件资源管理器中文件222.env拖入到opensumi ide右侧区域打开,显示正常,文件内容没丢失,如图
操作系统文件资源管理器中文件222.env拖入到opensumi ide左侧文件树区域test文件夹下并打开,显示异常,文件内容丢失,如图


复现路径(To Reproduce)
预期表现(Expected behavior)
环境信息(Environment)
The text was updated successfully, but these errors were encountered: