Fieldbench — DBC, STL & CAN Bus Script for VS Code
Syntax highlighting, snippets, live static DBC schema linting (FB001–FB015), Signal Temporal Logic (STL/MTL) assertion execution, and Vector CAPL (.can) transpilation for Fieldbench.
Supported File Types
.dbc (dbc): CAN / CAN-FD database syntax highlighting (BO_, SG_, VAL_, CM_, BA_, SG_MUL_VAL_, SIG_VALTYPE_, Intel/Motorola bit specs @1+/@0-, hex/decimal IDs) + live FB001–FB015 diagnostic squiggles on save.
.fbt (fbt): Fieldbench Signal Temporal Logic (STL/MTL) assertion suites (suite, assert, always, eventually, until, since, historically, once, rise, fall, implies, cycle_jitter, bus_load, alive_ok, duration literals).
.fbs (fbs): Fieldbench Script reactive bus nodes (on start, on message, on signal, on timer, every, output, set_signal, get_signal, assert).
Commands
| Command |
Action |
Fieldbench: Lint Bus Schema (FB001–FB015) |
Runs fieldbench schema lint --json and maps bit-overlap, DLC, range, and WCRT findings directly onto BO_/SG_ lines. |
Fieldbench: Run STL Assertions (.fbt) |
Runs fieldbench assert run --json against a selected trace log and annotates failing assertions with quantitative robustness margins. |
Fieldbench: Transpile Vector CAPL (.can) to FBS |
Runs fieldbench sim transpile-capl --json, opens the generated .fbs beside the .can file, and marks Win32 DLL/sysvar warnings inline. |
Requirements & Settings
Syntax highlighting and snippets work immediately with zero dependencies. For live diagnostics, STL evaluation, and CAPL transpilation, install the free fieldbench CLI from GitHub Releases (Community CLI is free for DBC linting and traces up to 100k frames).
fieldbench.cliPath (default: "fieldbench"): Path to the fieldbench CLI binary.
fieldbench.lintOnSave (default: true): Automatically lint .dbc files on save.
fieldbench.defaultSchema (default: ""): Default bus schema path for .fbt runs.
Support
Issues & feedback: https://github.com/Huckcity/fieldbench/issues · Email: support@fieldbench.dev
| |