colinsheppard / time

A NetLogo extension that brings date/time utilities and discrete event scheduling to NetLogo
12 stars 13 forks source link

time:create-with-format Extension could not parse input: and Some(dd-MMM-yyyy) #61

Open platipodium opened 1 year ago

platipodium commented 1 year ago

Given this input show time:create-with-format "01-Jan-2022" "dd-MMM-yyyy" the extension fails

Extension exception: Extension could not parse input:  and Some(dd-MMM-yyyy)
error while observer running TIME:CREATE-WITH-FORMAT
  called by Command Center

org.nlogo.nvm.WrappedExtensionException: Extension exception: Extension could not parse input:  and Some(dd-MMM-yyyy)
 at org.nlogo.prim._externreport.report(_externreport.java:35)
 at org.nlogo.prim.etc._show.perform(_show.scala:12)
 at org.nlogo.nvm.Context.stepConcurrent(Context.java:107)
 at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.scala:65)
 at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:133)
 at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68)
 at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
 at scala.util.control.Exception$Catch.apply(Exception.scala:228)
 at org.nlogo.api.Exceptions$.handling(Exceptions.scala:41)
 at org.nlogo.job.JobThread.run(JobThread.scala:66)
Caused by: org.nlogo.api.ExtensionException: Extension could not parse input:  and Some(dd-MMM-yyyy)
 at org.nlogo.extensions.time.datatypes.LogoTime.<init>(LogoTime.scala:112)
 at org.nlogo.extensions.time.primitives.TimePrimitives$CreateWithFormat.report(TimePrimitives.scala:86)
 at org.nlogo.prim._externreport.report(_externreport.java:31)
 ... 9 more

NetLogo 6.3.0
main: org.nlogo.app.AppFrame
thread: JobThread
OpenJDK 64-Bit Server VM 17.0.3 (Azul Systems, Inc.; 17.0.3+7-LTS)
operating system: Mac OS X 13.4 (aarch64 processor)
Scala version 2.12.16
JOGL: (3D View not initialized)
OpenGL Graphics: (3D View not initialized)
model: vinos

08:44:08.082 RuntimeErrorEvent (org.nlogo.app.App$$anon$4 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.window.ChooserWidget) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0
08:44:08.080 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0