tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2378-what-happened-to-dateutilInfinite Kind: Discussion 2019-12-12T19:20:24Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-07-07T09:42:01Z2019-07-07T09:42:01ZWhat happened to DateUtil?<div><p>Can anyone answer this?</p></div>sarfaraz.dawooditag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-07-08T06:39:22Z2019-07-08T06:39:35ZWhat happened to DateUtil?<div><p>To be clearer, this script works as expected in MD2017 but fails in MD2019. Can anyone tell me why this should happen?</p></div>sarfaraz.dawooditag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-07-08T06:53:33Z2019-07-08T06:53:33ZWhat happened to DateUtil?<div><p>OK - this is freaky. I changed</p>
<p>from com.infinitekind.util import *</p>
<p>to</p>
<p>from com.infinitekind.util import DateUtil</p>
<p>and then the script works in MD2019</p>
<p>So, why does import * work in MD2017 but not in MD2019 ?</p></div>sarfaraz.dawooditag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-07-08T06:55:16Z2019-07-08T06:55:16ZWhat happened to DateUtil?<div><p>and I get the same problem in another script using AccountUtil with the same effect.<br>
Changing</p>
<p>from com.infinitekind.moneydance.model import *<br>
to<br>
from com.infinitekind.moneydance.model import AccountUtil</p>
<p>gets my script working. Is this normal?</p></div>sarfaraz.dawooditag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-07-08T10:28:26Z2019-07-08T10:28:26ZWhat happened to DateUtil?<div><p>Yes, this seems to be something strange with the way that Jython maintains its index of classes in moneydance that are accessible. It is supposed to scan all jar files in the classpath when it launches and then cache the indexed results to avoid long subsequent startup delays. For some reason that isn't happening now, and I'm still trying to find a way around it.</p>
<p>Can you confirm which specific version and build of Moneydance you're using? I've made a bunch of tweaks to get this index to update since earlier MD2019 releases. If you're definitely on the latest version then I clearly have more work to do!</p>
<p>In the meantime, importing the class using the whole package name works, but I know that's really inconvenient.</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-07-08T10:31:23Z2019-07-08T10:31:23ZWhat happened to DateUtil?<div><p>Sean,</p>
<p>Thanks for the quick reply! I am using MD 2019.3 (1880). I am on MacOS 10.13.6</p>
<p>Sarfaraz</p></div>sarfaraz.dawooditag:infinitekind.tenderapp.com,2009-01-14:Comment/471611452019-09-12T19:13:03Z2019-09-12T19:13:03ZWhat happened to DateUtil?<div><p>Has there ever been a fix for this. It took me a while to find why my 2017 developed script was not working under 2019. Guess I have to list everyone of the classes for import that I use?</p></div>sprimost