Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Default initial template for TypeScript does not build #470

Closed
Zydnar opened this issue Oct 11, 2020 · 7 comments
Closed

Default initial template for TypeScript does not build #470

Zydnar opened this issue Oct 11, 2020 · 7 comments

Comments

@Zydnar
Copy link

Zydnar commented Oct 11, 2020

Steps to reporduce

  1. Start new TypeScript (AssemblyScript) project
  2. Click on Build & Run
  3. Despair:
[info]: Task project:load is running...
Loading AssemblyScript compiler ...
[info]: Task project:load is completed
AssemblyScript compiler is ready!
[info]: Task build is running...
[error]: Task build failed: n._BinaryenSetFastMath is not a function
[error]: Failed to fetch: https://webassembly.studio/out/main.wasm

Additional info

Seems this bug is not a racist and shows in all browsers.

@MaxGraey
Copy link
Collaborator

Hi, that's known issue. You could use official playground on assemblyscript.org (on the bottom of page). Or wait when binaryen.js updated and WebAssembly Studio repaired (probably couple of weeks)

@Zydnar
Copy link
Author

Zydnar commented Oct 11, 2020

@MaxGraey Thanks for the info and sorry for this duplicate. I couldn't find it but maybe I searched for wrong phrases.

@MaxGraey
Copy link
Collaborator

@Zydnar it should works now

@Zydnar
Copy link
Author

Zydnar commented Oct 16, 2020

@MaxGraey Yes, I confirm the issue is solved.

@remixer-dec
Copy link

As of today, the default empty assemblyscript project fails to build again. This time the error is:

    FAILURE Runtime 'half' not found.
    at e.main (https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/asc.js:7:887172)
    at Object.eval [as main] (eval at d (https://webassembly.studio/dist/main.bundle.js:1:1), <anonymous>:20:12)
    at r.eval [as promiseMaker] (eval at gulp (https://webassembly.studio/dist/main.bundle.js:1:34093), <anonymous>:28:7)
    at o.makePromise (https://webassembly.studio/dist/main.bundle.js:1:31658)
    at s.runInstance (https://webassembly.studio/dist/main.bundle.js:1:31954)

and if this is a compatibility issue, there is no way to change as/asc version in the Web IDE, changing setup.js does not do anything, seems like @ latest versions are loaded once, right after a project is created.

@MaxGraey
Copy link
Collaborator

He @remixer-dec. I created PR which fix this. For now you could fix it by yourself after picking AS project in gulpfile.js like here: https://github.com/wasdk/WebAssemblyStudio/pull/475/files

@MaxGraey
Copy link
Collaborator

Closed via #475

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

No branches or pull requests

3 participants