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

python pocketpy linalg vec2 class methods crash when called #2317

Closed
Tracked by #2315
jezv opened this issue Sep 28, 2023 · 2 comments
Closed
Tracked by #2315

python pocketpy linalg vec2 class methods crash when called #2317

jezv opened this issue Sep 28, 2023 · 2 comments

Comments

@jezv
Copy link

jezv commented Sep 28, 2023

version 1.1.2736 (59ab359)
windows 11

repro steps:

  1. .\tic80.exe --fs=./test --scale=6
  2. new python
  3. SC to enter code editor
  4. add the following after the line y=24
y=24

from linalg import vec2
vec2(0,0).dot(vec2(0,0))

results in runtime error

>error while processing the main code

>Traceback (most recent call last):
  File "<c-bound>", line 14
    vec2(0,0).dot(vec2(0,0))
TypeError: expected 0 arguments, but 
got 1

maybe related to #2316

@blueloveTH
Copy link
Contributor

Let me check this please.

@blueloveTH
Copy link
Contributor

image
image

Fixed.

@nesbox nesbox closed this as completed in 8d07e70 Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants