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]: The Create variable with type code action fails to import the relevant modules #42482

Closed
shafreenAnfar opened this issue Apr 5, 2024 · 2 comments · Fixed by #42574
Closed
Assignees
Labels
Area/CodeAction Language Server Code Actions Priority/High 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

@shafreenAnfar
Copy link
Contributor

Description

Check the video.

Screen.Recording.2024-04-05.at.10.59.07.AM.mov

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

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 Apr 5, 2024
@shafreenAnfar shafreenAnfar added the Team/LanguageServer Language Server Implementation related issues. #Compiler label Apr 5, 2024
@nipunayf nipunayf added Area/CodeAction Language Server Code Actions and removed needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Apr 5, 2024
@nipunayf
Copy link
Contributor

nipunayf commented Apr 5, 2024

Duplicate of #41460, and the fix is added to U9.

However, we have to investigate why the sql module is not being imported in this scenario. This issue does not arise when we are handling types residing in different modules of the same package.

@nipunayf nipunayf self-assigned this Apr 16, 2024
@nipunayf nipunayf changed the title [Bug]: Code suggestion is wrong [Bug]: The Create variable with type code action fails to import the relevant modules Apr 17, 2024
@nipunayf nipunayf added this to the 2201.9.0 milestone Apr 24, 2024
Copy link

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.

@nipunayf nipunayf added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Apr 26, 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 Priority/High Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/LanguageServer Language Server Implementation related issues. #Compiler Type/Bug
Projects
Archived in project
4 participants