登录 注册
其他
2,010
Stars
167
Forks
26
Watchers
280
Open Issues
MIT
许可证
Ruby
语言
2017-03-18
创建时间
2026-11-11
最近更新

项目能做什么

一款提供代码补全与分析功能的 Ruby 语言服务器(LSP)。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Solargraph

[![RSpec](https://github.com/castwide/solargraph/actions/workflows/rspec.yml/badge.svg)](https://github.com/castwide/solargraph/actions/workflows/rspec.yml)

## A Ruby Language Server

Solargraph provides a comprehensive suite of tools for Ruby programming: intellisense, diagnostics, inline documentation, and type checking.

## Online Demo

A web-based demonstration of Solargraph's autocomplete is available at https://solargraph.org/demo.

## Installation

Install the gem from the command line:

    gem install solargraph

Or add it to your Gemfile:

    gem 'solargraph', group: :development

## Using Solargraph

Plug-ins and extensions are available for the following editors:

* **Visual Studio Code**
    * Extension: https://marketplace.visualstudio.com/items?itemName=castwide.solargraph
    * GitHub: https://github.com/castwide/vscode-solargraph

* **Sublime Text**
    * Extension: https://packagecontrol.io/packages/LSP
    * GitHub: https://github.com/sublimelsp/LSP
    * Instructions: https://lsp.sublimetext.io/language_servers/#solargraph

* **Vim**
    * Github: `nvim-lspconfig`, https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#solargraph
    * GitHub: `LanguageClient-neovim`, https://github.com/autozimu/LanguageClient-neovim
    * GitHub: `coc`, https://github.com/neoclide/coc-solargraph
    * GitHub: `Vim-EasyComplete`, https://github.com/jayli/vim-easycomplete

* **Emacs**
    * GitHub: `eglot.el`, https://github.com/joaotavora/eglot
    * GitHub: `lsp-mode.el`, https://github.com/emacs-lsp/lsp-mode

* **Eclipse**
    * Plugin: https://marketplace.eclipse.org/content/ruby-solargraph
    * GitHub: https://github.com/PyvesB/eclipse-solargraph

### Configuration

Solargraph's behavior can be controlled via optional [configuration](https://solargraph.org/guides/configuration) files. The highest priority file is a `.solargraph.yml` file at the root of the project. If not present, any global configuration at `~/.config/solargraph/config.yml` will apply. The path to the global configuration can be overridden with the `SOLARGRAPH_GLOBAL_CONFIG` environment variable.

Use `bundle exec solargraph config` to create a configuration file.

### Plugins

Solargraph supports [plugins](https://solargraph.org/guides/plugins) that implement their own Solargraph features, such as diagnostics reporters and conventions to provide LSP features and type-checking, e.g. for frameworks which use metaprogramming and/or DSLs.

For better Rails support, please consider using [solargraph-rails](https://github.com/iftheshoefritz/solargraph-rails/)

The RSpec framework is supported via [solargraph-rspec](https://github.com/lekemula/solargraph-rspec/)

### Gem Support

**Note: Before version 0.53.0, it was recommended to run `yard gems` periodically or automate it with `yard config` to ensure that Solargraph had access to gem documentation. These steps are no longer necessary. Solargraph maintains its own gem documentation cache independ
阅读完整原文

项目深度分析 规则生成(AI 未配置)

综合评分 60.5 分。该项目在“个人可实施性”维度得 45 分,“付费可能性”维度得 60.0 分,差异化空间 82.0 分(评分依据见评分卡)。

将 solargraph 改造为垂直场景 SaaS

产品构想保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。
目标用户有该需求的中小团队 / 独立站长
难度/周期中 · 2~4 周(MVP)
收费模式订阅制(如 ¥29~99/月)
竞争风险需验证付费意愿;注意许可证合规
依据 数据支持的判断:许可证与关键词显示存在商用与付费场景

面向细分需求的二次开发产品

产品构想基于 solargraph 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
castwide/vscode-solargraph 中文介绍暂未生成
A Visual Studio Code extension for Solargraph.
434 TypeScript
iftheshoefritz/solargraph-rails 中文介绍暂未生成
Solargraph plugin to add awareness of Rails-specific code
340 Ruby
neoclide/coc-solargraph 中文介绍暂未生成
Solargraph extension for coc.nvim
206 TypeScript
uplus/deoplete-solargraph 中文介绍暂未生成
deoplete.nvim source for Ruby with solargraph.
74 Python
alisnic/solargraph-arc 中文介绍暂未生成
48 Ruby
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2017-03-18,近 30 天仍在推送
社区活跃Star 2,010 / Fork 167 / Issue 280(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。