Repository navigation
LSP follow-ups: rename scoping, disk refresh before rename, implicit-method blockers, installed-layout errors - #699
Merged
Merged
Conversation
…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
… installed layout
…ng a busy /tmp outran the 20 s read timeout)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-ups from the LSP server review.
ClosedFiles::refresh());textDocument/didSavehandled.uncertainSitesForuses the same scoping.__*magic methods and of methods PHP calls implicitly (ArrayAccess, Iterator, IteratorAggregate, Countable, JsonSerializable, across the override family) is refused with a clear reason.manticore lspwithoutlib/prelude/ stdlib.sigbeside it exits 1 naming the expected paths and theMANTICORE_PRELUDE/MANTICORE_STDLIB_SIGoverrides;tools/install_smoke.shcovers lsp initialize/shutdown from/, through a symlink, and the bare-copy error. Embedding the prelude is a separate decision.tests/lsp/e2e.phpused/tmpas the workspace root; indexing a busy/tmpoutran the 20 s read timeout (2 FAIL on main too). Now an empty root.Fixes #518, Fixes #519, Fixes #520, Fixes #521
Verification
bin/buildtwice, identical hash.