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

[Bug]: Wrong import module code action is suggested for test:assertEquals(<int:Signed16>3, 3) #41596

Closed
lochana-chathura opened this issue Oct 30, 2023 · 1 comment · Fixed by #42118
Assignees
Labels
Area/CodeAction Language Server Code Actions good first issue Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Milestone

Comments

@lochana-chathura
Copy link
Member

lochana-chathura commented Oct 30, 2023

Description

$subject.

Consider the below sample,

public function main() {
    test:assertEquals(<int:Signed16>3, 3); // Gives: Import module 'ballerina/lang.int'
    test:assertEquals(<string:Char>"x", "x"); // Gives: Import module 'ballerina/lang.string'
}

No import module code action for ballerina/test.

Screenshot 2023-10-30 at 15 03 21
public function main() {
    test:assertEquals(3, 3); // Works as expected. Gives: Import module 'ballerina/test'
}

Affected Version(s)

2201.8.1

Copy link

github-actions bot commented Feb 8, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

@KavinduZoysa KavinduZoysa added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Feb 8, 2024
@nipunayf nipunayf added this to the 2201.9.0 milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CodeAction Language Server Code Actions good first issue Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Projects
None yet
3 participants