Skip to content

Zed excluding Ruby LSP results from project symbol search #40294

@janko

Description

@janko

Summary

Searching Ruby symbols in a project often shows empty results.

Description

When I'm trying to search project symbols, even though Ruby LSP server returns the results, Zed doesn't display them for whatever reason.

  1. type cmd-t
  2. enter ruby class name

Expected Behavior: I should always see the class name in the result.

Actual Behavior: I see Ruby LSP returns the result, but Zed didn't display it, or it displayed it briefly.

Looking at Zed.log, I'm seeing this error:

ERROR [lsp] failed to deserialize response from language server: data did not match any variant of untagged enum WorkspaceSymbolResponse.

I'm attaching the complete relevant output: Zed.log

settings.json
{
  "features": {
    "edit_prediction_provider": "zed"
  },
  "theme": "Catppuccin Frappé",
  "buffer_font_size": 13.0,
  "tab_size": 2,
  "vim_mode": true,
  "scrollbar": {
    "cursors": false,
    "axes": {
      "horizontal": false
    }
  },
  "show_whitespaces": "boundary",
  "toolbar": {
    "quick_actions": false
  },
  "tab_bar": {
    "show": false
  },
  "use_autoclose": false,
  "pane_split_direction_horizontal": "down",
  "pane_split_direction_vertical": "right",
  "use_system_path_prompts": false,
  "lsp": {
    "tailwindcss-language-server": {
      "settings": {
        "includeLanguages": {
          "html/erb": "html",
          "ruby": "html"
        },
        "experimental": {
          "classRegex": ["\\bclass:\\s*['\"]([^'\"]*)['\"]"]
        }
      }
    }
  },
  "format_on_save": "off",
  "languages": {
    "Ruby": {
      "enable_language_server": true,
      "language_servers": [
        "ruby-lsp",
        "tailwindcss-language-server",
        "!rubocop",
        "!solargraph",
        "!steep",
        "!sorbet",
        "..."
      ]
    },
    "JavaScript": {
      "show_edit_predictions": false,
      "language_servers": ["!stimulus", "..."]
    },
    "YAML": {
      "enable_language_server": false
    },
    "Markdown": {
      "soft_wrap": "editor_width"
    },
    "Slim": {
      "remove_trailing_whitespace_on_save": false
    },
    "Shell Script": {
      "hard_tabs": false
    }
  }
}

Zed Version and System Specs

Zed: v0.208.4 (Zed)
OS: macOS 26.0.1
Memory: 8 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions