vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

Using newest TinyGo without docker does not work #202

Open Elara6331 opened 3 years ago

Elara6331 commented 3 years ago

Describe the bug Error when trying to use TinyGo 0.18.0 with tinygo example

Software Versions Vugu version: 0.3.4 Go version: 1.16.4 TinyGo version: 0.18.0 Browser and version: Brave 1.24.84 (Chromium 90.0.4430.93)

To Reproduce

  1. Run vgrun -new-from-example=tinygo . to get example
  2. Uncomment lines in devserver.go which say required for tinygo without docker
  3. Run go run devserver.go
  4. Try to open in browser at localhost:8844

Expected behavior Example runs and successfully displays without errors

Additional notes The error was this:

MainWasmHandler: Execute error:
TinygoCompiler: build error (cmd=tinygo [build -o /tmp/TinygoCompiler102664260/bin/tgwasmout291042003 -target=wasm github.com/vugu-examples/tinygo]): exit status 1; full output:
# github.com/vugu/vugu
src/github.com/vugu/vugu/build-env-tinygo.go:16:20: cannot convert vv.Type() (value of type reflect.Type) to uintptr
bradleypeabody commented 3 years ago

Okay, thanks for reporting, will look into it when I can.

owenwaller commented 8 months ago

@bradleypeabody When aiming for the v1.0 release do we want to support TinyGo? Or do we want to push this back?