Skip to content

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

Description

@saibotma

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions