Skip to content

Clicking code class (e.g. LinkedHashMap) triggers "Application cannot be opened (-50)" error (macOS) #176

@mingchiuli

Description

@mingchiuli

Describe the bug

When clicking a class name (e.g. LinkedHashMap) in code (Java project) to jump to its definition/related resources, Zed pops up a macOS system error: "应用程序无法打开。" with error code -50.

To Reproduce

Steps to reproduce the behavior:

  1. Open a Java project in Zed (with JDK configured)
  2. Hover over a built-in class (e.g. java.util.LinkedHashMap) in code
  3. Click the class name (or use "Go to Definition" shortcut)
  4. See the macOS error popup: "应用程序无法打开。-50"

Expected behavior

Successfully jump to the class definition (or open related documentation/resource) without system errors.

Environment

  • OS: macOS [e.g. 14.2 Sonoma]
  • Zed Version: [e.g. v0.135.0]
  • Project Language: Java (JDK version: [e.g. 17.0.8])

Screenshots

Image Image

Additional context

The error code -50 is a macOS generic app launch failure (likely due to Zed failing to call the correct associated program for class resources, e.g. JDK tools/docs).

What did you expect to happen?

Show some resources, e.g. JDK docs or JDK source code.

Environment

Zed 0.219.4
5595f7ce23d51a58eb66dd025a487bbd6c75dad1

0.219.4+stable.119.5595f7ce23d51a58eb66dd025a487bbd6c75dad1

Mac OS 26.2 (25C56)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions