When a ballerina project is opened with VS code, some modules and syntax are not resolved. I have installed Ballerina VS Code plugin 3.3.13 and the Ballerina version is Ballerina 2201.4.1 (Swan Lake Update 4)
When I try to pull modules using VS code, it gave me the error in the screenshot as a notification.
Bal build will not give any issue.
$ bal build
Compiling source
choreo/loggingapi:0.1.0
Generating executable
target/bin/loggingapi.jar
Tried restarting VS Code but this did not work. Can someone help identifying the issue?
I noticed that the Ballerina SDK version on the bottom status bar of VS Code was different from the Ballerina version I have installed.
I fixed this by removing the path in Settings > Ballerina Home
All the packages got resolved after I restarted the app after removing the value for Ballerina Home. When there is no value set, it picks up the version that is installed.