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

Sequence diagram is not generated in IntelliJ Ultimate #26

Open
kidomine opened this issue Aug 20, 2020 · 0 comments
Open

Sequence diagram is not generated in IntelliJ Ultimate #26

kidomine opened this issue Aug 20, 2020 · 0 comments
Assignees
Labels

Comments

@kidomine
Copy link

Description:
Sequence diagram is not generated in IntelliJ Ultimate.

IDE emits the following error in idea.log:

"/Library/Ballerina/distributions/jballerina-1.2.7/bin/ballerina home" command. received output: Error: Ballerina is supported only on JDK 1.8`

Same error is emitted by the IDE when switching to Ballerina 1.2.5.
Note that running ballerina home directly via terminal is always successful:

$ballerina home
/Library/Ballerina/distributions/jballerina-1.2.7

Also, embedded JRE seems to be present as well: /Library/Ballerina/dependencies/jdk8u202-b08-jre

All other plugin functions seem to be working fine:

  • syntax highlighting
  • gutter icons for running the main/services files
  • actual compile and execution seems OK as well

Steps to reproduce:
Option 1: Open any ballerina file.
Option 2: Create hello world project in IntelliJ, then open the .bal file

Regardless of the above options, the resulting sequence diagram is blank.

Affected Versions:

  • Ballerina Distribution: 1.2.7, 1.2.5
  • Ballerina IntelliJ plugin: 1.2.7, 1.2.5

OS, DB, other environment details and versions:

  • OS: macOS 10.15.5
  • IDE: IntelliJ Ultimate, 2020.2
  • Java (JAVA_HOME): jdk1.8.0_45.jdk, jdk1.8.0_202.jdk
  • IntelliJ Runtime: JBR JDK 11b125, JBR JDK 11.0.7+10-b944.20
  • Also tried using same runtimes as listed under JAVA_HOME above

The following configuration on the same machine works fine:

  • Ballerina Distribution: 1.2.5
  • Ballerina IntelliJ plugin: 1.2.7, 1.2.5
  • IntelliJ Community, 2019.3.5
  • IntelliJ Runtime: JBR JDK 11.0.6+8-b520 x86_64
  • Java (JAVA_HOME): JBR JDK 11.0.6+8-b520 x86_64, jdk1.8.0_45.jdk, jdk1.8.0_202.jdk

UPDATE 1:
Using IntelliJ CE 2020.2:

  • default runtime (JBR JDK 11.0.7+10-b944 x86_64) also do not generate sequence diagram
  • however, using same runtime as 2019.3.5 (JBR JDK 11.0.6+8-b520 x86_64) the diagram can be generated successfully (see additional screenshot below)

Related Issues (optional):
Maybe related or similar to #24.

Suggested Labels (optional):
Question, Bug, IntelliJ Plugin

Suggested Assignees (optional):

Screenshots:

  • IntelliJ CE 2019.3.5 Build Information

IDEACE-2019 3 5-Details

  • IntelliJ CE 2019.3.5 with Sample Code and Proper Sequence Diagram

IDEACE-2019 3 5-Plugin1 2 7-Ballerina-1 2 5

  • IntelliJ Ultimate 2020.2 with Sample Code and Empty Sequence Diagram

IDEACE-2020 2-Plugin1 2 5-Ballerina-1 2 5

  • UPDATE 1: IntelliJ CE 2020.2 with Sample Code and Proper Sequence Diagram (using default IntelliJ Runtime for 2019.3.5: JBR JDK 11.0.6+8-b520 x86_64)

IDEACE-2020 2-Plugin1 2 5-Ballerina-1 2 7

@NipunaRanasinghe NipunaRanasinghe transferred this issue from ballerina-platform/ballerina-lang Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants