Skip to content

LSP follow-ups: rename scoping, disk refresh before rename, implicit-method blockers, installed-layout errors - #699

Merged
blacktrs merged 5 commits into
mainfrom
fix/lsp-followups
Nov 15, 2026
Merged

blacktrs merged 5 commits into
mainfrom
fix/lsp-followups

Conversation

@blacktrs

Copy link
Copy Markdown
Contributor

Summary

Follow-ups from the LSP server review.

Fixes #518, Fixes #519, Fixes #520, Fixes #521

Verification

  • bin/build twice, identical hash.
  • tests/semantic 744/0 (new Workspace + LSP-level rename tests), tests/cli ok, tests/parser 123/123, tests/lsp/e2e.php 13/13.
  • Not run: AOT suite (CI), difftest, Linux gate, full install_smoke.

…le didSave

Rename now compares mtime and size of every closed file with the values recorded at index time, re-indexes the ones that differ, drops deleted ones and indexes new files under the root. didSave re-indexes a closed file. Watched-file events were already handled.

Fixes #520
…se magic and implicit interface methods

A heredoc or parse error blocks a rename only in the file under the cursor or in a file whose text mentions the symbol (case-insensitive), so indexed vendor code no longer blocks every rename. Renaming a __* method or a method of ArrayAccess, Iterator, IteratorAggregate, Countable or JsonSerializable is refused (magic-method, implicit-interface-method:<Interface>) because the implicit callers are not found.

Fixes #519
Fixes #521
…gnatures are missing; smoke-test lsp on the installed layout

The prelude and stdlib .sig are not embedded: the compiler needs the same installed layout (lib/prelude, lib/manticore_stdlib.o.sig) for every command, so a bare copy cannot work. The server now exits 1 with the exact paths it looked for. install_smoke covers initialize/shutdown from cwd / and through a symlink, and the bare-copy error.

Fixes #518
…ng a busy /tmp outran the 20 s read timeout)
@blacktrs
blacktrs merged commit 76fc258 into main Nov 15, 2026
149 of 153 checks passed
@blacktrs
blacktrs deleted the fix/lsp-followups branch November 15, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant