Skip to content

Instantly share code, notes, and snippets.

@kjnilsson
Created November 29, 2013 16:18
Show Gist options
  • Save kjnilsson/7708091 to your computer and use it in GitHub Desktop.
Save kjnilsson/7708091 to your computer and use it in GitHub Desktop.
Null ref exception when compiling fsharp
warning FS0075: The command-line option '--version' has been deprecated
warning FS0075: The command-line option 'times' is for internal use only
TIME: 0.2 Delta: 0.0 Mem: 26 G0: 0 G1: 0 G2: 0 [Import mscorlib]
TIME: 0.2 Delta: 0.0 Mem: 26 G0: 0 G1: 0 G2: 0 [Import mscorlib and FSharp.Core.dll]
TIME: 0.4 Delta: 0.2 Mem: 57 G0: 6 G1: 1 G2: 1 [Import system references]
/home/karl/fsharp/src/fsharp/FSharp.Build-proto/.libs/proto/FSBuild.fs(17,5): error FS0193: internal error: Object reference not set to an instance of an object
/home/karl/fsharp/src/utils/CompilerLocationUtils.fs(9,9): error FS0193: internal error: Object reference not set to an instance of an object
error FS0193: internal error: Object reference not set to an instance of an object
error FS0193: internal error: Object reference not set to an instance of an object
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.String.FindNotWhiteSpace (Int32 pos, Int32 target, Int32 change) [0x00000] in <filename unknown>:0
at System.String.Trim () [0x00000] in <filename unknown>:0
at System.IO.Path.GetPathRoot (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Path.GetDirectoryName (System.String path) [0x00000] in <filename unknown>:0
at [email protected] (System.Tuple`2 tupledArg) [0x00000] in <filename unknown>:0
at Microsoft.FSharp.Collections.ListModule.chooseAllAcc[Tuple`2,Tuple`2] (Microsoft.FSharp.Core.FSharpFunc`2 f, Microsoft.FSharp.Collections.FSharpList`1 xs, Microsoft.FSharp.Collections.FSharpList`1 acc) [0x00000] in <filename unknown>:0
at Microsoft.FSharp.Collections.ListModule.Choose[Tuple`2,Tuple`2] (Microsoft.FSharp.Core.FSharpFunc`2 chooser, Microsoft.FSharp.Collections.FSharpList`1 list) [0x00000] in <filename unknown>:0
at Microsoft.FSharp.Compiler.Driver.getTcImportsFromCommandLine$cont@322 (Exiter exiter, Microsoft.FSharp.Core.FSharpOption`1 displayPSTypeProviderSecurityDialogBlockingUI, Microsoft.FSharp.Compiler.LexResourceManager lexResourceManager, Microsoft.FSharp.Collections.FSharpList`1 sourceFiles, System.String assemblyName, Microsoft.FSharp.Compiler.TcConfig tcConfig, Microsoft.FSharp.Compiler.ErrorLogger errorLogger, Microsoft.FSharp.Core.Unit unitVar) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at System.String.FindNotWhiteSpace (Int32 pos, Int32 target, Int32 change) [0x00000] in <filename unknown>:0
at System.String.Trim () [0x00000] in <filename unknown>:0
at System.IO.Path.GetPathRoot (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Path.GetDirectoryName (System.String path) [0x00000] in <filename unknown>:0
at [email protected] (System.Tuple`2 tupledArg) [0x00000] in <filename unknown>:0
at Microsoft.FSharp.Collections.ListModule.chooseAllAcc[Tuple`2,Tuple`2] (Microsoft.FSharp.Core.FSharpFunc`2 f, Microsoft.FSharp.Collections.FSharpList`1 xs, Microsoft.FSharp.Collections.FSharpList`1 acc) [0x00000] in <filename unknown>:0
at Microsoft.FSharp.Collections.ListModule.Choose[Tuple`2,Tuple`2] (Microsoft.FSharp.Core.FSharpFunc`2 chooser, Microsoft.FSharp.Collections.FSharpList`1 list) [0x00000] in <filename unknown>:0
at Microsoft.FSharp.Compiler.Driver.getTcImportsFromCommandLine$cont@322 (Exiter exiter, Microsoft.FSharp.Core.FSharpOption`1 displayPSTypeProviderSecurityDialogBlockingUI, Microsoft.FSharp.Compiler.LexResourceManager lexResourceManager, Microsoft.FSharp.Collections.FSharpList`1 sourceFiles, System.String assemblyName, Microsoft.FSharp.Compiler.TcConfig tcConfig, Microsoft.FSharp.Compiler.ErrorLogger errorLogger, Microsoft.FSharp.Core.Unit unitVar) [0x00000] in <filename unknown>:0
make[3]: *** [.libs/proto//4.0/FSharp.Build-proto.dll] Error 1
make[3]: Leaving directory `/home/karl/fsharp/src/fsharp/FSharp.Build-proto'
make[2]: *** [do-proto] Error 2
make[2]: Leaving directory `/home/karl/fsharp/src/fsharp'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/karl/fsharp/src/fsharp'
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment