meisyal / staruml-ruby

A Ruby extension for StarUML.
https://staruml.io/extensions
MIT License
26 stars 1 forks source link

Error file already exists when generating code #8

Closed meisyal closed 5 years ago

meisyal commented 6 years ago

The app will throw an error Uncaught (in promise) Error: EEXIST: file already exists, mkdir ... when generating code. This issue happens because the destination path of generated code contains the existed folder or files. To fix the issue, we should:

  1. Check the destination path of generated code contains existed folder or files.
  2. Ask to overwrite the folder or create a new folder with different name (user chooses the same path, well, they can choose different path).
  3. Generate the code as usual.

This issue will be fixed in the next release.

meisyal commented 5 years ago

This issue has been fixed in release 0.1.8.