fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 525 forks source link

convMethodRef: could not bind to method #1295

Closed flypixel closed 8 years ago

flypixel commented 8 years ago

error FS0192: internal error: convMethodRef: could not bind to method I get this error, when I try to use paket from fsi on Ubuntu, after I call dependencies.GetInstalledVersion "FSharp.Data" as in the example . Version of mono is 4.2.1.102. Paket version 2.33.1.0

forki commented 8 years ago

yeah that sounds like FSharp.Core issue.

forki commented 8 years ago

did you bind against paket.exe or Paket.core?

flypixel commented 8 years ago

paket.exe, like in the example

forki commented 8 years ago

Which VS version and f# version? On Dec 7, 2015 3:42 PM, "flypixel" notifications@github.com wrote:

paket.exe, like in the example

— Reply to this email directly or view it on GitHub https://github.com/fsprojects/Paket/issues/1295#issuecomment-162543897.

flypixel commented 8 years ago

Sorry I'm at work and fsharp is at home. But it seems that version of fsharp is 4.0.0.1, and of course I don't use Visual Studio (if you mean that by VS), because of

on Ubuntu

I use emacs if it can help, and also I run script with fsharpi with same results

forki commented 8 years ago

Yeah I guess the issue is that we built against FSharp.Core.dll 4.4.xx On Dec 7, 2015 4:01 PM, "flypixel" notifications@github.com wrote:

Sorry I'm at work and fsharp is at home. But it seems that version of fsharp is 4.0.0.1, and of course I don't use Visual Studio (if you mean that by VS), because of

on Ubuntu

I use emacs if it can help, and also I run script with fsharpi with same result

— Reply to this email directly or view it on GitHub https://github.com/fsprojects/Paket/issues/1295#issuecomment-162549120.

flypixel commented 8 years ago

OK, I'll check and write reply to you from home. Thanks.

flypixel commented 8 years ago

Sorry, only for note: it's the same problem on windows with f# core version 3.3.1.0 Scripts, that i use, are in attachment

step1.fsx.txt step2.fsx.txt

forki commented 8 years ago

yes it's incompatible unfortunately.

2015-12-07 17:44 GMT+01:00 flypixel notifications@github.com:

Sorry, only for note: it's the same problem on windows with f# core version 3.3.1.0 Scripts, that i use, are

in attachment

— Reply to this email directly or view it on GitHub https://github.com/fsprojects/Paket/issues/1295#issuecomment-162586982.

flypixel commented 8 years ago

Sorry again, but I checked the version of FSharp.Core and it is 4.4.0.0

pixel@pixel-X751MD:/usr/lib/cli/FSharp.Core-4.3$ monodis --assembly FSharp.Core.dll Assembly Table Name: FSharp.Core Hash Algoritm: 0x00008004 Version: 4.4.0.0 Flags: 0x00000001 PublicKey: BlobPtr (0x00002087)

Bomret commented 8 years ago

Is there any solution to this? I have the same problem with referencing the paket.exe on OS X using Mono.

Edit: And on windows. I have installed the latest F# Tools 4.0 Bundle from Microsoft and VS 2015 Community. When I try to execute the referenced example in fsi, the aforementioned error occurs.

This is the error:

Microsoft (R) F# Interactive version 14.0.23413.0                                               
Copyright (c) Microsoft Corporation. All Rights Reserved.                                       

For help type #help;;                                                                           

> #r ".paket/paket.exe";;                                                                                                                                                                                            
--> Referenced 'D:\Projekte\dev\NiceTry\.paket/paket.exe' (file may be locked by F# Interactive 
process)                                                                                        

> open Paket;;                                                                                  
> let deps = Paket.Dependencies.Locate();;                                                           
val deps : Dependencies

> deps;;                                                                                        
val it : Dependencies =                                                                         
  Paket.Dependencies                                                                            
    {DependenciesFile = "D:\Projekte\dev\NiceTry\paket.dependencies";                           
     RootPath = "D:\Projekte\dev\NiceTry";}

> deps.GetInstalledPackages();;                                                                 
error FS0192: internal error: convMethodRef: could not bind to method
Bomret commented 8 years ago

Ok, found a solution myself: Just reference the Paket.Core nuget package instead of the paket.exe.

flypixel commented 8 years ago

ok, thank you, I'll try

realvictorprm commented 6 years ago

I'm running into this too. Isn't there anything I can do to fix this?

gusty commented 5 years ago

For the record, this error happens in general when you are running from fsi a dll that was built with a higher version of FSharp.Core than the one that your fsi version supports.