“Open in PyCharm” does nothing after upgrading to PyCharm 2026.2 on macOS

Open 💬 1 comment Opened Aug 11, 2026 by why0210
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.803.61601 (build 6396)

What subscription do you have?

Plus

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

After upgrading PyCharm to 2026.2, clicking Open in PyCharm on a local file link no longer has any visible effect.

The Codex desktop log shows that Codex detects and invokes PyCharm, but the launcher exits with code 1:

[open-in-service] Failed to open file
errorMessage="/Applications/PyCharm.app/Contents/MacOS/pycharm exited with code 1
(--line 2028 --column 1 /Users/<user>/Documents/workspace/<project>/src/api/api.py)"

Running the same command directly returns:

unrecognized option: --line

Codex does not surface this error in the UI, so the action appears to do nothing. This worked before upgrading PyCharm.

What steps can reproduce the bug?

  1. Install or upgrade to PyCharm 2026.2 on macOS.
  2. Open a Codex task containing a clickable local file reference with a line number.
  3. Right-click the file reference.
  4. Select Open in PyCharm.
  5. Observe that PyCharm does not navigate to the file and Codex shows no error.

The command recorded in the Codex log is:

/Applications/PyCharm.app/Contents/MacOS/pycharm \
  --line 2028 \
  --column 1 \
  /Users/<user>/Documents/workspace/<project>/src/api/api.py

The target file exists and the requested line is within the file. The command exits with code 1 and prints unrecognized option: --line.

What is the expected behavior?

PyCharm should open the referenced file and navigate to the specified line and column.

If launching the IDE fails, Codex should display an actionable error instead of silently doing nothing.

Additional information

Environment

  • PyCharm: 2026.2.0.1
  • PyCharm build: PY-262.8665.369
  • macOS: 26.5.1
  • Architecture: Apple Silicon (arm64)

Regression

The feature worked before upgrading PyCharm and stopped working immediately after upgrading to PyCharm 2026.2.

The same error occurs with PYCHARM_VM_OPTIONS unset:

env -u PYCHARM_VM_OPTIONS \
  /Applications/PyCharm.app/Contents/MacOS/pycharm \
  --line 2028 \
  --column 1 \
  /Users/<user>/Documents/workspace/<project>/src/api/api.py

Opening the file without line arguments works:

open -a "PyCharm" "/Users/<user>/Documents/workspace/<project>/src/api/api.py"

Codex currently invokes the internal macOS executable directly. PyCharm 2026.2 rejects the --line and --column arguments when invoked this way. The integration may need to use the supported macOS launcher mechanism (for example, open ... --args) or otherwise update its PyCharm 2026.2 handling.

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 17 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #37361

Powered by Codex Action