Opened 7 years ago

Closed 7 years ago

#4650 closed defect (fixed)

OMC opens wrong library

Reported by: Matthis Thorade <m.thorade@…> Owned by: Martin Sjölund
Priority: high Milestone: 1.13.0
Component: Interactive Environment Version:
Keywords: Cc: Adrian Pop, Per Östlund

Description

This is a strange issue:
Whenever I try to open a local copy of the HelmholtzMedia library, OMEdit instead opens the copy that was distributed with OpenModelica. Renaming my personal, editable copy does not change that. I cannot reproduce with other libraries, but with HelmholtzMedia it happens on Windows and Linux.

Attachments (2)

omeditcommunication.log (2.3 MB ) - added by anonymous 7 years ago.
from Ubuntu
HelmholtzMedia.mos (116 bytes ) - added by Adeel Asghar 7 years ago.

Change History (12)

comment:1 by Adeel Asghar, 7 years ago

Please attach omeditcommunication.log file.

by anonymous, 7 years ago

Attachment: omeditcommunication.log added

from Ubuntu

comment:2 by Matthis Thorade <m.thorade@…>, 7 years ago

When I try to add a second attachment, Trac is giving an error.

comment:3 by Adeel Asghar, 7 years ago

Maybe you need to rename it.

comment:4 by Matthis Thorade <m.thorade@…>, 7 years ago

I renamed it a couple of times already, but I will try again.

by Adeel Asghar, 7 years ago

Attachment: HelmholtzMedia.mos added

in reply to:  4 comment:5 by Adeel Asghar, 7 years ago

Replying to Matthis Thorade <m.thorade@…>:

I renamed it a couple of times already, but I will try again.

Forget it. I can reproduce the issue.

comment:6 by Matthis Thorade <m.thorade@…>, 7 years ago

Did you mean rename the attachment or the library?
Regarding the attachment, I cannot even open the page to upload a file, the error is issued before that.
Regarding the library: I only renamed the containing directory, not the library itself (and the directory of the top level package.mo has to have the same name as the library).

comment:7 by Adeel Asghar, 7 years ago

Cc: Adrian Pop Per Östlund added
Component: OMEditInteractive Environment
Milestone: Future1.13.0
Owner: changed from Adeel Asghar to Martin Sjölund
Status: newassigned

Loading a local copy of the library loads the library from omlibrary folder.
See the attachment HelmholtzMedia.mos

comment:8 by Matthis Thorade <m.thorade@…>, 7 years ago

Please also note that I already reported this by email on 2017-07-25, sorry for the duplication.

comment:9 by Martin Sjölund, 7 years ago

https://github.com/OpenModelica/OMCompiler/pull/2092 should work more as expected now. Although I suspect if you have multiple libraries in the directory, OMC might still load another version of a dependency...

comment:10 by Martin Sjölund, 7 years ago

Resolution: fixed
Status: assignedclosed
Summary: OMEdit opens wrong libraryOMC opens wrong library
Note: See TracTickets for help on using tickets.