Skip to content

fix(doctor): count intelephense in LSP detection#2572

Closed
idrekdon wants to merge 1 commit intocode-yeongyu:devfrom
idrekdon:fix/doctor-php-intelephense
Closed

fix(doctor): count intelephense in LSP detection#2572
idrekdon wants to merge 1 commit intocode-yeongyu:devfrom
idrekdon:fix/doctor-php-intelephense

Conversation

@idrekdon
Copy link
Copy Markdown

@idrekdon idrekdon commented Mar 14, 2026

Bug

oh-my-opencode doctor reports No LSP servers detected in PHP/Laravel environments even when intelephense is installed and PHP LSP support is available elsewhere in the package.

Current behavior

doctor only counts these LSP binaries in src/cli/doctor/checks/tools-lsp.ts:

  • typescript-language-server
  • pyright-langserver
  • rust-analyzer
  • gopls

That means a PHP-only setup can show LSP 0/4 installed and emit this warning:

No LSP servers detected
LSP-dependent tools will be limited until at least one server is installed.

Why this is misleading

PHP support already exists via intelephense, so the doctor output does not match actual supported runtime behavior. In practice, PHP/Laravel users can have working LSP tooling while doctor still says no LSP servers are installed.

Proposed fix

Add PHP to the doctor detection list:

{ id: "php", binary: "intelephense", extensions: [".php"] },

Summary by cubic

Teach oh-my-opencode doctor to detect PHP by counting intelephense as an LSP server. Fixes false "No LSP servers detected" warnings in PHP/Laravel environments and aligns the LSP summary with existing PHP support.

Written for commit c162ebb. Summary will update on new commits.

Align the doctor LSP summary with existing PHP support so Laravel and PHP setups do not get a false missing-LSP warning.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <[email protected]>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 14, 2026

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

@idrekdon
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Mar 14, 2026
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Simple addition of PHP LSP detection to a static list. No logic changes or complex code paths affected. Low risk of regression.


Since this is your first cubic review, here's how it works:

  • cubic automatically reviews your code and comments on bugs and improvements
  • Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
  • Add one-off context when rerunning by tagging @cubic-dev-ai with guidance or docs links (including llms.txt)
  • Ask questions if you need clarification on any suggestion

@acamq
Copy link
Copy Markdown
Collaborator

acamq commented Mar 16, 2026

Closing as superseded by #2588. Thank you for contributing. Feel free to open more PRs for other issues!

@acamq acamq closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants