﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6000	"Expected ""XXX"" to be a class, but found component instead."	timswait@…	Adeel Asghar	"I keep coming across an error of a form ""Expected 'XXX' to be a class, but found component instead."" when I try to insert a model into another model and I can't work out what is causing it. It seems to happen sporadically and I can't really work out what is causing it.

Most recently I was working on the attached ""frame_model_pack"" This contains ""frame_model"" which references two other models ""keel"" and ""control_frame"". This was working fine, then I made some minor adjustments to ""control_frame"" (changing the icon and tweaking some initial conditions) and now I get this error: 


{{{
[1] 13:52:42 Translation Error
[frame_model_pack: 16:3-17:117]: Expected control_frame to be a class, but found component instead.
}}}


Unfortunately I saved the model and re-opened OMEdit so I can't simply undo back to the working state! I simply don't understand why it went from working to not working like this. If I reference ""control_frame"" in another model outside of ""frame_model_pack"" then it does still work. Also 'keel' is inside ""frame_model_pack"" and that has no problem being referenced by ""frame_model"", so it's not that you can't reference a model from within the same package (and as I say, this was working until I made some minor tweaks to control_frame)."	defect	assigned	critical		OMEdit	v.1.15.0-dev			Adrian Pop
