-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strategy on handling obsoleted/deprecated classes #1578
Comments
Modified by dietmarw on 3 Oct 2014 07:40 UTC |
Modified by dietmarw on 3 Oct 2014 07:42 UTC |
Comment by sjoelund.se on 3 Oct 2014 09:38 UTC |
Comment by dietmarw on 3 Oct 2014 15:08 UTC Just one extra remark. I was very conservative when suggesting to wait two minor versions with the removal. Given that we currently have a maintenance version i.e., a x.x.X version every other year (at most) one should probably say that waiting for two minor versions is too long. |
Comment by hansolsson on 3 Oct 2014 15:39 UTC
An alternative would be to formulate it in terms of time instead of in terms of versions, i.e. for a new minor or major version (not in a maintenance version such as 3.3.2) we may remove classes that have been obsolete for 'x months'. I don't think we want a class marked obsolete in 3.3.2 and then removed two months later in 3.4.0. However, we need user input for this, and when actually removing them it would be helpful to know how long each currently obsolete class has been obsolete - perhaps the obsolete-annotation could be extended to state that - or just clearly stated in revision-part. A slight issue with time-based is that we need to formulate it in a suitable way: |
Comment by dietmarw on 19 Dec 2014 07:01 UTC |
This has been discussed and decided, see 2018-12-05-Minutes-MAP-Lib-Next-Major-MSL.txt (MA access only). |
Technically, this issue still persists: With my installation of OpenModelica 1.22.1 on a Ubuntu 22.04.3 LTS, even the HelloWorld example shipped with the help files
produces three deprecation warnings which are pretty off-putting for newbies like me, tbh:
|
@cweickhmann There is no such file in the Modelica Standard Library repository. So I guess this is something that the OpenModelica project ships, so you might want to report it there. |
I will, thanks for the heads-up. But it's still related to the deprecation issue, imho. |
Well, there is nothing that can be done here. MSL was corrected wrt that. So if vendors decide to ship deprecated models or documentation that is up to them. |
Should work if you make the (unspecialized) class model HelloWorld
Real x(start = 1,fixed=true);
parameter Real a = 1;
equation
der(x) = - a * x;
end HelloWorld; |
Yes, you are right @dietmarw. The issue is with the docs. I'll check where to report that. |
Modified by dietmarw on 3 Oct 2014 07:42 UTC
Currently the MSL contains almost 90 classes marked as obsolete/deprecated and with a notice that they will be removed soon.
Now in my 9 years of following the MSL development I can not recall an actual removal having happened even once. So the question is what is the MA's strategy on handling obsolete/deprecated classes. I think I know the answer which is there is no strategy. So let me suggest the following:
Modelica.Icons.ObsoleteModel
) from the next minor version on (E.g., obsoleted in MSL3.1.x --> extends from ObsoleteModel from at least MSL 3.2.x on).Following those steps no-one should really be able to complain about the MSL breaking their library. If it does then clearly the library developer have not tested their library with the MSL (at all I would say) and we as MA can not take care of the QA of other libraries. As it is the MA is struggling with its own QA enough as it is.
PS: *Could any native English speaker (I'd accept AE aswell ;-) ) explain the correct usage of obsolete vs. deprecate. I'm really struggling here to use the right one and so does the MSL as it seems. Thanks!*
Modified by dietmarw on 3 Oct 2014 07:40 UTC
Currently the MSL contains almost 90 classes marked as obsolete/deprecated and with a notice that they will be removed soon.
Now in my 9 years of following the MSL development I can not recall an actual removal having happened even once. So the question is what is the MA's strategy on handling obsolete/deprecated classes. I think I know the answer which is there is no strategy. So let me suggest the following:
Modelica.Icons.ObsoleteModel
) from the next minor version on (E.g., obsoleted in MSL3.1.x --> extends from ObsoleteModel from at least MSL 3.2.x on).Following those steps no-one should really be able to complain about the MSL breaking their library. If it does then clearly the library developer have not tested their library with the MSL (at all I would say) and we as MA can not take care of the QA of other libraries. As it is the MA is struggling with its own QA enough as it is.
PS: *Could any native English speaker (I'd accept AE aswell ;-) ) explain the correct usage of obsolete vs. deprecate. I'm really struggling here to use the right one and so does the MSL as it seems. Thanks!*
Reported by dietmarw on 3 Oct 2014 07:31 UTC
Currently the MSL contains almost 90 classes marked as obsolete/deprecated and with a notice that they will be removed soon.
Now in my 9 years of following the MSL development I can not recall an actual removal having happened even once. So the question is what is the MA's strategy on handling obsolete/deprecated classes. I think I know the answer which is there is no strategy. So let me suggest the following:
Modelica.Icons.ObsoleteModel
) from the next minor version on (E.g., obsoleted in MSL3.1.x --> extends from ObsoleteModel from at least MSL 3.2.x on).Following those steps no-one should really be able to complain about the MSL breaking their library. If it does then clearly the library developer have not tested their library with the MSL (at all I would say) and we as MA can not take care of the QA of other libraries. As it is the MA is struggling with its own QA enough as it is.
PS: *Could any native English speaker (I'd accept AE aswell ;-) ) explain the correct usage of obsolete vs. deprecate. I'm really struggling here to use the right one and so does the MSL as it seems. Thanks!*
Migrated-From: https://trac.modelica.org/Modelica/ticket/1578
The text was updated successfully, but these errors were encountered: