Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: intellij not being visible even though it's installed #1828

Closedtomaspiaggio(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/1828/headopened View on GitHub

What Changed

Small bug not finding Intellij IDEA even though it's installed if the CLI is not present.

I didn't went ahead and implemented windows and linux because the changes would have been much greater and I'm trying to adhere to the small contributions or bugs guideline. I'm up to do it if you want though (I'm not really sure if this is a problem in other platforms). Open to feedback as well.

Why

There's a bug not finding Intellij IDEA on Mac.

UI Changes

Here's the fixed result: image

As you can see in this image, I have Intellij installed and open (running it with npx t3 so you can see the difference) but it's not visible on the dropdown.

Screenshot 2026-04-07 at 15 35 55

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Low Risk Low risk, localized to editor detection/launch logic on macOS; main risk is incorrect .app path assumptions causing editors to appear/launch unexpectedly.

Overview Fixes IntelliJ IDEA not appearing/launching on macOS when its CLI (idea) is not on PATH.

Adds optional appName to editor definitions plus a new isAppInstalled check for /Applications/<app>.app, and updates resolveAvailableEditors/resolveEditorLaunch to fall back to open -a <appName> --args ... when the app bundle exists. Tests are updated/extended to cover the new macOS fallback behavior.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0a4a35d6c4d4709c50ae8cf1e1beb2390d5e5be0. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix IntelliJ not appearing in editor list when CLI is missing but app is installed on macOS

  • Adds appName metadata to the IntelliJ IDEA entry in EDITORS and a new isAppInstalled helper that checks for .app bundles in /Applications on macOS.
  • resolveAvailableEditors now includes editors whose .app bundle is detected even when no CLI command is found.
  • resolveEditorLaunch falls back to open -a <AppName> --args ... on macOS when the CLI is unavailable but the .app bundle is present, instead of returning the unavailable CLI command.
Macroscope summarized 0a4a35d.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 3b832374-d1f0-44ea-b900-20d14e76b6cc

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved

      This is a straightforward bug fix that adds macOS .app bundle detection as a fallback for editor detection. The changes are self-contained to editor launching logic with clear intent. The unresolved review comment is a low-severity concern about test coverage in CI, not a production code issue.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Cursor Bugbot has reviewed your changes and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0a4a35d6c4d4709c50ae8cf1e1beb2390d5e5be0. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -221,3 +226,21 @@
      221226 }),
      222227 );
      223228
      229+ it.effect("falls back to open -a on macOS when CLI is missing but .app is installed", () =>
      230+ Effect.gen(function* () {
      231+ const idea = EDITORS.find((e) => e.id === "idea");
      232+ assert.isDefined(idea);
      233+
      234+ if (!isAppInstalled(idea, "darwin")) return;
      235+
      236+ const launch = yield* resolveEditorLaunch(
      237+ { cwd: "/tmp/workspace", editor: "idea" },
      238+ "darwin",
      239+ { PATH: "" },
      240+ );
      241+ assert.deepEqual(launch, {
      242+ command: "open",
      243+ args: ["-a", "IntelliJ IDEA", "--args", "/tmp/workspace"],
      244+ });
      245+ }),
      246+ );

      New tests silently pass without any assertions

      Low Severity

      Both new tests guard all their assertions behind if (!isAppInstalled(idea, "darwin")) return;, which checks the real filesystem for /Applications/IntelliJ IDEA.app. On any non-macOS machine or any macOS machine without IntelliJ installed (i.e., virtually every CI runner), the tests early-return and pass with zero assertions executed. This means the open -a fallback code path has no regression protection in CI. Since isAppInstalled uses raw statSync rather than the Effect FileSystem service, the check can't be mocked via layers either.

      Additional Locations (1)
      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0a4a35d6c4d4709c50ae8cf1e1beb2390d5e5be0. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. Closing — IntelliJ editor support has since landed via #2475 (and #1651). Thanks!

    6. juliusmarminge closed this

Sign in to join this conversation.