qjebbs/vscode-plantuml

PlantUML extension is not generating a relationship between the struct and the class

mrezabayat opened this issue ยท 3 comments

The PlantUML VSCode extension is not generating a relationship between the struct and the class when the following code is used:

@startuml test
namespace a{
struct foo{}
class bar{}
}

a.foo <|-- a.bar
@enduml

This issue is not present when using the online PlantUML, as the relationship is generated as expected.

Steps to Reproduce

  1. Open Visual Studio Code and install the PlantUML extension.
  2. Create a new .puml file in Visual Studio Code.
  3. Copy the code above and paste it into the .puml file.
  4. Render PlantUML Diagram.
  5. Observe that no relationship is generated between the struct and the class.

Expected Result

The PlantUML VSCode extension should generate the relationship between the struct and the class as it does in the online PlantUML.

System Configuration

Visual Studio Code:

  • Version: 1.75.0 (user setup)
  • Commit: e2816fe719a4026ffa1ee0189dc89bdfdbafb164
  • Date: 2023-02-01T15:23:45.584Z
  • Electron: 19.1.9
  • Chromium: 102.0.5005.194
  • Node.js: 16.14.2
  • V8: 10.2.154.23-electron.0
  • OS: Windows_NT x64 10.0.19044
  • Sandboxed: No

PlantUML extension version: v2.17.5
Operating System: Windows 10 - Build 19044.2486

Additional Information

Any additional information that could be helpful in resolving this issue.

Hi @mrezabayat, and all,

It seems due to the old version of plantuml.jar on VSCODE PlantUML extension.
Because VSCode PlantUML extension version 2.17.5 contains plantuml.jar version 1.2022.14 embedded.

And the namespace issues will only be improved from v1.2023.2betaX
See "change about package and namespace" on:

Then:

  • Could you update your jar or use online version?

See expected result with v1.2023.2beta4:

If that can help,
Regards.

Perfect. That solved the problem.
Feel free to close the issue.

It's even worse than that, this is jar v1.2022.7 in 2.17.5 => see #528