yoshimkd / swift-auto-diagram

A Ruby script that scans all swift code from the specified folders and files and automatically generates an entity diagram (similar to a class diagram) which can be viewed in a browser.
MIT License
496 stars 57 forks source link

Unable to run Swift Class Diagram on my swift project #20

Open uagraw opened 5 years ago

uagraw commented 5 years ago

Hi Team,

I'm unable to run Swift Class Diagram on my swift project. Upon running the command, the web page with UML diagram isn't opening up.

Also, when I'm trying to run this utility on sample swift project (https://github.com/soapyigu/Swift-30-Projects), this tool isn't giving me the UML diagram, instead only Connection diagram is being returned.

Please advice!

Thanks!

Cc: abhinav.kumar4@sapient.com

yoshimkd commented 5 years ago

Hello @uagraw,

Thank you for reporting this issue. Unfortunately, our latest update changed the logic of the diagram creation which is why you're getting a different type of diagram. Here's the full explanation: https://github.com/yoshimkd/swift-auto-diagram/issues/18#issuecomment-435686121. Can you please try the workaround mentioned there and let us know if that diagram is good for you?

Best Regards, Jovan

uagraw commented 5 years ago

Thanks Jovan for your prompt reply. Will give it a try using the workaround.

But besides that, could you help us in knowing that why this tool isn't generating any diagram for my swift project? When I run the command from terminal, i.e. 'ruby generateEntityDiagram.rb ~/documents/bbbiOS-swiftTools/bbbiOS', it doesn't generates any output.

screen shot 2018-11-29 at 4 04 58 pm
yoshimkd commented 5 years ago

I can't tell what is happening without more information. You can run the command with the -v option to get more details about what is happening.