MontealegreLuis / phuml

phUML is a UML diagram generator. It takes arbitrary object oriented PHP code and creates fully blown class diagrams of it.
BSD 3-Clause "New" or "Revised" License
100 stars 19 forks source link

Failed to create ".": mkdir(): File exists #12

Closed theseer closed 2 years ago

theseer commented 2 years ago

When trying to give phuml a run against phive like this, I get the above error:

theseer@nyda /tmp/x5 $ php ./tools/phuml phuml:diagram -r -p neato  ~/storage/php/phar.io/phive/src ./test.png
[|] Running... (This may take some time)
[|] Parsing codebase structure
[|] Running 'Graphviz' processor
[|] Running 'Neato' processor
[|] Writing generated data to disk

In Filesystem.php line 97:

  Failed to create ".": mkdir(): File exists  

I'm not sure what to do to avoid that from happening :)

MontealegreLuis commented 2 years ago

Hi @theseer! thank you for giving phUML a try!

It means a lot to me. I'm a big fan of your work in the PHP community.

I think I never tried to use absolute/relative paths for the output file, all my examples created a file in the current directory.

I have opened this MR: https://github.com/MontealegreLuis/phuml/pull/14. If you try that branch it should let you save to ./test.png

MontealegreLuis commented 2 years ago

Hi @theseer 5.2.1 should solve this issue.

theseer commented 2 years ago

Confirmed. Thanks!