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

generateEntityDiagram.rb (LoadError) #17

Open Xcode09 opened 6 years ago

Xcode09 commented 6 years ago

I enter my project but this error comes ruby: No such file or directory what is problem

yoshimkd commented 6 years ago

Can you please give us some more information on how you invoke the ruby command and what is the folder structure?

Karencse commented 3 years ago

Hello. I'm having the same problem. I run the command git clone https://github.com/yoshimkd/swift-auto-diagram into Terminal. Then ruby generateEntityDiagram.rb ~/User/ProjectName and then I get the error ruby: No such file or directory -- generateEntityDiagram.rb (LoadError).

What I'm doing wrong? Thanks for the help!

yoshimkd commented 3 years ago

@Karencse Do you execute the command from the directory where the generateEntityDiagram.rb script is located (the cloned directory)?

Karencse commented 3 years ago

@Karencse Do you execute the command from the directory where the generateEntityDiagram.rb script is located (the cloned directory)?

Hello yoshimkd, thanks for your answer. I checked that. I'm executing the command from the directory (swift-auto-diagram). The project is in my desktop. So I called ruby generateEntityDiagram.rb~/Users/karencruz/Desktop/TrackingApp

but im still having this issue. ruby: No such file or directory -- generateEntityDiagram.rb~/Users/karencruz/Desktop/TrackingApp (LoadError)

yoshimkd commented 3 years ago

@Karencse There should be a space character before specifying the directory: ruby generateEntityDiagram.rb ~/Users/karencruz/Desktop/TrackingApp.

jodanelysee commented 1 year ago

@yoshimkd Hello yoshimkd, I am having a similar issue.

I am typing -- ruby generateEntityDiagram.rb ~/Users/jodanelysee/Desktop/Bullseye -- into my terminal and it keeps on telling me: ruby: No such file or directory -- generateEntityDiagram.rb (LoadError)

When I check the info on the file that I want to diagram, that is the file path that it is giving me and It is still not working. What could I do to fix this?