Repository navigation
Add NIL project tooling and compiler-backed editor navigation - #7
Merged
Merged
Conversation
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.
Ny and Matrix applications now share a project definition between command-line builds and live VS Code checks.
nil.project.jsonrecords the entrypoint, import roots, SDK and analyzer policy; the new SDK toolnilbuildprovides describe/check/build/run commands for VM and native targets. Builds require successful analysis and publish staged artifacts atomically, so a failed build cannot run an old executable.The compiler's default analyzer adds unreachable-statement and discarded standard
Option/Resultwarnings, a discoverable rule catalog, suppression and warnings-as-errors. The--workspace-stdininterface accepts bounded, versioned source snapshots. Unsaved and new Ny/Matrix imports and Ny textual includes use normal import precedence, with canonical identities and explicit input/expansion limits.Both frontends now preserve exact source name spans, and the type checker retains declaration identities and resolved occurrence bindings. The optional
--semantic-indexanalysis output powers VS Code Go to Definition for supported functions, variables, parameters and loop binders across source imports. Navigation follows the actual compiler binding through lexical shadowing, Matrix spelling normalization and mixed-language unsaved buffers. UTF-8 source spans map to editor UTF-16 ranges. The editor checks document versions, aliases and every consumed source snapshot before returning a location, and watches all indexed native dependencies.VS Code also shares project settings with builds, reports compiler diagnostics, guards fixes against source changes, and supplies project commands, tasks and manifest JSON completion. Dependency edits, closure and context changes cancel stale checks. Identical aliases coalesce, conflicting aliases fail explicitly, and closed cached models cannot block active edits.
The initial Linux project profile supports one executable with imports and full rebuilds. The source index is explicitly partial and requires successful analysis, including analyzer policy. Unsupported bindings produce no guessed destination; binary dependencies and exhausted index budgets disable the index. Fields, member dispatch, type uses, generated-source maps, semantic completion, complete references/rename, language-authored analyzer hosting and project graphs remain follow-up work. Findings F37–F41 and NIL-0009/NIL-0010 document the contracts and remaining gaps, including Matrix function-value spelling normalization.
Validation on clean commit
6b846cb: