NilAway Flow
NilAway finds potential nil panics; this extension shows them where they happen.

- underlines the dereference and attaches the nil flow as related information
- "NilAway Flow" view explains how the value reaches the crash
- quick fix for
//nolint:nilaway
- runs on save, analyzes from the nearest
go.mod
Install
Requires Go on PATH. On first run the extension installs nilawayd and the nilaway CLI
with go install; later runs check for updates once a day.
Settings
| Setting |
Default |
Meaning |
nilaway.enable |
true |
Run NilAway |
nilaway.runOnSave |
true |
Analyze the saved file's package |
nilaway.debounceMs |
500 |
Delay after save |
nilaway.enginePath |
"" |
Path to nilawayd |
nilaway.engineAutoInstall |
always |
always, prompt, never |
nilaway.includePkgs |
[] |
Package prefixes; empty = module path |
nilaway.severity |
warning |
Severity of findings |
Commands
Analyze Workspace · Analyze Current File's Package · Explain Potential Nil Dereference ·
Check for Updates · Install Engine · Restart Engine · Show Output
License
MIT. NilAway is Apache 2.0.
| |