﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5710	Wrong error when duplicating a class (from the MSL)	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"I create a new package {{{A}}} in OMEdit. From the MSL I make a left click on {{{Modelica.Mechanics.Rotational.Components.IdealGear}}} and select {{{Duplicate}}}:

 * I leave the name {{{IdealGear}}}
 * I pick the path {{{A}}}

This causes an error and does NOT duplicate the model. The error message is:

{{{
Unable to create class IdealGear. Invalid name.

Please make sure you are not using any OpenModelica Keywords 
like (model, package, record, class etc.).
}}}

This issue is reproducible in:

{{{
Connected to OpenModelica 1.16.0~dev-48-gc5243a7
Connected to OMSimulator unknown-linux
}}}

**Two additional formal notes here:** 

1. In the error message: the keywords are Modelica keywords not OpenModelica keywords.

2. On my understand a sentence is always a full sentence even if I do not read what is written inside the parentheses. In this case the sentence 

{{{Please make sure you are not using any OpenModelica Keywords like (model, package, record, class etc.).}}} 

reads:

{{{Please make sure you are not using any OpenModelica Keywords like.}}} 

So I would just omit the parentheses: 

{{{Please make sure you are not using any Modelica Keywords like model, package, record, class etc.}}}

"	defect	closed	blocker	1.16.0	OMEdit	v1.16.0-dev	fixed		
