Opened 8 years ago
Closed 8 years ago
#4650 closed defect (fixed)
OMC opens wrong library
| Reported by: | 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)
Change History (12)
comment:1 by , 8 years ago
follow-up: 5 comment:4 by , 8 years ago
I renamed it a couple of times already, but I will try again.
by , 8 years ago
| Attachment: | HelmholtzMedia.mos added |
|---|
comment:5 by , 8 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 , 8 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 , 8 years ago
| Cc: | added |
|---|---|
| Component: | OMEdit → Interactive Environment |
| Milestone: | Future → 1.13.0 |
| Owner: | changed from to |
| Status: | new → assigned |
Loading a local copy of the library loads the library from omlibrary folder.
See the attachment HelmholtzMedia.mos
comment:8 by , 8 years ago
Please also note that I already reported this by email on 2017-07-25, sorry for the duplication.
comment:9 by , 8 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 , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
| Summary: | OMEdit opens wrong library → OMC opens wrong library |

Please attach
omeditcommunication.logfile.