I have downloaded windows visual studio and the I installed Ballerina extension but whenever I try to open the ballerina extension it shows a message " Ballerina Swan Lake is not a legitimate application or plug in". Can someone please guid me how to start programming on Ballerina language ?
Asked
Active
Viewed 135 times
-1
-
1Did you download the vsix file and open the from the browser/File Explorer? Have you tried to install via VSCode itself. I even tried to install in a windows machine via VSCode and it worked. You can refer screen recording in following YouTube Link https://www.youtube.com/watch?v=hMKVo3mqkFg – Tharik Kanaka Sep 09 '22 at 04:45
1 Answers
2
Easiest way to get started is to follow this getting started article here.
If you would like to start with visual studio code, apart from the Ballerina plugin you need to download and install Ballerina platform (Compiler and runtime). You can download it here.
After installing everything, create a new file in VS code and save it with the file extension .bal, (ex: hello.bal), VS code should auto pickup that this is a ballerina program.
Depending on the configurations on your VS code instance you will get one or both of highlighted ways to run your program from the VS code.

Dhananjaya
- 1,510
- 2
- 14
- 19
-
1If you have installed the Ballerina platform and extension correctly, when you open a `.bal` file you can see the Ballerina platform version (eg: Ballerina SDK 2201.1.0) at the bottom left corner of VSCode. – Malintha Ranasinghe Sep 07 '22 at 03:24