Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug]: IntelliJ IDEA not detected on macOS when the Toolbox app bundle has a version in its name

未关闭 适合新手
#15,933 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Sypher760-gif 已经在做这个了。

开始于 2026年10月5日。

  • #16246 来自 @Sypher760-gif —— 未关闭

评估

难度
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 内容生成。

描述

bug via-triage
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
  1. 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.
  2. Have the Toolbox shell script named anything other than idea. Toolbox generated idea1 for me.
  3. 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。