-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReportGenerator documentation example does work #2535
Comments
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project! |
Hey @AtwoodTM I know it took a while, but thanks for reporting this. Yes indeed the correct code is:
For some reason that module takes a list and inference in F# is not strong enough to figure out the types when defining the function as in the docs (a type hint would be required) :( |
Description
The ReportGenerator documentation example does not work. Using the exact example provided, FAKE replies with:
Script is not valid:
/mnt/c/users/ThomasMAtwood/repos/test-project/build.fsx (282,34)-(282,43): Error FS0039: The record label 'TargetDir' is not defined. Maybe you want one of the following:
Targets
Target
TargetInfo
/mnt/c/users/[UserProfile]/repos/test-project/build.fsx (284,9)-(284,51): Error FS0001: Type mismatch. Expecting a
'IGlobbingPattern -> unit'
but given a
'string list -> unit'
The type 'IGlobbingPattern' does not match the type 'string list'
/mnt/c/users/[UserProfile]/repos/test-project/build.fsx (284,9)-(284,51): Error FS0001: Type mismatch. Expecting a
'IGlobbingPattern -> unit'
but given a
'string list -> unit'
The type 'IGlobbingPattern' does not match the type 'string list'
where lines 273-288 are:
Repro steps
To reproduce, try the example code.
Expected behavior
The expected code would allow for the ReportGenerator to work.
Actual behavior
Please provide a description of the actual behavior you observe.
Known workarounds
There are no known workarounds
Related information
The text was updated successfully, but these errors were encountered: