Opened 4 years ago

Last modified 3 years ago

#6438 accepted defect

A lookup issue

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: high Milestone:
Component: Interactive Environment Version: v1.17.0-dev
Keywords: Cc: Adrian Pop

Description (last modified by Adrian Pop)

Steps to reproduce:
1) load TestPackage.mo, and open Test: we have a red box because MyModel is missing
2) load Test1.mo and duplicate its model MyModel into TestPackage. Look at model Test inside TestPackage: the red box should disappear, but it does not.
3) save, unload and re-load TestPackage again
4) open Test inside TextPackage: the red box has disappared and now myModel is displayed.

So the issue is in point 2.

Tested with 1.17.0-dev.beta3.

Attachments (4)

TestPackage.mo (569 bytes ) - added by massimo ceraolo 4 years ago.
Test1.mo (1.1 KB ) - added by massimo ceraolo 4 years ago.
TestPackage1.mo (1.6 KB ) - added by Adeel Asghar 3 years ago.
script.mos (201 bytes ) - added by Adeel Asghar 3 years ago.

Download all attachments as: .zip

Change History (9)

by massimo ceraolo, 4 years ago

Attachment: TestPackage.mo added

by massimo ceraolo, 4 years ago

Attachment: Test1.mo added

comment:1 by Adrian Pop, 4 years ago

Description: modified (diff)

comment:2 by Adeel Asghar, 4 years ago

Milestone: 1.17.11.18.0
Status: newaccepted

by Adeel Asghar, 3 years ago

Attachment: TestPackage1.mo added

by Adeel Asghar, 3 years ago

Attachment: script.mos added

comment:3 by Adeel Asghar, 3 years ago

The problem is getElements returns MyModel instead of TestPackage.MyModel when the class is not found.

comment:4 by Adeel Asghar, 3 years ago

Cc: Adrian Pop added
Component: OMEditInteractive Environment

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.