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

Missing error location for "keyword component(s) ... is missing in tuple" #2132

Closed
mzagozen opened this issue Jan 28, 2025 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@mzagozen
Copy link
Collaborator

Acton Version

0.24.1.20250127.23.53.9

Steps to Reproduce and Observed Behavior

actor Bob():
    def foo(cb):
        pass

actor Rob():
    def bar():
        b = Bob()
        b.foo()
[error]: Incompatible types
     ╭──▶ @0:0-0:0
     │
   0 │ <no line>
     • 
     • ╰╸ keyword component(s) 'cb' is missing in tuple
─────╯

Expected Behavior

Error message points to the call of Bob.foo() with the missing argument

@mzagozen mzagozen added the bug Something isn't working label Jan 28, 2025
@sydow sydow closed this as completed in 443a57c Feb 26, 2025
sydow added a commit that referenced this issue Feb 26, 2025
@plajjan
Copy link
Contributor

plajjan commented Feb 26, 2025

Now:

kll@Kristians-MacBook-Air acton % actonc compiler/actonc/test/typeerrors/ex25.act 
Building file compiler/actonc/test/typeerrors/ex25.act using temporary scratch directory
  Compiling ex25.act for release
[error]: Incompatible types
     ╭──▶ ex25.act@8:9-8:16
     │
   8 │         b.foo()
     •         ┬──────
     •         ╰╸ keyword component(s) 'cb' is missing in tuple
─────╯
kll@Kristians-MacBook-Air acton % 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants