繁体   English   中英

JetBrains IDE 内部 web 服务器 API 按预期停止工作(在最新的 2022.3.1 WebStorm 上)

[英]JetBrains IDEs internal web server API stopped working as expected (on latest 2022.3.1 WebStorm)

基于 IntelliJ 的 IDE 运行内置 web 服务器,通常在端口 63342 上运行。

可以在这里找到假定支持的 API :

 * @apiExample {curl} Absolute path
 * curl http://localhost:63342/api/file//absolute/path/to/file.kt
 *
 * @apiExample {curl} Relative path
 * curl http://localhost:63342/api/file/relative/to/module/root/path/to/file.kt
 *
 * @apiExample {curl} With line and column
 * curl http://localhost:63342/api/file/relative/to/module/root/path/to/file.kt:100:34
 *
 * @apiExample {curl} Query parameters
 * curl http://localhost:63342/api/file?file=path/to/file.kt&line=100&column=34

或漂亮的印刷在这里

这个 API 在 WebStorm 2020.3 上运行良好(我安装它只是为了检查):

在此处输入图像描述

但是它在 2022.1(或可能更早)上按预期停止工作:

在此处输入图像描述

结果,任何基于此 API 的扩展(例如我正在使用的这个)都停止工作。

如果内置的web服务器的API发生了变化,我找不到它在哪里记录(而且chatGPT不知道,因为它太新了)。

从 2020 年 3 月 16 日开始,我发现API如上所述按预期工作的最新迹象。

请注意,这不是重复的: 这个线程是旧的并且不相关,这个问题与需要在设置中检查“允许未签名的请求”的安全更新无关。

在 2022.3 /api/file/被移动到IDE 远程控制插件,现在需要 API 才能工作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM