Python 3.14 webbrowser regression when launching vscode:// URI on macOS
未關閉
還沒有人認領這個 Issue。
3.14
3.15
pending
stdlib
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
In Python 3.13.13 on macOS 26.3.1, I run __import__("webbrowser").open("vscode://"): it opens Microsoft VS Code
Same machine, in Python 3.14.2, same code: opens Chrome instead
I observe the same behaviour with Python 3.15.0a8
One line test case (using uv):
uv run --no-project --python=3.14 python3 -c '__import__("webbrowser").open("vscode://")'
In my actual use case, the URI is more complex, something like vscode://vscode-remote/ssh-remote+MYDEVBOX.example.com/workspaces/MYPROJECT.code-workspace – but vscode:// is enough to reproduce it
CPython versions tested on:
3.14
Operating systems tested on:
macOS
Linked PRs
- gh-155859
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 webbrowser.open() 進入點開始,在 macOS 上使用 Python 3.14 和提供的 uv 命令重現問題。針對 vscode:// URI,將其行為與 Python 3.13 進行比較;當該 URI 啟動 VS Code 而不是 Chrome 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- macos, python
- 領域
- desktop-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100