Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Save package

Save package

Hello,
I'm new with OMEdit, but I have not been able to resolve this:
I create a new package, save it, close it (no error message, everything seems to be working fine) and close OMEdit. I open the package again, only heading and closing remains.
It is the same problem with class definition in models, the class definitions disappear but not the rest...
It looks like this bug: Bug [# 1404] that has been resolved recently as WORKSFORME.
I work under Window XP, I don't know if it helps.
Thanks.


for example, I save:

package Package0
record Rec1
  Real A1;
  Real A2;
end Rec1;
record Rec2
  Real B1;
  Real B2;
end Rec2;
end Package0;

When I open it again, only remains:

package Package0
end Package0;

Re: Save package

I will check this thing real quick and try to respond to you before this weekend.

Adeel.

Re: Save package

Was there a resolution to this?  Packages still do not save for me.

Lewis

Re: Save package

Try the new nighly build http://build.openmodelica.org/omc/build … y-builds/. This problem is solved now,

I tried your code and it works fine,
- Run OMEdit create a package Package0
- Then go to Modelica Text view select All and replace it with your text.
- Save the package.
- Clode OMEdit.
- Start OMEdit again.
- Open your package.

These are the steps i followed.

Regards,
Adeel.

Re: Save package

Yes, it is working now !
Thanks for the correction, working with OMEdit will be possible again.
JB.

Re: Save package

I can now save packages.   Thanks!

I still get the message "There are unsaved models.  Are sure you want to quit?".   After accepting "yes" and checking, the edit has been recorded in the package file as it should.

One of the package models has an asterix on the tab, signifying there are unsaved changes.   Going directly to that tab and pushing "save" results in the "this will be automatically saved with the package" message.

Lewis

There are 0 guests and 0 other users also viewing this topic