Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketches don't work when run locally #1496

Open
artemohanjanyan opened this issue Mar 26, 2021 · 1 comment
Open

Sketches don't work when run locally #1496

artemohanjanyan opened this issue Mar 26, 2021 · 1 comment

Comments

@artemohanjanyan
Copy link

artemohanjanyan commented Mar 26, 2021

Shared Program: https://code.world/haskell#PyqMb0AMqkbsjTZh59nb5LQ

Description

If I try to run the program from the link locally, nothing is drawn, I just see white screen. I'm compiling with GHC 8.6.5, Cabal 3.4.0.0, tried with Google Chrome and Safari. You can find the exact code I'm running here.

@cdsmith
Copy link
Collaborator

cdsmith commented Mar 26, 2021

This is actually a known limitation. See https://github.com/google/codeworld/blob/master/codeworld-api/src/CodeWorld/CanvasM.hs#L280 Getting this working requires an implementation of drawImgURL in native code. If someone wants to take a crack at implementing, then https://hackage.haskell.org/package/blank-canvas-0.7.3/docs/Graphics-Blank.html#v:newImage looks useful.

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

No branches or pull requests

2 participants