Skip to content

Issue with mono version #8

@halcwb

Description

@halcwb

I have an issue with the mono version used. I get a file not found error in the fsi when I want to use a function that uses another function from a different dll:

$>heroku run bash
- #load "src/Informedica.GenUnit.App/Scripts/load-references-release.fsx";;
[Loading /app/src/Informedica.GenUnit.App/Scripts/load-references-release.fsx]

namespace FSI_0002

> open Informedica.GenUnits.Lib;;
> Api.eval;;
val it : (System.String -> string) = <fun:it@4>
> "200 mg[Mass]" |> Api.eval;;


/app/stdin(0,1): error FS0078: Unable to find the file 'Informedica.GenUtils.Lib
.dll' in any of
 /app/vendor/mono/lib/mono/4.5
 /app/src/Informedica.GenUnit.App/Scripts
 /app
 /app/mono/lib/mono/4.5/


/app/stdin(0,1): error FS0078: Unable to find the file 'Informedica.GenUtils.Lib
.dll' in any of
 /app/vendor/mono/lib/mono/4.5
 /app/src/Informedica.GenUnit.App/Scripts
 /app
 /app/mono/lib/mono/4.5/
System.IO.FileNotFoundException: Could not load file or assembly 'Informedica.Ge
nUtils.Lib, Version=0.4.2.0, Culture=neutral, PublicKeyToken=null' or one of its
 dependencies.
File name: 'Informedica.GenUtils.Lib, Version=0.4.2.0, Culture=neutral, PublicKe
yToken=null'
  at <StartupCode$FSI_0006>.$FSI_0006.main@ () [0x00000] in <filename unknown>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (Sy
stem.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00000] in <filename unknown>:0
Stopped due to error

However I can open the Informedica.GenUtils.Lib and use any function from that lib directly. This issue doesn't occur in my local mono install. Only in the heroku mono install version.

So, would it be possible that you upgrade your mono builder to a later stable version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions