Closed PilchardFriendly closed 4 years ago
Ok - my /purescript-native/ffi_loader.go
was missing _ "github.com/purescript-native/go-ffi/purescript-unsafe-coerce"
I've added that, and the problem changed:
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
github.com/purescript-native/go-ffi/purescript-effect.init.0.func2.1.1(0x12747a0, 0xc00016b470)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-ffi@v0.0.0-20191015034244-22b13919279c/purescript-effect/Effect.go:19 +0x4b
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
github.com/purescript-native/go-ffi/purescript-effect.init.0.func2.1.1(0xc00016b4a0, 0x12747a0)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-ffi@v0.0.0-20191015034244-22b13919279c/purescript-effect/Effect.go:19 +0xbd
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
github.com/purescript-native/go-ffi/purescript-effect.init.0.func2.1.1(0x12747a0, 0xc00016b5c0)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-ffi@v0.0.0-20191015034244-22b13919279c/purescript-effect/Effect.go:19 +0x53
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
github.com/purescript-native/go-ffi/purescript-effect.init.0.func2.1.1(0x126b920, 0xc0000164d0)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-ffi@v0.0.0-20191015034244-22b13919279c/purescript-effect/Effect.go:19 +0xbd
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
github.com/purescript-native/go-ffi/purescript-effect.init.0.func2.1.1(0x126b920, 0xc0000164d0)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-ffi@v0.0.0-20191015034244-22b13919279c/purescript-effect/Effect.go:19 +0x53
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
main.PS__main.func2(0x126b5a0, 0xc00016b650)
/Users/ndrew/Code/shokinin/shokinin-20/output/Main/Main.go:120 +0xb2
github.com/purescript-native/go-runtime.Run(...)
/Users/ndrew/go/pkg/mod/github.com/purescript-native/go-runtime@v0.1.0/release.go:16
main.main()
/Users/ndrew/Code/shokinin/shokinin-20/output/Main/Main.go:128 +0x3f
The offending line is below. So - I'll go and have a look at ffi js code, and port it, right?
var options Any = Apply(Options_Applicative_Extra.PS__execParser(), Apply(Options_Applicative_Builder.PS__info(), Apply(Options_Applicative_Internal_Utils.PS__apApplyFlipped(), Options_Applicative_Types.PS__parserApply(), PS__programOptions(), Options_Applicative_Extra.PS__helper()), Apply(Data_Semigroup.PS__append(), Options_Applicative_Builder.PS__infoModSemigroup(), Options_Applicative_Builder.PS__fullDesc(), Apply(Data_Semigroup.PS__append(), Options_Applicative_Builder.PS__infoModSemigroup(), Apply(Options_Applicative_Builder.PS__progDesc(), "Shokinin 20"), Apply(Options_Applicative_Builder.PS__header(), "Get to the food truck!")))))
return func() Any {
var seed Any = Run(Random_LCG.PS__randomSeed())
var opts Any = Run(options)
var logs Any = Run(Apply(Teletype.PS__runTeletype(), Apply(PS__program(), Apply(strategy, opts), seed)))
return logs
}```
I've added that, and the problem changed:
Sorry, I don't see error message (for the panic); I'm guessing some of the output is missing?
Otherwise, I'm guessing you're correct in identifying some missing implementations.
I've only been using go for 30 minutes, and purescript for 3 days, so I'm not quite sure what to do next.... please go easy on me...
I've got spago to run the build (removed my GOPATH, and it all worked well). I've got a Main in the project root.
When I run
./Main
it dumps at my option parser -> Data.Exists -> Unsafe.CoerceWhat else can I tell you?
Stacktrace: