[Bug]: IntelliJ IDEA not detected on macOS when the Toolbox app bundle has a version in its name
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- macos, typescript
- 领域
- desktop
调研方向
从packages/shared/src/editor.ts开始,重点查看resolveEditorCommand以及现有的 Windows 版本化安装文件夹处理逻辑。检查 IntelliJ IDEA、PyCharm 和 Rider 的 macOS 路径是如何解析的。完成标准是能够检测到使用版本化应用程序包名称的 Toolbox 安装以及重命名后的 shell 脚本,从而让 T3 Code 可以打开项目。
由索引模型根据 Issue 内容生成。
描述
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
packages/contracts or packages/shared
Steps to reproduce
- On macOS, install IntelliJ IDEA through JetBrains Toolbox so the app bundle is named with its version, e.g.
~/Applications/IntelliJ IDEA 2026.1.4.app. - Have the Toolbox shell script named anything other than
idea. Toolbox generatedidea1for me. - In T3 Code, try to open a project in IntelliJ IDEA.
Expected behavior
IntelliJ IDEA is detected and opens the project.
Actual behavior
T3 Code reports that IntelliJ IDEA can't be found, even though it's installed.
resolveEditorCommand in packages/shared/src/editor.ts first checks for idea on PATH. On macOS, it then only tries these exact paths:
{~/Applications,/Applications}/{IntelliJ IDEA,IntelliJ IDEA CE,IntelliJ IDEA Ultimate}.app/Contents/MacOS/idea(L42–L45)~/Library/Application Support/JetBrains/Toolbox/scripts/idea(L58)
A Toolbox bundle with the version in its name doesn't match the first check, and a renamed script doesn't match the second. The Windows branch already handles versioned folders by listing the install directories and matching entry === name || entry.startsWith(`${name} `) (L75). macOS doesn't do this. PyCharm and Rider have the same problem.
Impact
Minor bug or occasional failure
Version or commit
T3 Code (Nightly) 0.0.46-nightly.20261005.2667. I confirmed the code path on main @ f391794a.
Environment
macOS 26.6.1, JetBrains Toolbox 3.6.2, IntelliJ IDEA 2026.1.4 (installed through Toolbox)
Workaround
In Toolbox, open IntelliJ IDEA's ⋮ menu, go to Settings → Configuration → Shell script name, and set it to idea. Then restart T3 Code.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 7 小时 58 分钟
- 30 天内合并 PR
- 258
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug via-triage
难度 2/5 1-3 小时 新手友好度 72/100
pingdotgg/t3code#16413 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1 小时以内 新手友好度 85/100
capricorn86/happy-dom#2474 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
JSerwatka/letterboxd-tweaks#81 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
siyuan-note/siyuan#20165 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
polkadot-js/phishing#5716 ·
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
juice-shop/juice-shop#3662 ·
维护者通常 1 天内回复