Skip to content

Instantly share code, notes, and snippets.

@StEvUgnIn
Created February 11, 2021 20:40
Show Gist options
  • Save StEvUgnIn/2ba404abe92cab0ac432cc7ed7ac7fe1 to your computer and use it in GitHub Desktop.
Save StEvUgnIn/2ba404abe92cab0ac432cc7ed7ac7fe1 to your computer and use it in GitHub Desktop.
AssemblyScript does not seem to support sincos for Math[f] anymore
> Executing task: yarn run test <
yarn run v1.22.10
$ asp
___ _____ __
/ | / ___/ ____ ___ _____/ /_
/ /| | \__ \______/ __ \/ _ \/ ___/ __/
/ ___ |___/ /_____/ /_/ / __/ /__/ /_
/_/ |_/____/ / .___/\___/\___/\__/
/_/
⚡AS-pect⚡ Test suite runner [4.0.0]
[Log] Loading asc compiler
[Log] Compiler loaded in 655.777ms.
[Log] Using configuration C:\Users\steve.huguenin\git\lume\glas\as-pect.config.js
[Log] Using SummaryReporter
[Log] Including files: src/as/index.spec.ts
[Log] Running tests that match: (:?)
[Log] Running groups that match: (:?)
[Log] Effective command line args:
[TestFile.ts] node_modules\@as-pect\assembly\assembly\index.ts --debug --binaryFile output.wasm --runtime full --explicitStart --use ASC_RTRACE=1 --exportTable --importMemory --transform C:\Users\steve.huguenin\git\lume\glas\node_modules\@as-pect\core\lib\transform\index.js
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
const c1 = Mathf.sincos_cos(x / 2),
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(139,14)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
s1 = Mathf.sincos_sin(x / 2)
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(140,9)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
const c2 = Mathf.sincos_cos(y / 2),
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(143,14)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
s2 = Mathf.sincos_sin(y / 2)
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(144,9)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
const c3 = Mathf.sincos_cos(z / 2),
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(147,14)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
s3 = Mathf.sincos_sin(z / 2)
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(148,9)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._x = s1 * c2 * c3 + c1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(151,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._y = c1 * s2 * c3 - s1 * c2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(152,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._z = c1 * c2 * s3 + s1 * s2 * c3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(153,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._w = c1 * c2 * c3 - s1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(154,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._x = s1 * c2 * c3 + c1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(156,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._y = c1 * s2 * c3 - s1 * c2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(157,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._z = c1 * c2 * s3 - s1 * s2 * c3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(158,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._w = c1 * c2 * c3 + s1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(159,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._x = s1 * c2 * c3 - c1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(161,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._y = c1 * s2 * c3 + s1 * c2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(162,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._z = c1 * c2 * s3 + s1 * s2 * c3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(163,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._w = c1 * c2 * c3 - s1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(164,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._x = s1 * c2 * c3 - c1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(166,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._y = c1 * s2 * c3 + s1 * c2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(167,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._z = c1 * c2 * s3 - s1 * s2 * c3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(168,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._w = c1 * c2 * c3 + s1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(169,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._x = s1 * c2 * c3 + c1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(171,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._y = c1 * s2 * c3 + s1 * c2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(172,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._z = c1 * c2 * s3 - s1 * s2 * c3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(173,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._w = c1 * c2 * c3 - s1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(174,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._x = s1 * c2 * c3 - c1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(176,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._y = c1 * s2 * c3 - s1 * c2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(177,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._z = c1 * c2 * s3 + s1 * s2 * c3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(178,14)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this._w = c1 * c2 * c3 + s1 * s2 * s3
~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Quaternion.ts(179,14)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
const c = Mathf.sincos_cos(theta),
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Matrix4.ts(695,13)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
s = Mathf.sincos_sin(theta)
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Matrix4.ts(696,8)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this.set(1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1)
~
in src/as/math/Matrix4.ts(698,27)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this.set(1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1)
~~
in src/as/math/Matrix4.ts(698,30)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this.set(1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1)
~
in src/as/math/Matrix4.ts(698,40)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this.set(1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1)
~
in src/as/math/Matrix4.ts(698,43)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
const c = Mathf.sincos_cos(theta),
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Matrix4.ts(710,13)
ERROR TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'f32' has no compatible call signatures.
s = Mathf.sincos_sin(theta)
~~~~~~~~~~~~~~~~~~~~~~~
in src/as/math/Matrix4.ts(711,8)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this.set(c, 0, s, 0, 0, 1, 0, 0, -s, 0, c, 0, 0, 0, 0, 1)
~
in src/as/math/Matrix4.ts(713,12)
ERROR AS200: Conversion from type 'i32' to 'f32' requires an explicit cast.
this.set(c, 0, s, 0, 0, 1, 0, 0, -s, 0, c, 0, 0, 0, 0, 1)
~
in src/as/math/Matrix4.ts(713,18)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment