Community
Participate
Working Groups
When you try to generate a file using a template to compute the path a exception occurs NosuchElementException. I am trying to create a sample project to make it reproducible, anyway the problem occurs when a file path is empty (not an empty string). [template public genFileName(classifier : uml::Classifier, ext : String) ? (true) post(trim())][/template]
Created attachment 186747 [details] a sample with error occuring launch Generate on the uml model, the error occurs
Created attachment 186972 [details] patch adding exception the patch
Created attachment 186973 [details] mylyn/context/zip
Thanks to laurent this patch throws a correct exception when the file name is empty. This log an error and the generation can continue. Just a question, it seems the key AcceleoEvaluationVisitor.NotStringFileURL is not present in acceleoenginemessages.properties
Thanks for the patch, this has been commited on both HEAD and 3.0 maintenance. As for the NotStringFileURL key ... seems like an oversight. That's been fixed too.