gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
875 stars 355 forks source link

Gno Playground: Problems with Safari and Chrome. #2270

Closed thinhnx-var closed 3 months ago

thinhnx-var commented 3 months ago

Problems when accessing Gno PlayGround with Safari and Chrome.

Not works as expect: Gno Playground in Safari and Render(path string) string in landing page. RUN option in both browsers and TEST option in Safari.

Description

I tried to play with gno playground with my Safari, when I pressed Test button. Also with Run button after I filled in the value of expression to evaluate. Nothing happened. I did tried with other functions that returns string. Same behavior.

Your environment

Steps to reproduce

Expected behaviour

With safari, at least it should open the terminal windows and display "Hello world" With chrome, should display "Hello world"

Actual behaviour

With safari nothing opened up. With chrome, nothing returned/ displayed in the terminal with Run option.

Logs

No logs.

thinhnx-var commented 3 months ago

@leohhhn Did you encountered this problem?

leohhhn commented 3 months ago

Hey @thinhnx-var, thanks.

@salmad3 @ilgooz can we take a look at this?

x1unix commented 3 months ago

@leohhhn duplicate of https://github.com/gnostudio/studio/issues/462

x1unix commented 3 months ago

@leohhhn

Chrome: https://play.gno.land/ -> Run -> enter Render("test") Terminal opens up without any output displayed.

Terminal prints nothing because program prints nothing. Wrap the expression with println() and it will work.

Unfortunately, REPL also works in the same way.

image

Regarding Safari - see issue in the comment above.

grepsuzette commented 3 months ago

@x1unix Yes, it works here when using println. By the way, gnostudio/studio/issues/462 doesn't reach at the moment (because there is no repo anymore in https://github.com/gnostudio).

So the part with Chrome is not a bug. Remains to see about Safari and then we can close this.

x1unix commented 3 months ago

@grepsuzette another point regarding Safari or Firefox - Adena Wallet isn't available there or even when Safari compat issue will be fixed, idk if Playground will still be usable enough.

Safari doesn't support REPL, test and run due to a missing ReadableByteStreamController that is necessary for WebAssembly filesystem.

x1unix commented 3 months ago

By the way, https://github.com/gnostudio/studio/issues/462 doesn't reach at the moment (because there is no repo anymore in https://github.com/gnostudio).

It's a private repo atm and probably you can't access the issue as you have no access to it.

@grepsuzette

Kouteki commented 3 months ago

Duplicate issue: Gno Studio team has an issue open in the private repo.

Closing this one. Thanks for reporting it @thinhnx-var