Skip to content

Conversation

@DilshadNaleem
Copy link

Purpose

Fixing the error #43815 showing the error message as resource_func to resource_function

Fixes #43815

Approach

Adding string then compare it with the getting NodeKind. if node kind returns RESOURCE_FUNC the invokable name String come in picture as constant string "resource_function". if not it shows the incoming nodekind to string in lowercase. Then print the incoming error to the vs code hovering with the INVOKABLE_MUST_RETURN (Error Code BCE2095). use the command ./gradlew build -x test to skip the tests because there are so many errors in unit tests. Working forward to solve them too. After the successful completion RAR file will be created under C:\Users\HP\Desktop\ballerina\ballerina-lang\distribution\zip\jballerina-tools\build\distributions this path extract it creating a folder as dependency because automatically gradle wont create it. cut and pasting the JDK version to make contact with the ballerina Extension.

Samples

The following image shows the printed error message when hovering to the error.

image

Remarks

There are more unit test errors. sometimes checkstyle gives an 404 url it happened me for me several times.

Check List

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

Successfully merging this pull request may close these issues.

[Bug]: Invalid error message: must be resource function instead of resource_func

1 participant