Repository navigation
v0.42.0
0.42.0
Added
--definedefines conditional compilation symbols for--scriptfiles, likedotnet fsi --define. Code under#if SYMBOLis type checked and analyzed only when its symbol is defined. A value that is not one symbol, such asA;B, is an error with exit code20.--definedoes not apply to--project, which gets its symbols fromDefineConstants.--max-concurrent-scriptssets how many scripts the CLI checks at the same time. The default is 4.
Changed
- The CLI checks at most 4 scripts at the same time, and releases the type check state of each script after its analysis. Before, it checked all scripts at once and kept the state of each script until the run ended, so memory grew by about 0.4 GB per script. In one repository, 40 scripts used 15 GB and 60 scripts used more than 16 GB. Now 284 scripts use 6 GB.
--projectinputs are unchanged. - A
--scriptpath or glob that matches no file is an error, with exit code20. Before, the CLI dropped it silently, so a typo or an unknown flag after--scriptgave a clean run that checked less than expected.
Fixed
- A project or script that the F# compiler service returns no check results for no longer looks type checked. The compiler service returns no results and no error when a type provider fails while it is set up, for example when several scripts set up FSharp.Data providers at the same time. The CLI now reports it as not type checked and runs no analyzer on it, so
--fail-on-type-errorsexits with-5as for other type errors.
Special thanks to @TheAngryByrd!
https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.42.0
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.42.0
https://www.nuget.org/packages/fsharp-analyzers/0.42.0