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 the recovery for start keyword as a resource path #43864

Open
rdulmina opened this issue Mar 4, 2025 · 0 comments
Open
Labels
Area/Parser Everything related to the ballerina lexer and the parser #Compiler Team/CompilerFETools Semantic API, Formatter, Shell Type/Improvement

Comments

@rdulmina
Copy link
Contributor

rdulmina commented Mar 4, 2025

Description

service / on new http:Listener(8080) {
    resource function get start() returns string {
        return "Automation running!";
    }
}

The above sample gave so many unwanted and misleading errors due to the usage of start keyword in the resource path.

Image

Describe your problem(s)

No response

Describe your solution(s)

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Mar 4, 2025
@rdulmina rdulmina added Team/CompilerFETools Semantic API, Formatter, Shell Area/Parser Everything related to the ballerina lexer and the parser #Compiler and removed needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Parser Everything related to the ballerina lexer and the parser #Compiler Team/CompilerFETools Semantic API, Formatter, Shell Type/Improvement
Projects
None yet
Development

No branches or pull requests

2 participants