abstratt / cloudfier

Cloudfier is a model-driven tool for rapid development of business applications
http://cloudfier.com
Other
22 stars 4 forks source link

non-ascii characters being mangled in CLI commands #234

Open abstratt opened 7 years ago

abstratt commented 7 years ago

The CLI commands add-entity, add-namespace will mangle non-ASCII characters when generating a file name and/or model element names, replacing them with underscores.

abstratt commented 7 years ago

cc: @atanaka

abstratt commented 7 years ago

Also, the init-project fails to convert (or escape) on-ASCII characters to ISO-8859-1 when generating the mdd.properties file.

atanaka commented 7 years ago

Thank you for the response. That means I should not to use non-ASCII characters for file name (e.g. "first" in this case). Since it's init phase and no contents are created, I can advise this guideline to my readers. For the time being, I will create mdd.properties and model file with right click->new->file route. Is there anything more that init command does/generates?

Best Akira

On Tue, Aug 29, 2017 at 10:27 PM, Rafael Chaves notifications@github.com wrote:

Also, the init-project fails to convert (or escape) on-ASCII characters to ISO-8859-1 when generating the mdd.properties file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/abstratt/cloudfier/issues/234#issuecomment-325663322, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1PyR5UIb-Af6yfWAzfVeOGLF238jcQks5sdBHVgaJpZM4PF7gF .

abstratt commented 7 years ago

The init-project command creates a mdd.properties file. You can still use this command as it is right now. There may be issues around showing the application name on the upper left side of the generic UI (it will show underline chars in place of the non-ISO-8859-1 characters):

image

Removing/commenting out/renaming the mdd.application.name or changing it to an ASCII-based name should avoid that,

The add-namespace and add-entity commands create new source files, the first as an empty UML package, the latter as a package containing a single class. Those things can be done directly via the editor.