code-inspector icon indicating copy to clipboard operation
code-inspector copied to clipboard

无法正常跳转IDE

Open linxingli opened this issue 2 years ago • 7 comments

MAC使用,vscode终端报错

Failed to recognize IDE automatically, add something like CODE_EDITOR=code to the .env.local file in your project folder, or add editor: "code" to CodeInspectorPlugin config, and then restart the development server. Learn more: https://goo.gl/MMTaZt

image

linxingli avatar Feb 29 '24 09:02 linxingli

系统是 windows 还是 mac?是否有使用 wsl 等远程开发机?

zh-lx avatar Feb 29 '24 09:02 zh-lx

系统是 windows 还是 mac?是否有使用 wsl 等远程开发机?

MAC使用,无使用 wsl 等远程开发机

linxingli avatar Feb 29 '24 09:02 linxingli

系统是 windows 还是 mac?是否有使用 wsl 等远程开发机?

MAC使用,无使用 wsl 等远程开发机

应该你是 vscode 的进程名和官方版本不一致,参照 指定IDE 手动设置下 vscode 的可执行路径试试

zh-lx avatar Feb 29 '24 09:02 zh-lx

系统是 windows 还是 mac?是否有使用 wsl 等远程开发机?

MAC使用,无使用 wsl 等远程开发机

应该你是 vscode 的进程名和官方版本不一致,参照 指定IDE 手动设置下 vscode 的可执行路径试试

解决了,感谢大佬

linxingli avatar Feb 29 '24 09:02 linxingli

那使用 wsl 远程开发机怎么配置呢?

iuyang6 avatar Dec 04 '24 10:12 iuyang6

那使用 wsl 远程开发机怎么配置呢?

参考 在 wsl 中使用

zh-lx avatar Dec 04 '24 10:12 zh-lx

那使用 wsl 远程开发机怎么配置呢?

参考 在 wsl 中使用


按照文档,使用 WSL 后配置 code remote server 路径可以正常跳转没有问题。

最近我在尝试使用 Webstorm 提供的原生 WSL 集成的远程开发方案,这种方案无需在 WSL 上部署 remote server,也就是说终端环境和项目目录在 WSL 上,但是 IDE UI 及 IDE Server 都运行在实体机上面。

Image

在这种情况下即使指定了 IDE 路径目前也无法跳转,请问有什么解决办法吗

异常信息:

Could not open list-card.vue in the editor. The editor process exited with an error: spawn D:\Software\JetBrains Toolbox\WebStorm 2\bin\webstorm64.exe ENOENT. To set up the editor integration, add something like CODE_EDITOR=code to the .env.local file in your project folder, or add editor: "code" to CodeInspectorPlugin config, and then restart the development server. Learn more: https://goo.gl/MMTaZt

Image Image

will961123 avatar Mar 20 '26 01:03 will961123