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.

Can't parse named diagrams

See original GitHub issue

Describe the bug PUML diagrams can have names which comes right after the start directive.

Currently the tool breaks when passing such diagrams.

To Reproduce

  1. try to parse or parseFile a named diagram
  2. See error:
return new peg$SyntaxError(
           ^
SyntaxError: Expected "(", "\n", "\r\n", or [ \t] but "n" found.

PlantUML

@startuml name
  class A
  class B
  A --|> B
@enduml

Expected behavior Tool should parse normally.

Screenshots N/A

Desktop (please complete the following information):

  • OS: Mac OS Mojave
  • node
  • v12

Smartphone (please complete the following information): N/A

Additional context N/A

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Enteeecommented, Oct 25, 2019

Asked in the forum if this should be considered valid syntax: https://forum.plantuml.net/10366/are-diagram-names-a-supported-feature

0reactions
The-Lumcommented, Jul 27, 2021

Hello all,

Same answer as on https://github.com/qjebbs/vscode-plantuml/issues/393#issuecomment-887699255

FYI: it is quickly defined here:

See also:

And FYI, all those sources are valids:

@startuml BobAndAlice
Bob -> Alice : hello
@enduml

@startuml BAndA.png
B -> A : hello
@enduml

@startuml{myotherimage.png}
a->b
@enduml

@startuml{myotherimage.png,This is my other caption text,width=16cm}
b->a
@enduml

Ref. :

Regards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message name parsing - No Magic Documentation
Message name parsing. On a Message name area on a diagram pane, you can type the name of a new Operation together with...
Read more >
[Solved] Photoshop File Format Module Cannot Parse the File?
Method 1: Open the File in Paint · Method 2: Change the DWORD Value for Adobe Photoshop in Windows Registry · Method 3:...
Read more >
pandas.to_numeric - find out which string it was unable to parse
I have thought the very same thing, and I don't know if there's a better way, but my current workaround is to search...
Read more >
Module parse failed: You may need an appropriate loader to ...
I have an existing project (with custom webpack.config.dev.js file) that I want to integrate with storybooks but after following the getting ...
Read more >
ENGINE-09005 Could not parse BPMN process
Hi to everyone. I have set up my process application and I have modelled my BPMN 2.0 process according to the steps referenced...
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