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

[Improvement]: Improve error message when there is a mismatch in worker send and recevie pairing #41953

Closed
lochana-chathura opened this issue Jan 9, 2024 · 1 comment · Fixed by #42294
Assignees
Labels
Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Lang/Actions/WorkerMessagePassing Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Improvement
Milestone

Comments

@lochana-chathura
Copy link
Member

lochana-chathura commented Jan 9, 2024

Description

$subject.

function foo() {
    boolean foo = true;

    worker w1 {
        20 -> w2;
    }

    worker w2 {
    }

}

This above code gives,

ERROR [test_parser.bal:(21:15,23:6)] worker send/receive interactions are invalid; worker(s) cannot move onwards from the state: '[20 -> w2, FINISHED, FINISHED]'

We need to give a meaningful error message.

@lochana-chathura lochana-chathura added Type/Improvement Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Lang/Actions/WorkerMessagePassing labels Jan 9, 2024
@lochana-chathura lochana-chathura self-assigned this Jan 9, 2024
@lochana-chathura lochana-chathura added the Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler label Jan 9, 2024
@lochana-chathura lochana-chathura moved this to Planned for Sprint in Ballerina Team Main Board Jan 11, 2024
@lochana-chathura lochana-chathura moved this from Planned for Sprint to In Progress in Ballerina Team Main Board Jan 17, 2024
@lochana-chathura lochana-chathura moved this from In Progress to PR Sent in Ballerina Team Main Board Jan 17, 2024
@lochana-chathura
Copy link
Member Author

Fixed in #41999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Lang/Actions/WorkerMessagePassing Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Improvement
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant