Ranvier.FSharp.Checker
0.1.3
See the version list below for details.
dotnet add package Ranvier.FSharp.Checker --version 0.1.3
NuGet\Install-Package Ranvier.FSharp.Checker -Version 0.1.3
<PackageReference Include="Ranvier.FSharp.Checker" Version="0.1.3" />
<PackageVersion Include="Ranvier.FSharp.Checker" Version="0.1.3" />
<PackageReference Include="Ranvier.FSharp.Checker" />
paket add Ranvier.FSharp.Checker --version 0.1.3
#r "nuget: Ranvier.FSharp.Checker, 0.1.3"
#:package Ranvier.FSharp.Checker@0.1.3
#addin nuget:?package=Ranvier.FSharp.Checker&version=0.1.3
#tool nuget:?package=Ranvier.FSharp.Checker&version=0.1.3
Ranvier.AutoComplete (ranvierautocomplete) & Ranvier.FSharp.Agent (rfs)
Demand-driven, declaration-incremental F# Language Server Protocol (LSP) server (ranvierautocomplete) and AI coding agent CLI/MCP semantic analysis tool (rfs) built on Ranvier and fickle-fsharp (FSharp.Compiler.Service).
ranvierautocomplete is a drop-in replacement for fsautocomplete (FSAC) in Ionide for VS Code, Neovim, Helix, Zed, Emacs, and any stdio LSP client. rfs (Ranvier.FSharp.Agent) brings the same incremental F# compiler graph to Claude Code, Codex, Cursor, and CLI agent workflows over a persistent daemon with automatic stale-process reaping.
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.
Why Ranvier.AutoComplete?
Traditional F# language servers re-typecheck entire files (and downstream files) on edits or retain heavy compiler TcState / FSharpCheckFileResults graphs across open buffers. ranvierautocomplete 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 propagate across
ProjectReferenceboundaries in memory without rebuilding DLLs on disk. - Full LSP & Ionide protocol parity: Semantic highlighting (
full,full/delta,range), hover, completion (+ auto-open namespace edits), go-to definition / declaration / type definition / implementation, find references, rename (prepareRename), signature help, inlay hints, code lenses, inline/pipeline hints, colour swatches with picker write-back, document & workspace symbols, call & type hierarchy, folding & selection ranges, 12 quick-fix/refactoring families, Fantomas formatting,.slnx/.slnworkspace loading, MSBuild glob items (Compile/None/Content), F# analyzers, and Ionidefsharp/*custom endpoints.
Benchmark Highlights (ranvierautocomplete vs FSAC)
Measured on identical multi-project corpora (results/server-final/):
| Scenario | Metric | fsac-core-bg |
fsac-core-tc |
ranvierautocomplete |
|---|---|---|---|---|
mid-body |
Edit p50 / p95 (ms) | 87.5 / 291.1 | 74.9 / 261.0 | 41.3 / 104.5 |
mid-body |
Peak Working Set (MB) | 762.7 | 811.8 | 422.8 |
mid-crossproject |
Edit p50 / p95 (ms) | 74.4 / 312.8 | 41.6 / 308.2 | 32.2 / 74.4 |
mid-references |
textDocument/references p50 (ms) |
65.3 | 103.5 | 7.6 |
small-references |
textDocument/references p50 (ms) |
64.6 | 28.2 | 5.5 |
mid-openmany |
Peak Working Set (MB) | 3,120.4 | 706.2 | 441.4 |
large-cold |
Peak Working Set (MB) | 1,036.2 | 1,035.3 | 636.9 |
Prerequisites
.NET 10.0SDK (10.0.x):ranvierautocompleteruns on.NET 10and loads MSBuild in-process from an installed.NET 10SDK viaMSBuildLocator(automatically pinning a.NET 10SDK in%TEMP%/rfs-sdkeven if you also have.NET 8,.NET 9, or.NET 11preview SDKs installed). Verify at least one10.0.*SDK is installed:dotnet --list-sdks- Fantomas (optional, for document/range formatting):
textDocument/formattingandtextDocument/rangeFormattinginvokefantomas(either via a workspace.config/dotnet-tools.jsonlocal tool or a global tool onPATH):dotnet tool install -g fantomas
Installation
Option A — Install as a .NET Global Tool (Recommended for Neovim, Helix, Zed, Emacs, CLI)
From NuGet.org:
dotnet tool install -g Ranvier.AutoComplete
Or from a locally packed .nupkg (see Building & Packing from Source):
dotnet tool install -g Ranvier.AutoComplete --add-source ./artifacts/nupkg
Verify installation:
ranvierautocomplete --version
Option B — Portable Bundle (Recommended for VS Code Ionide netCoreDllPath)
Ionide for VS Code overrides FSAC via FSharp.fsac.netCoreDllPath, which expects the full path to ranvierautocomplete.dll. Either download ranvierautocomplete-portable-net10.0.zip from GitHub Releases and extract it to a permanent folder, or produce ./artifacts/publish/ranvierautocomplete.dll locally with:
pwsh -File build/pack.ps1
Option C — Consume as .NET Libraries from NuGet
All layers of ranvier-fsharp are published as composable net10.0 NuGet packages (in both zero-overhead untraced and .Traced variants):
| Package | Assembly / Namespace | Description |
|---|---|---|
Ranvier.AutoComplete |
ranvierautocomplete (.NET Tool) |
Drop-in stdio F# LSP server CLI executable for Ionide and LSP editors |
Ranvier.FSharp.Agent |
rfs (.NET Tool) |
Semantic F# CLI + MCP server backed by a shared incremental daemon and stale-process reaper |
Ranvier.FSharp.Lsp |
Rfs.Lsp |
Framing (JsonRpc), UTF-16 incremental buffer (Document), and LspClient |
Ranvier.FSharp.Projects |
Rfs.Projects |
MSBuild ProjectSpec evaluation (MSBuildLocator), .sln/.slnx workspace discovery, Glob, and bundled fickle-fsharp FSharp.Compiler.Service |
Ranvier.FSharp.Checker |
Rfs.Checker |
Demand-driven declaration-incremental F# type-checking graph (GraphHost, ProjectGraph) built on Ranvier |
Ranvier.FSharp.Checker.Traced |
Rfs.Checker |
Traced build of Ranvier.FSharp.Checker with causal node labels (ProjectGraph.Why), built on Ranvier.Traced |
Ranvier.FSharp.Server |
Rfs.Server |
Embeddable in-process F# LSP server (Server.run / Server.runWith / RanvierServer) |
Ranvier.FSharp.Server.Traced |
Rfs.Server |
Traced build of Ranvier.FSharp.Server with rfs/why causal inspection enabled |
# Embed the reactive F# type-checking graph directly:
dotnet add package Ranvier.FSharp.Checker --prerelease
# Or embed the full in-process LSP server (untraced or traced):
dotnet add package Ranvier.FSharp.Server --prerelease
# dotnet add package Ranvier.FSharp.Server.Traced --prerelease
Ranvier.FSharp.Projectsbundles the declaration-incrementalfickle-fsharpFSharp.Compiler.Service.dlldirectly inlib/net10.0/, andRanvier.FSharp.Server(.Traced) includes transitive MSBuild.targetssoMSBuildLocatorworks out of the box without manualStringToolsexclusions.
Editor Setup
1. VS Code (Ionide for F#)
Install the Ionide for F# extension (
Ionide.Ionide-fsharp).Point
FSharp.fsac.netCoreDllPathin your User or Workspacesettings.jsontoranvierautocomplete.dll:- If using the portable bundle (
build/pack.ps1or release zip):{ // Windows example: "FSharp.fsac.netCoreDllPath": "C:\\tools\\ranvierautocomplete\\ranvierautocomplete.dll", // macOS / Linux example: // "FSharp.fsac.netCoreDllPath": "/opt/ranvierautocomplete/ranvierautocomplete.dll", // Ensure VS Code semantic highlighting is enabled for F#: "editor.semanticHighlighting.enabled": true } - If installed via
dotnet tool install -g Ranvier.AutoComplete: PointFSharp.fsac.netCoreDllPathto the DLL inside the.NETtool store:- Windows:
%USERPROFILE%\.dotnet\tools\.store\ranvier.autocomplete\<version>\ranvier.autocomplete\<version>\tools\net10.0\any\ranvierautocomplete.dll - Linux / macOS:
~/.dotnet/tools/.store/ranvier.autocomplete/<version>/ranvier.autocomplete/<version>/tools/net10.0/any/ranvierautocomplete.dll
- Windows:
- If using the portable bundle (
Run
Developer: Reload Window(orF#: Restart Language Server) from the Command Palette (Ctrl+Shift+P/Cmd+Shift+P).Check the F# output channel (
View -> Output -> F#) — Ionide passes its standard FSAC CLI flags (-v,--adaptive-lsp-server-enabled,--project-graph-enabled,--use-fcs-transparent-compiler,--state-directory, etc.), all of whichranvierautocompleteaccepts seamlessly.
Recommended Optional Ionide Settings (settings.json)
{
"FSharp.fsac.netCoreDllPath": "C:\\tools\\ranvierautocomplete\\ranvierautocomplete.dll",
"editor.semanticHighlighting.enabled": true,
"FSharp.keywordsAutocomplete": true,
"FSharp.resolveNamespaces": true,
"FSharp.unusedOpensAnalyzer": true,
"FSharp.unusedDeclarationsAnalyzer": true,
"FSharp.simplifyNameAnalyzer": true,
"FSharp.unnecessaryParenthesesAnalyzer": true,
"FSharp.inlayHints.typeAnnotations": true,
"FSharp.inlayHints.parameterNames": true,
"FSharp.codeLenses.signature.enabled": true,
"FSharp.codeLenses.references.enabled": true,
"FSharp.pipelineHints.enabled": true,
// Optional: publish diagnostics for unopened files on project load (default false):
"FSharp.workspaceDiagnostics": false
}
Closed-file & downstream diagnostics: By default (
"FSharp.workspaceDiagnostics": false), live typing updates diagnostics for open editors only, closing a tab retains any real on-disk problems in the Problems panel (discarding unsaved buffer-only errors), and saving a file (Ctrl+S/Cmd+S) or external disk changes settles and publishes downstream breaks across closed files in the same and referencing projects. Set"FSharp.workspaceDiagnostics": true(or pass--workspace-diagnosticson the CLI) to also publish diagnostics for unopened files immediately on cold project load.
Colour swatches (textDocument/documentColor)
VS Code draws a swatch beside each colour the server finds, and opens its colour picker on it; a picked colour is written back in the literal's own spelling (case, digit count, # or not, uy/f suffixes, byte or [0, 1] scale). Colours are read from the parse tree alone, so they appear while a project is still loading, and in an open file no loaded project holds. Every source is on by default except unprefixed strings; "editor.colorDecorators": false hides all swatches in VS Code.
{
"FSharp.colors.enabled": true,
"FSharp.colors.strings": true, // "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
"FSharp.colors.stringsWithoutHash": false, // also "rrggbb" and "rrggbbaa"; the picker keeps them without '#'
"FSharp.colors.hexIntegers": true, // 0xfbbf24 anywhere; 8 digits only under a colour name
"FSharp.colors.hexByteOrder": "rgba", // "rgba" (CSS, RgbaColor.fromHex) or "argb" (.NET, WPF, Skia)
"FSharp.colors.members": true, // Palette.red, Colors.RebeccaPurple, Css.Color.rebeccapurple
"FSharp.colors.records": true, // { R = 251uy; G = 191uy; B = 36uy }, {| Red = 0.5; ...; Alpha = 1.0 |}
"FSharp.colors.constructors": true, // RgbaColor(0.2f, 0.4f, 0.6f, 1.0f), Color.FromArgb(128, 255, 0, 0)
"FSharp.colors.tuples": true, // let accentColor = (251, 191, 36)
"FSharp.colors.floatScale": "auto", // float channels: "auto" ([0, 1] when all are <= 1, else 0-255), "normalized" or "byte"
"FSharp.colors.hover": true // a swatch in the hover of a colour literal and of any use of a value bound to one
}
Hovering a colour literal, or a value whose declaration binds a colour (let accent = "#fbbf24", then accent anywhere), adds the colour to the tooltip: a swatch for clients that allow <span> in markdown (general.markdown.allowedTags, which Ionide sets), else its hex and rgb(...) as text. A declaration binds a colour when its body is one, a literal holding one, or a one-argument call such as hex "#e3c58a".
Record fields match in any case (r, R, Red, RED), in records, anonymous records and struct {| ... |}. Integer channels are always 0–255; floatScale decides floats, and a picked colour is written back on the same scale.
A name containing argb or rgba (Color.FromArgb, let argbAccent = 0x80FBBF24) overrides hexByteOrder for the literal it names. Constructors, tuples and 8-digit hex integers need a name containing color, colour or rgb; names for other colour spaces (hsl, lab, cmyk, ...) are left out.
2. Neovim
Important for non-Ionide clients: Generic LSP clients do not send Ionide's custom
fsharp/workspacePeek+fsharp/workspaceLoadhandshake. Pass"AutomaticWorkspaceInit": trueininit_optionssoranvierautocompleteautomatically discovers and loads.slnx,.sln, or.fsprojfiles under your workspace root on startup!
Neovim 0.11+ (vim.lsp.config)
vim.lsp.config('fsautocomplete', {
cmd = { 'ranvierautocomplete' },
filetypes = { 'fsharp' },
root_markers = { '*.slnx', '*.sln', '*.fsproj', '.git' },
init_options = {
AutomaticWorkspaceInit = true,
},
settings = {
FSharp = {
keywordsAutocomplete = true,
resolveNamespaces = true,
unusedOpensAnalyzer = true,
unusedDeclarationsAnalyzer = true,
simplifyNameAnalyzer = true,
unnecessaryParenthesesAnalyzer = true,
inlayHints = {
typeAnnotations = true,
parameterNames = true,
},
},
},
})
vim.lsp.enable('fsautocomplete')
Neovim (nvim-lspconfig)
local lspconfig = require('lspconfig')
lspconfig.fsautocomplete.setup({
cmd = { 'ranvierautocomplete' },
init_options = {
AutomaticWorkspaceInit = true,
},
settings = {
FSharp = {
keywordsAutocomplete = true,
resolveNamespaces = true,
unusedOpensAnalyzer = true,
unusedDeclarationsAnalyzer = true,
},
},
})
Neovim (Ionide-vim)
vim.g['fsharp#fsautocomplete_command'] = { 'ranvierautocomplete' }
3. Helix (~/.config/helix/languages.toml)
[language-server.fsautocomplete]
command = "ranvierautocomplete"
config = { AutomaticWorkspaceInit = true, FSharp = { keywordsAutocomplete = true, resolveNamespaces = true, unusedOpensAnalyzer = true, unusedDeclarationsAnalyzer = true } }
[[language]]
name = "fsharp"
language-servers = ["fsautocomplete"]
auto-format = false
4. Emacs (eglot / lsp-mode)
eglot
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(fsharp-mode . ("ranvierautocomplete"
:initializationOptions
(:AutomaticWorkspaceInit t
:KeywordsAutocomplete t
:ResolveNamespaces t
:UnusedOpensAnalyzer t
:UnusedDeclarationsAnalyzer t)))))
lsp-mode
(with-eval-after-load 'lsp-fsharp
(setq lsp-fsharp-server-install-dir nil)
(setq lsp-clients-fsharp-server-command '("ranvierautocomplete")))
5. Zed / Sublime LSP / Generic LSP Clients
Launch ranvierautocomplete over stdio (no flags required, or --logfile <path> for file logging) with initialization options:
{
"AutomaticWorkspaceInit": true,
"KeywordsAutocomplete": true,
"ResolveNamespaces": true,
"UnusedOpensAnalyzer": true,
"UnusedDeclarationsAnalyzer": true,
"SimplifyNameAnalyzer": true,
"UnnecessaryParenthesesAnalyzer": true
}
Configuration Reference (FSharp.*)
All settings can be passed either in LSP initializeParams.initializationOptions or dynamically via workspace/didChangeConfiguration / workspace/configuration (top-level or nested under "FSharp"):
| Setting | Type | Default | Description |
|---|---|---|---|
AutomaticWorkspaceInit |
bool |
false |
Automatically discover and load .slnx / .sln / .fsproj at rootUri on initialized (set true for non-Ionide editors) |
WorkspaceDiagnostics |
bool |
false |
Publish compiler diagnostics for unopened files across all loaded projects on load/reload (also available via --workspace-diagnostics CLI flag); live typing remains open-file-only until save |
WorkspaceModePeekDeepLevel |
int |
2 |
Directory recursion depth when scanning for solutions/projects |
ExcludeProjectDirectories |
string[] |
[".git", "node_modules", ".ionide"] |
Directory names skipped during workspace discovery |
KeywordsAutocomplete |
bool |
false |
Include F# language keywords in completion lists |
ResolveNamespaces |
bool |
false |
Offer unopened module/namespace completions with automatic open insertion |
IndentationSize |
int |
4 |
Indentation width used by code-generation code actions and formatting fallback |
UnusedOpensAnalyzer |
bool |
false |
Report unused open declarations (FSAC0001 / Unnecessary tag) |
UnusedDeclarationsAnalyzer |
bool |
false |
Report unused bindings and parameters (FSAC0003 / Unnecessary tag) |
SimplifyNameAnalyzer |
bool |
false |
Report redundant qualified prefixes (FSAC0002 / Unnecessary tag) |
UnnecessaryParenthesesAnalyzer |
bool |
true |
Report unnecessary parentheses (FSAC0004 / Unnecessary tag) |
UnionCaseStubGeneration |
bool |
false |
Enable Generate union pattern match case code actions |
RecordStubGeneration |
bool |
false |
Enable Generate record stubs code actions |
InterfaceStubGeneration |
bool |
false |
Enable Implement interface stub generation code actions |
AbstractClassStubGeneration |
bool |
true |
Enable Implement abstract class stub generation code actions |
InlayHints.TypeAnnotations |
bool |
true |
Show inferred type annotation inlay hints |
InlayHints.ParameterNames |
bool |
true |
Show parameter name inlay hints at call sites |
CodeLenses.Signature.Enabled |
bool |
true |
Show inferred signature CodeLenses above top-level bindings |
CodeLenses.References.Enabled |
bool |
true |
Show reference count CodeLenses |
PipelineHints.Enabled / InlineValues.Enabled |
bool |
true |
Provide inferred stage types along \|> pipelines |
LineLens.Enabled |
string |
"never" |
Ionide LineLens mode ("never", "replaceCodeLens", "always") |
AI Coding Agents — Ranvier.FSharp.Agent (rfs)
Ranvier.FSharp.Agent provides both a stdio MCP server (rfs mcp) and a low-overhead CLI (rfs <cmd>) sharing one per-workspace incremental compiler daemon (ProjectGraph) with deterministic stale-process reaping.
Install & Connect
# Global .NET tool (requires .NET 10 SDK)
dotnet tool install -g Ranvier.FSharp.Agent
rfs --version
Add to .mcp.json (use ["mcp", "--no-always-load"] on small or mixed-language repos):
{
"mcpServers": {
"rfs": {
"command": "rfs",
"args": ["mcp"]
}
}
}
Core Operations
- Diagnostics (
rfs check/rfs_check): Incremental file, project, or downstream errors/warnings from disk. - Type & Definition (
rfs symbol/rfs_symbol): Inferred signature, XML doc, definition, type definition, and implementations (1-basedline+--symbol <name>). - References & Calls (
rfs refs/rfs_references): Workspace-wide uses and incoming/outgoing call hierarchy. - Search & Outline (
rfs search/rfs_search): File outline or cross-project symbol search. - Semantic Rename (
rfs rename/rfs_rename): Cross-project rename (--dry-runpreview or apply + immediate re-check). - Workspace & Daemon Control (
rfs status/rfs_status,rfs daemon status|reap|kill): Health, RAM, Ranvier counters, and safe stale-process reaping. - Process Monitor (
rfs tui, alsorfs monitor/rfs top): A live terminal view of everyrfsandranvierautocompleteprocess, with automatic cleanup of the ones nothing can use any more. See below.
Process Monitor (rfs tui · rfs monitor · rfs top)
Agents start rfs daemons, rfs mcp servers and ranvierautocomplete language servers, and each one can hold hundreds of megabytes. When an agent session ends without stopping them, they stay behind. rfs tui shows all of them live: kind, PID, parent, CPU, memory, I/O, idle time, uptime and workspace. A details pane shows the selected process's command line and log tail, plus a daemon's loaded projects and files. rfs monitor and rfs top are the same command.
rfs monitor 3 running · 1.1G · CPU 0.4% · 1 flagged · 1 to clean │ auto-clean on · every 1s · sample 30 ms
╭─┤processes 3├─────────────────────────────────────────────────────────────────────────┤sort state ↓├───╮
│KIND PID PARENT CPU% MEM IDLE STATE ↓WORKSPACE │
│lsp 20412 4410 exited 0.0 310M ≥41m clean: parent gone — │
│mcp 18800 claude 17020 0.0 95M ≥3m check: older rfs build work\repo-two │
│daemon 21044 detached 0.2 702M 12s ok work\repo-one │
The example is illustrative. Auto-clean acts only on certain findings, and checks each one again just before acting:
- a record or lease in the state directory (
%LOCALAPPDATA%\ranvier-fsharp, or$RFS_STATE_DIR) whose process exited, or whose PID another process now holds. The record is deleted; that other process is never touched. - an
rfs mcporranvierautocompletewhose client exited. Both talk over stdin/stdout, so nothing can reach them again; they are stopped. - a temp file left behind by an interrupted record write.
Flagged rows (yellow) are judgment calls left to you: a daemon or MCP server started from a different rfs build, a daemon still running a minute past its own idle timeout, a record not refreshed in four heartbeat intervals, or (on Linux) a server re-parented to init. k stops the selected process: a daemon gets its shutdown request, then a kill after 5 s. c stops every flagged process. Both ask first. a or --no-auto-clean turns auto-clean off.
Watching keeps nothing alive. A daemon does not count the monitor's pings, or the monitor request that reads its counters, as use, so its idle clock keeps running (daemons from rfs 0.1.4 on). The monitor reads counters only from daemons built from its own rfs, because older daemons would count the request.
| Key | Action |
|---|---|
| ↑ ↓ PgUp PgDn Home End, mouse | Select a process |
s / r / click a heading |
Sort / reverse |
k |
Stop the selected process |
c |
Stop every flagged process |
a |
Auto-clean on / off |
/ |
Filter by kind, PID, state, parent, workspace or command line |
+ / - |
Poll interval, 250–10000 ms (default 1000; --interval-ms) |
p or Space / u |
Pause / sample now |
? / q or Ctrl+C |
Help / quit |
Scripts and agents cannot drive a terminal UI, so use one snapshot instead:
rfs top --once # one table, ASCII only
rfs top --once --json # one JSON snapshot
rfs top --once --clean # apply auto-clean too, and print what it removed
With redirected input or output, rfs tui prints one snapshot. rfs tui --render=120x36 draws one frame of live data as text, with auto-clean off, to check the layout without a terminal. Windows and Linux report parents, command lines and I/O. macOS reports neither parents nor I/O, so nothing is stopped automatically there. Linux re-parents orphans to init, so an orphaned stdio server is flagged rather than stopped.
Benchmark Summary: Competing Weightings vs. no-tool (claude --model haiku, 28 Trials)
Using $V(w_T, w_C) = 100 \cdot Q \cdot (30\text{s}/T)^{w_T} \cdot ($0.006/C)^{w_C}$ with conservative timeout imputation on the 14-project baseline dotnet build timeout (240.12 s):
| Arm (Warm, Full 6-Cell Suite) | Total Time (no-tool ratio) |
Total Cost (no-tool ratio) |
Time-Weighted $V_{80T}$ (no-tool ratio) |
Cost-Weighted $V_{80C}$ (no-tool ratio) |
|---|---|---|---|---|
baseline-no-rfs (no-tool) |
389.91s (1.00x) |
$0.03973* (1.00x) |
52.51 (1.00x) |
78.70 (1.00x) |
stdio-daemon (rfs CLI) |
215.27s (0.55x) |
$0.04167 (1.05x) |
82.76 (1.58x) |
84.40 (1.07x) (#1) |
mcp-daemon-always (rfs mcp) |
195.08s (0.50x) |
$0.05018 (1.26x) |
86.07 (1.64x) (#1) |
74.02 (0.94x) |
mcp-daemon-deferred (--no-always-load) |
234.88s (0.60x) |
$0.04414 (1.11x) |
77.13 (1.47x) |
80.07 (1.02x) |
On large multi-project edit loops (ranvier-fsharp, 14 projects), rfs mcp cuts warm edit-check-fix time to 37.46 s (4.17x $V_{80T}$) vs. the 240.12 s baseline timeout, while rfs CLI wins Cost-Weighted valuation on both large read-only analysis (1.33x $V_{80C}$, 0.74x USD cost) and large edit loops (1.27x $V_{80C}$, 0.30x time).
- Full operator guide: docs/rfs.md
- Purely agent-relevant operational spec: docs/rfs-agent.md
- Full 28-trial methodology & ratio matrices: docs/agent-mcp-vs-stdio.md
- Agent skills: skills/rfs/SKILL.md (usage) · skills/setup-rfs/SKILL.md (setup)
Building & Packing from Source
Repository Layout
ranvier-fsharp builds against the sibling fickle-fsharp fork (fickle_decl branch), which exposes declaration-level checking and non-retaining semantic classification in FSharp.Compiler.Service.dll + FSharp.Core.dll.
parent-dir/
├── fickle-fsharp/ # https://github.com/shayanhabibi/fickle-fsharp (branch: fickle_decl)
└── ranvier-fsharp/ # https://github.com/ranvier-org/ranvier-fsharp (branch: main)
Override the fork output directory at any time with
-p:FickleFcsDir=/path/to/net10.0/(or environment variableFickleFcsDir).
1. Clone and Build the FCS Fork
git clone -b fickle_decl https://github.com/shayanhabibi/fickle-fsharp.git
git clone https://github.com/ranvier-org/ranvier-fsharp.git
cd ranvier-fsharp
# Builds fslex, fsyacc, and FSharp.Compiler.Service targeting net10.0:
pwsh -File build/fork.ps1
2. Build & Test ranvier-fsharp
dotnet build RanvierFSharp.slnx -c Release
# Run the test suites:
dotnet run --project tests/Rfs.Lsp.Tests -c Release --no-build
dotnet run --project tests/Rfs.Harness.Tests -c Release --no-build
dotnet run --project tests/Rfs.Checkpoint.Tests -c Release --no-build
dotnet run --project tests/Rfs.Decl.Tests -c Release --no-build
dotnet run --project tests/Rfs.Checker.Tests -c Release --no-build
dotnet run --project tests/Rfs.Server.Tests -c Release --no-build
dotnet run --project tests/Rfs.Agent.Tests -c Release --no-build
3. Pack & Verify All NuGet Packages + Portable Bundles
pwsh -File build/pack.ps1
pwsh -File build/verify-packages.ps1 -NupkgDir ./artifacts/nupkg
This outputs all 8 .nupkg archives in artifacts/nupkg/ (Ranvier.FSharp.{Lsp,Projects,Checker,Checker.Traced,Server,Server.Traced} + Ranvier.AutoComplete + Ranvier.FSharp.Agent), artifacts/publish/ranvierautocomplete.dll (ready for "FSharp.fsac.netCoreDllPath" in VS Code), and artifacts/publish-rfs/rfs.dll, then verifies them in isolated out-of-repo tool, F#, and C# consumer builds.
Debugging & Causal Graph Inspection (rfs/why)
- Untraced packages / Release builds (
Ranvier.FSharp.Checker,Ranvier.FSharp.Server,Ranvier.AutoComplete,Ranvier.FSharp.Agent) link the untracedRanvierpackage for zero tracing overhead. - Traced packages / Debug builds (
Ranvier.FSharp.Checker.Traced,Ranvier.FSharp.Server.Traced, or-c Debug/-p:RanvierTrace=true) linkRanvier.Tracedand enable the customrfs/whyJSON-RPC request ({"textDocument": {"uri": "file:///..."}, "position": {"line": 4, "character": 5}}), returning the exact causal chain from changed input signals to the declaration's last check.
Publishing & Releases
- Ensure
shayanhabibi/fickle-fsharphas the latestfickle_declbranch pushed:git -C ../fickle-fsharp push origin fickle_decl - Push
mainand tag either a standaloneRanvier.AutoCompleterelease (ranvierautocomplete-v0.1.1), a standaloneRanvier.FSharp.Agentrelease (rfs-v0.1.0), or a full workspace suite release (v0.1.0):
Thegit push -u origin main # Release Ranvier.FSharp.Agent (`rfs`) CLI/MCP tool + standalone archives: git tag rfs-v0.1.0 git push origin rfs-v0.1.0 # Or release Ranvier.AutoComplete CLI tool + standalone archives: # git tag ranvierautocomplete-v0.1.1 # git push origin ranvierautocomplete-v0.1.1 # Or release all 8 NuGet packages (libraries + both CLI tools): # git tag v0.1.0 # git push origin v0.1.0.github/workflows/publish.ymlworkflow authenticates via NuGet Trusted Publishing (OIDC,NuGet/login@v1), buildsfickle-fsharp+ranvier-fsharp, runs isolated consumer smoke tests (build/verify-packages.ps1), pushes to NuGet.org, and attaches portable & RID archives (win-x64,linux-x64,osx-arm64) +.nupkgfiles to a GitHub Release.
To verify published packages live from https://api.nuget.org/v3/index.json in a clean NuGet cache:
# Verify the 0.1.0 Ranvier.FSharp.Agent (`rfs`) tool:
pwsh -File build/verify-packages.ps1 -OnlineOnly -AgentOnly -AgentVersion 0.1.0
# Verify the 0.1.1 Ranvier.AutoComplete CLI tool:
pwsh -File build/verify-packages.ps1 -OnlineOnly -ToolOnly -ToolVersion 0.1.1
# Verify the full 8-package library + tool suite:
pwsh -File build/verify-packages.ps1 -OnlineOnly
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FSharp.Core (>= 10.0.100)
- Ranvier (>= 0.2.1)
- Ranvier.FSharp.Projects (= 0.1.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Ranvier.FSharp.Checker:
| Package | Downloads |
|---|---|
|
Ranvier.View.WebCore.Hmr
Hot reload for native Ranvier apps in development: `dotnet run -- dev` keeps the SDL window and WebCore page alive and patches edited components into them, keeping their state. |
|
|
Ranvier.FSharp.Server
Embeddable F# Language Server Protocol (LSP) server and Ionide endpoint implementation powered by Ranvier.FSharp.Checker, built upon the Ionide ecosystem (FsAutoComplete, Ionide.LanguageServerProtocol, Ionide.ProjInfo). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.4 | 44 | 11/26/2026 |
| 0.1.3 | 44 | 11/26/2026 |
| 0.1.2 | 214 | 11/23/2026 |
| 0.1.1 | 605 | 11/16/2026 |
| 0.1.0 | 968 | 11/14/2026 |
| 0.1.0-preview.3 | 246 | 11/12/2026 |
| 0.1.0-preview.2 | 66 | 11/12/2026 |
Stable release of Ranvier.FSharp libraries, Ranvier.AutoComplete LSP server, and Ranvier.FSharp.Agent (rfs) CLI/MCP tool.