question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusing error message "no @startuml found"

See original GitHub issue

Copied a uml document from Jira, it lacks the @enduml tag and I get the confusing error message “no @startuml found”.

To reproduce, create a file with the following uml:

@startuml
:Hello world;
:This is defined on
several **lines**;

Then press Alt+D:

2019-10-10 12_50_52-New Issue · qjebbs_vscode-plantuml

Adding the @enduml tag fixed the problem. However, for a newbie pasting some random puml this was a bit confusing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
fuhrmanatorcommented, Dec 4, 2019

Took me some time, but I think it’s here: https://github.com/qjebbs/vscode-plantuml/blob/376caa7a89bc00f181f4ce13cc6603bc1c78c9ff/src/plantuml/renders/local.ts#L49

Here’s how to reproduce it:

$ java -jar plantuml.jar -verbose -pipe < test.puml > out.png

Then view the out.png:

image

I tagged the PlantUML developer so he hopefully will see it here.

1reaction
DanielSundbergcommented, Dec 4, 2019

I also wanted to report this upstream but gave up since I could not get plantuml.jar to report the same error.

If we reported this as is I’m pretty sure PlantUml would say it’s a problem in this vscode-plantuml (since we get different behavior using plantuml command line).

Read more comments on GitHub >

github_iconTop Results From Across the Web

plantUML class diagram not visualized and given error
I installed this plugin and tried to draw uml diagram using PlantUML in IntelJ (or Visual Studio code). But both IDEs gave the...
Read more >
Frequently Asked Questions - PlantUML
This message means that PlantUML is getting an empty flow from dot execution, and therefore cannot generate UML diagrams.
Read more >
Error: Restricted shell escape. PlantUML cannot be called - TeX
I am using latex-workshop with VS Code. beamer · texlive · linux · vscode · Share.
Read more >
Special Commands - Doxygen Manual
When this command is put in a comment block of a function, method or variable then doxygen will not generate an overview for...
Read more >
Auto generating UML diagrams from ABAP code - SAP Blogs
And occasionally by doing the doco, I even find some small errors in my code that I hadn't seen before. InnoJam Sydney 2011....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found