Have installed latest (as of 28/2/21) versions of ballerina (swan lake alpha2) and VSCode plugin (1.2.13). When I look at a .bal src file the 'language intelligence' seems to work correctly but the 'show file overview reports errors. The errors I get are:

Ballerina extension did not start properly. Please check extension logs for more info.

And logs:

Ballerina home is configured in settings. Configured Ballerina home is not valid. Failed to activate Ballerina extension. Configured Ballerina home is not valid.

I must be missing something with the setting but cannot identify what. Two obvious settings I have tried are:

c:\program files\ballerina\bin & c:\program files\ballerina

Thanks for any guidance

2

There are 2 best solutions below

12
On

The VSCode plugin version 1.2.13 is incompatible with swan lake alpha2. You have to download and install the compatible VSCode extention version available at Swan Lake Alpha2 section in download page. You can find that at the bottom of that section.

Direct Link: https://github.com/ballerina-platform/plugin-vscode/releases/download/vswan-lake-alpha2/ballerina-swan-lake-alpha2.vsix

Once downloaded, you have to install that extension using the Install from VSIX option (In the hamburger menu of the extensions tab).

Update

Ballerina VSCode plugin compatible with Swan Lake is now available in visual studio marketplace

2
On

After installing the extension as described by @Imesha you should add the ballerina home to the PATH. On Mac

vi .zshrc

export PATH="$PATH:/usr/local/Cellar/ballerina/1.2.13/libexec/bin/