Skip to content

FCS makes Paket to make wrong load script file ( do not work well on Mono ) #865

@callmekohei

Description

@callmekohei

FCS makes paket to make wrong load script file ( do not work well on Mono )

following that

#r "ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
#r "System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
#r "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Repro steps

step1: install library

$ paket init
$ vim paket.dependencies 

source https://www.nuget.org/api/v2
generate_load_scripts: true
nuget fsharp.compiler.service

$ paket install

step2: run fsx file

$ vim foo.fsx

#load @"./.paket/load/net471/main.group.fsx"
"hello" |> stdout.WriteLine

$ fsharpi foo.fsx

/Users/callmekohei/tmp/foo/.paket/load/net471/main.group.fsx(46,1)
: error FS0078: Unable to find the file 'ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in any of
 /usr/local/Cellar/mono/5.4.1.6/lib/mono/4.5
 /usr/local/Cellar/mono/5.4.1.6/lib/mono/4.5/Facades
 /Users/callmekohei/tmp/foo
 /usr/local/Cellar/mono/5.4.1.6/lib/mono/fsharp/

Expected behavior

Display Hello

Hello

Actual behavior

fsharpi command can not find libarary.

/Users/callmekohei/tmp/foo/.paket/load/net471/main.group.fsx(46,1)
: error FS0078: Unable to find the file 'ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in any of
 /usr/local/Cellar/mono/5.4.1.6/lib/mono/4.5
 /usr/local/Cellar/mono/5.4.1.6/lib/mono/4.5/Facades
 /Users/callmekohei/tmp/foo
 /usr/local/Cellar/mono/5.4.1.6/lib/mono/fsharp/

Known workarounds

commnet out

// #r "ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
// #r "System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
// #r "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 

Related information

  • Operating system
tmp$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.13.4
BuildVersion:	17E202
  • Branch
FSharp.Compiler.Service (22.0.3)
  • .NET Runtime, CoreCLR or Mono Version
tmp$ mono --version
Mono JIT compiler version 5.4.1.6 (tarball Mon Dec 11 14:59:42 GMT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen (concurrent by default)
  • Editing Tools (e.g. Visual Studio Version)
tmp$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 24 2018 01:35:22)
macOS version
Included patches: 1-1748
Compiled by Homebrew
Huge version without GUI.
  • gacutil -l
tmp$ gacutil -l | grep 'System.IO'
System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.IO.Compression.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions