plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.41k stars 1.1k forks source link

Preview file not working in Visual Studio Code #226

Closed scmay closed 2 years ago

scmay commented 2 years ago

Installed PlantUML via Chocolatey (latest version) Opening an existing diagram throws this error. C4.puml has been identical with github version. Dumping file contents into online server generates the file preview, so I am not sure why this is not working for Visual Studio Code. previewFail

Can anyone assist?

Potherca commented 2 years ago

Could you check which PlantUML version you are using locally? This can be done by creating the following diagram:

@startuml
version
@enduml

That should output something like this:

scmay commented 2 years ago

I solved it in the end. Uninstall/reinstall VSCode, uninstall/reinstall PlantUML extension on VSCode, clean out the settings file. Also upgrade to the latest PlantUML

Though when I add Yog PlantUML Highlight extension that error returned, so I had to redo the steps again.

Potherca commented 2 years ago

Good to hear you got things working!

(Closing issue as resolved)