ranvier-fsharp
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 10 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Demand-driven incremental F# language server powered by Ranvier, compatible with Ionide and LSP editors.
ranvier-fsharp
F# tooling that checks code one declaration at a time, built on Ranvier's reactive graph and fickle-fsharp, a fork of FSharp.Compiler.Service with declaration-level checking. An edit inside a function or binding re-checks that declaration, and stops there when its inferred signature is unchanged.
Massive Props to the Ionide Team:
Ranvier.AutoCompletewould not exist without the talent and dedication of the Ionide maintainers and contributors. The language server surface, protocol handling, workspace loading, analyzers, code actions, and editor feature behavior in this repository are largely based on and adapted from their landmark work across FsAutoComplete (FSAC), Ionide.LanguageServerProtocol, Ionide.ProjInfo, and ionide-vscode-fsharp. Whileranvier-fsharpintroduces a new declaration-incremental Ranvier checking graph underneath, the rich F# IDE experience it delivers stands squarely on the foundation Ionide built for the F# community. See Acknowledgements & Attribution for full credit.
Building from source
Use ./build.sh --schema to list commands and ./build.sh build --explain to inspect the build
plan. Use ./build.sh tui for the interactive interface or --json for structured output.
Use ./build.sh (or .\build.cmd on Windows) for repository commands. The first run publishes
a native runner and later calls reuse it until a Build input changes. See the build guide.
The tools
|
|
Ranvier for F#: a VS Code extension that draws the reactive graph of your Ranvier code: what each write runs, what wakes each effect, and which writes are hazards. It runs alongside Ionide, on
|
|
|
|
Which one you want
| You want | Use |
|---|---|
| F# in Neovim, Helix, Zed, Emacs, or VS Code with Ionide | ranvierautocomplete |
| To see what your Ranvier code's writes run and wake, and its hazards, in VS Code | Ranvier for F#, with ranvierautocomplete as Ionide's server |
| F# type checks, symbols, references and renames for a coding agent | rfs |
| The checker, or the whole language server, inside your own .NET code | Ranvier.FSharp.* |
Why declaration-incremental checking?
Traditional F# language servers re-typecheck entire files (and downstream files) on edits or retain heavy compiler TcState / FSharpCheckFileResults graphs across open buffers. ranvier-fsharp models F# parsing, dependency extraction, declaration-level type-checking, symbol uses, and cross-project signatures as a reactive Ranvier computation graph:
- Declaration-level incremental checking: Edits inside a function or binding body re-check only the affected declaration (
~1.7–12.6declarations/edit instead of the whole file) and stop propagation immediately when the inferred signature is unchanged. - Zero compiler-object retention at rest: Diagnostics, hovers, semantic classifications, symbol uses, and signature projections are extracted eagerly into compact immutable records;
FSharpCheckFileResultsare never retained on the heap. - Live in-memory cross-project propagation: Unsaved buffer edits (in LSP) and saved disk edits (in
rfs) propagate acrossProjectReferenceboundaries in memory without rebuilding DLLs on disk. - Causal graph inspection (
rfs/why):.Tracedpackages (Ranvier.FSharp.Checker.Traced,Ranvier.FSharp.Server.Traced) record causal node labels so callers can inspect the exact dependency path from changed inputs to any declaration's check.
Documentation
ranvierautocomplete: installing it, setting it up in each editor, and every setting.- Ranvier analysis: the opt-in hints, lenses and hazard warnings for code that uses Ranvier, and the graph commands.
- Colour swatches: which colour literals the server finds, and how the picker writes them back.
- The preview commands,
ranvier.preview.listandranvier.preview.generate: a file's or a project's Ranvier.View components, and the generated props file that previews one, with the Ranvier analysis on or off. Ranvier for F# runs them.
- Ranvier for F#: the VS Code extension.
rfs: the agent tool's guide, from installing it to the process monitor.- Agent reference: the short operational reference written for agents.
- MCP or the CLI: the 28-trial study behind choosing between them.
- Agent skills: rfs for using it, setup-rfs for installing it.
Ranvier.FSharp.*: the packages, embedding them, and the traced builds.- Building, packing and releasing: from the
fickle-fsharpfork to the release tags. - Banners: how the cards on these pages are drawn.
Acknowledgements & Attribution
ranvier-fsharp stands on the shoulders of the Ionide team (github.com/ionide), without whom this project simply would not be possible. Over more than a decade of open-source stewardship, the Ionide maintainers and contributors designed, refined, and maintained the modern cross-editor F# developer experience — and the code in this repository is largely based on their talented work:
- FsAutoComplete (FSAC) (Apache-2.0 — Tomas Petricek, Ben Winkel, Igor Siguta, Robin Neatherway, Dave Thomas, Krzysztof Cieślak, Chet Husk, Jimmy Byrd, Florian Verdonck, and all FSAC contributors):
Ranvier.FSharp.Serverdraws heavily on FSAC's architecture, protocol conventions, and feature semantics — including hover & signature formatting, completion & auto-open namespace edits, semantic token mapping, inlay hints, code lenses, pipeline/inline value hints, navigation & rename rules, built-inFSAC0001–FSAC0004analyzers, quick fixes & stub-generation code actions, and the customfsharp/*(workspacePeek,workspaceLoad,project,lineLens,pipelineHint,documentation*) protocol surface. - Ionide.LanguageServerProtocol (MIT — Krzysztof Cieślak & Ionide contributors): Provides the strongly typed LSP protocol types and serialization contracts used across
Ranvier.FSharp.Server. - Ionide.ProjInfo (MIT — Enrico Sada, Chet Husk & Ionide contributors): Powers MSBuild SDK discovery (
MSBuildLocator), design-time F# project evaluation, and.slninspection inRanvier.FSharp.Projects. - ionide-vscode-fsharp (MIT — Krzysztof Cieślak, Chet Husk, Jimmy Byrd & Ionide contributors): The flagship F# extension for VS Code whose
FSharp.fsac.netCoreDllPathintegration makesranvierautocompletea seamless drop-in experience.
Special thanks as well to:
- The F# Compiler &
FSharp.Compiler.ServiceTeam (dotnet/fsharp,.NET Foundationand contributors), upon whichfickle-fsharpbuilds declaration-level incremental type-checking. - Fantomas (Florian Verdonck, Dave Thomas & fsprojects contributors) for F# source formatting.
Full upstream copyright and license notices are included in THIRD-PARTY-NOTICES.md (distributed in every NuGet package and release archive).
License
MIT — Copyright (c) 2026 Shayan Habibi. See THIRD-PARTY-NOTICES.md for third-party attribution and Apache-2.0 / MIT notices for adapted upstream components.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi



