簡體   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