Opened 7 years ago
Closed 7 years ago
#4650 closed defect (fixed)
OMC opens wrong library
Reported by: | Matthis Thorade <m.thorade@…> | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | Interactive Environment | Version: | |
Keywords: | Cc: | adrpo, perost |
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)
Change History (12)
comment:1 Changed 7 years ago by adeas31
comment:2 Changed 7 years ago by Matthis Thorade <m.thorade@…>
When I try to add a second attachment, Trac is giving an error.
comment:3 Changed 7 years ago by adeas31
Maybe you need to rename it.
comment:4 follow-up: ↓ 5 Changed 7 years ago by Matthis Thorade <m.thorade@…>
I renamed it a couple of times already, but I will try again.
Changed 7 years ago by adeas31
comment:5 in reply to: ↑ 4 Changed 7 years ago by adeas31
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 Changed 7 years ago by Matthis Thorade <m.thorade@…>
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 Changed 7 years ago by adeas31
- Cc adrpo perost added
- Component changed from OMEdit to Interactive Environment
- Milestone changed from Future to 1.13.0
- Owner changed from adeas31 to sjoelund.se
- Status changed from new to assigned
Loading a local copy of the library loads the library from omlibrary folder.
See the attachment HelmholtzMedia.mos
comment:8 Changed 7 years ago by Matthis Thorade <m.thorade@…>
Please also note that I already reported this by email on 2017-07-25, sorry for the duplication.
comment:9 Changed 7 years ago by sjoelund.se
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 Changed 7 years ago by sjoelund.se
- Resolution set to fixed
- Status changed from assigned to closed
- Summary changed from OMEdit opens wrong library to OMC opens wrong library
Please attach omeditcommunication.log file.