2

It's me again! After getting help with this question here, I managed writing a little microservice in Ballerina. For that I switched to Swan Lake as recommended.

But now I'm having difficulties using IDEs and their plugins. Because all questions related to that are pretty old I'm creating a new post. I'm writing a paper about Ballerina and cloud native languages and thought it would be cool to show a generated sequence diagram, so I tried setting up a proper project and generating one.

However: The IntelliJ plugin doesn't seem to support Swan Lake yet. I always get an error message that the SDK is invalid. So I switched to VS Code. Here I have a lot of problems. I can run and build my stuff just fine and I also have syntax highlight, but I don't know how to get a diagram. The documentation tells me to either open it through the project overview or the file overview. But I do not have that. My VS Code Window looks as follows: VS Code Screenshot

If I try to use "Ballerina: Document" it tells me "Current file does not belong to a Ballerina project" Also notice that the explorer one the left looks completely different compared to the documentation But how would I set this up correctly? I did everything that the docs tell me to do and I have tried the integrator. Doesn't support Swan Lake yet. And as I said: IntelliJ doesn't work either. Is it even possible to set this up correctly with Swan Lake at the moment? Am I just to stupid? I have never used VS Code before, so maybe there's a trick?

Pubci
  • 3,834
  • 1
  • 13
  • 28

2 Answers2

0

The sequence diagram view in Ballerina has been removed temporarily in Swan Lake. But this support will be brought back before the GA version. I guess it will be available in the Beta release, which is due in April.

Anjana Fernando
  • 616
  • 4
  • 6
  • It is Jan 2022. Any updates on when diagrams would be made available for Swan Lake? – Siv Jan 02 '22 at 06:03
0

Download the latest Ballerina extension for Visual Studio Code and either navigate to the button showed in num 1 for Ballerina Low-Code or navigate to num 2 to Show Diagram for the diagram view of current ballerina file. Read more from here. Ballerina provides language support through VS Code for Swan Lake but not for IntelliJ yet(Hope Ballerina will provide language support to IntelliJ with Fleet).

Ballerina with vscode plugin

Gayal Kuruppu
  • 1,261
  • 1
  • 17
  • 29