Skip to content

System.MissingMethodException: Method not found: 'Hopac.Job`1... #50

Description

@ImaginaryDevelopment

F# interactive window attempt:

Reflection shows the following are loaded:

mscorlib - "4.0.0.0" - C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
Hopac.Core - 0.3.23.0
Hopac - 0.3.23.0
FSharp.Core - 4.5.0.0
FSharp.Control.AsyncSeq - 2.0.21.0
BrokenDiscord - 1.0.0.0
https://gist.github.com/ImaginaryDevelopment/b99cd55a70fd0b4faba09bf06d34f3ab

fails with

stdin(230,25): error FS0074: The type referenced through 'FSharp.Control.AsyncSeq1' is defined in an assembly that is not referenced. You must add a reference to assembly 'FSharp.Control.AsyncSeq'`

on the line if m.content = "!ping" then
gist at: https://gist.github.com/ImaginaryDevelopment/b99cd55a70fd0b4faba09bf06d34f3ab

LinqPad attempt:

LINQPad 5 Premium 5.31.00 when trying to !ping in chat for the first time it says:

Listening for pings...
WARNING: You are using single-threaded workstation garbage collection, which means that parallel programs cannot scale.  Please configure your program to use server garbage collection.
Unhandled exception: System.MissingMethodException: Method not found: 'Hopac.Job`1<Microsoft.FSharp.Core.FSharpResult`2<Message,ApiError>> Client.CreateMessage(UInt64, T)'.
   at <StartupCode$query_iqzixz>.$Query_iqzixz.pong@42-1.Invoke(Unit unitVar)
   at Hopac.Core.JobDelay`1.DoJob(Worker& wr, Cont`1 xK)
   at Hopac.Core.Worker.RunOnThisThread[T](Scheduler sr, Job`1 tJ, Cont`1 tK)
No other causes.

Reflection shows the following assemblies loaded if I ask it to check right before client.start()

Newtonsoft.Json - "11.0.0.0"
FSharp.Core - 4.5.0.0
mscorlib - 4.0.0.0
LINQPad - 1.0.0.0
BrokenDiscord - 1.0.0.0
Hopac - "0.3.23.0"
Hopac.Core - 0.3.23.0

Full script code at:

https://github.com/ImaginaryDevelopment/LinqPad/blob/master/LINQPad%20Queries/WIP/DiscordBot.linq

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions