cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

编辑器中 双击 ts文件, 无法打开, 控制台报错

Open finscn opened this issue 1 year ago • 6 comments

Cocos Creator version

3.8.3

System information

macOS

Issue description

错误信息如下:

 2  [Assets] Invalid URL
Error: Invalid URL
at Object.openCode [as open] (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/modules/engine-extensions/extensions/engine-extends/dist/handler/utils.ccc:1:3410)
at Ipc.<anonymous> (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/builtin/asset-db/dist/worker/ipc.ccc:1:526)

Relevant error log output

No response

Steps to reproduce

Minimal reproduction project

No response

finscn avatar May 22 '24 06:05 finscn

应该是强制需要配置一下脚本编辑器

a1076559139 avatar May 23 '24 06:05 a1076559139

不过这个提示一点都不友好

a1076559139 avatar May 23 '24 06:05 a1076559139

已经配置了. 之前一直能打开的.

finscn avatar May 24 '24 03:05 finscn

路径里有中文或者空格吗?vscode 配置是怎么填的?看你报错的调用栈,像是没有配置脚本编辑器

yanOO1497 avatar May 24 '24 08:05 yanOO1497

@minggo @wuzhiming , 是我的问题. 我之前一直用 vscodium , 结果前几天被其他软件更新了版本 新版本路径变了. 不过 如 @a1076559139 所言, 这个提示信息能改一下就好了.

finscn avatar May 24 '24 09:05 finscn

好的。我们看下怎么能够给更好的提示。

minggo avatar May 24 '24 09:05 minggo

这个调用栈是在没有配置脚本编辑器并且也找不到系统安装的 vscode 时才会走的,在这之前已经有提示 了 image

yanOO1497 avatar May 28 '24 08:05 yanOO1497

嗯嗯,这样的提示已经比较清晰了。

minggo avatar May 29 '24 01:05 minggo