Munashedov

log 4

Oct 20th, 2022
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. PS C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game> zig build
  2. C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache\o\QRf3SnWSkW3zFdPzK7wNLzrUNLoPFbXbx6Wsjt19ebahlyxwSbUhdkfZ3iZniWZh\application.zig:5:9: error: pointless discard of function parameter
  3. _ = context;
  4. ^~~~~~~
  5. C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache\o\QRf3SnWSkW3zFdPzK7wNLzrUNLoPFbXbx6Wsjt19ebahlyxwSbUhdkfZ3iZniWZh\application.zig:10:26: note: used here
  6. try output.writeAll(context.app_name);
  7. ^~~~~~~
  8. C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache\o\QRf3SnWSkW3zFdPzK7wNLzrUNLoPFbXbx6Wsjt19ebahlyxwSbUhdkfZ3iZniWZh\application.zig:4:9: error: pointless discard of function parameter
  9. _ = output;
  10. ^~~~~~
  11. C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache\o\QRf3SnWSkW3zFdPzK7wNLzrUNLoPFbXbx6Wsjt19ebahlyxwSbUhdkfZ3iZniWZh\application.zig:11:9: note: used here
  12. try output.writeAll(".wasm\")\x0D\x0A .then((response) => response.arrayBuffer())\x0D\x0A .then((bytes) => WebAssembly.instantiate(bytes, imports))\x0D\x0A .then((results) => results.instance)\x0D\x0A .then((instance) => {\x0D\x0A globalInstance = instance;\x0D\x0A let res = instance.exports.app_init();\x0D\x0A if (res == 0) {\x0D\x0A\x0D\x0A // run the update loop until the app dies\x0D\x0A function update() {\x0D\x0A const styles = window.getComputedStyle(canvas_element);\x0D\x0A\x0D\x0A const dx = parseFloat(styles.paddingLeft) + parseFloat(styles.paddingRight);\x0D\x0A const dy = parseFloat(styles.paddingTop) + parseFloat(styles.paddingBottom);\x0D\x0A\x0D\x0A canvas_element.width = window.devicePixelRatio * (canvas_element.clientWidth - dx);\x0D\x0A canvas_element.height = window.devicePixelRatio * (canvas_element.clientHeight - dy);\x0D\x0A\x0D\x0A let res = instance.exports.app_update();\x0D\x0A if (res == 0) {\x0D\x0A requestAnimationFrame(update);\x0D\x0A } else {\x0D\x0A\x0D\x0A let error_ptr = instance.exports.app_get_error_ptr();\x0D\x0A let error_len = instance.exports.app_get_error_len();\x0D\x0A\x0D\x0A let view = new Uint8Array(instance.exports.memory.buffer, error_ptr, error_len);\x0D\x0A\x0D\x0A let str = new TextDecoder().decode(view);\x0D\x0A\x0D\x0A console.log(\"app_update returned error code \", str);\x0D\x0A alert(str);\x0D\x0A }\x0D\x0A }\x0D\x0A\x0D\x0A requestAnimationFrame(update);\x0D\x0A }\x0D\x0A else {\x0D\x0A console.log(\"app_init returned \", res);\x0D\x0A }\x0D\x0A });\x0D\x0A </script>\x0D\x0A</head>\x0D\x0A\x0D\x0A<body>\x0D\x0A <canvas id=\"render-canvas\" tabindex=\"1\">\x0D\x0A </canvas>\x0D\x0A</body>\x0D\x0A\x0D\x0A</html>\x0D\x0A");
  13. ^~~~~~
  14. error: render-html-page...
  15. error: The following command exited with error code 1:
  16. C:\Users\Munashe\Documents\development\zig-windows-x86_64-0.10.0-dev.4418+99c3578f6\zig.exe build-exe C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\vendor\zero-graphics\tools\render-ztt-page.zig --cache-dir C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache --global-cache-dir C:\Users\Munashe\AppData\Local\zig --name render-html-page --pkg-begin html C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache\o\QRf3SnWSkW3zFdPzK7wNLzrUNLoPFbXbx6Wsjt19ebahlyxwSbUhdkfZ3iZniWZh\application.zig --pkg-end --enable-cache
  17. error: the following build command failed with exit code 1:
  18. C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache\o\edeacad32f76122afdc75c3cec48b244\build.exe C:\Users\Munashe\Documents\development\zig-windows-x86_64-0.10.0-dev.4418+99c3578f6\zig.exe C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game\zig-cache C:\Users\Munashe\AppData\Local\zig
  19. PS C:\Users\Munashe\Documents\Programming-Projects\Zig\zg-game>
Add Comment
Please, Sign In to add comment