Skip to content
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

error FS0193 when using FAKE with a .NET 4.0 solution #20

Closed
panesofglass opened this issue Jan 18, 2011 · 9 comments
Closed

error FS0193 when using FAKE with a .NET 4.0 solution #20

panesofglass opened this issue Jan 18, 2011 · 9 comments

Comments

@panesofglass
Copy link
Contributor

I get this with both Frack and Cashel:

FakePath: .\tools\FAKE\FakeLib.dll
FAKE - F# Make - Version 1.42.32.0
LocalBuild
FAKE Arguments:
("build.fsx", "1")

FSI-Path: .\lib\FSharp\fsi.exe
MSBuild-Path: c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
Running Buildscript: build.fsx


error FS0193: internal error: Value cannot be null.
Parameter name: con
Press any key to continue . . .
@forki
Copy link
Member

forki commented Jan 18, 2011

How can I reproduce the error? The last Frack master works on my machine.

@panesofglass
Copy link
Contributor Author

Try the latest Cashel async at https://github.com/panesofglass/cashel/tree/async

@forki
Copy link
Member

forki commented Feb 18, 2011

Cashel also works fine. I updated NUnit and the build runs.

That's weird.

@forki
Copy link
Member

forki commented Feb 18, 2011

@forki
Copy link
Member

forki commented Feb 18, 2011

@panesofglass
Copy link
Contributor Author

Well, so long as it works elsewhere. Could be something janky on my machine. Thanks for looking into it.

@forki forki reopened this Dec 12, 2012
@forki
Copy link
Member

forki commented Dec 12, 2012

getting the same error message. Let's dig deeper

@forki
Copy link
Member

forki commented Dec 12, 2012

#I @"..\tools\FAKE"
#r "FakeLib.dll"

open Fake

let f() = MSpec (fun p -> {p with HtmlOutputDir = "blub" }) []

printfn "Ready."

if I run this inside the fsi I get:

error FS0193: internal error: Value cannot be null.
Parameter name: con

The problem is the (fun p -> {p with HtmlOutputDir = "blub" }) part. Replacing this with id gives "Ready."

  • This problem occurs only on a pc where FSharp was not installed and the fsi folder was copied from another PC.
  • The problem occurs only if I use a record that is defined in a dll (here FakeLib.dll). If I define the record in the script it works as expected.

@forki
Copy link
Member

forki commented Dec 12, 2012

I filed a bug at fsbugs.

The workaround is:
#r @"..\tools\FAKE\FakeLib.dll"

This prevents the fsi from reloading the FSharp.Core from tools\FAKE.

@forki forki closed this as completed Dec 12, 2012
matthid added a commit to AITGmbH/ApplyCompanyPolicy.Template that referenced this issue Aug 28, 2015
matthid added a commit to AITGmbH/ApplyCompanyPolicy.Template that referenced this issue Aug 28, 2015
pull bot pushed a commit to eduncan911/machine.fakes that referenced this issue Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants