> On Aug 26, 2015, at 2:53 PM, [email protected] wrote:
> 
> Hello,
> 
> I was wondering if someone could help me with the following. I'm setting up 
> the handin collection for a class. 
> 
> When I submit the code to my handin-server I get the following error:
> 
> -ERROR MESSAGE-----------------------------
> commit error: start-timer: arity mismatch;
>  the expected number of arguments does not match the given number
>   expected: 3
>   given: 2
>   arguments...:
>    0
>    #<procedure>
> 
> -END ERROR MESSAGE-----------------------------
> 
> I traced the issue to the write-report function in the config file. Inside of 
> write-report a start-timer function call is made with 2 arguments. The 
> start-timer function consumes 3 arguments per the documentation here: 
> http://docs.racket-lang.org/web-server-internal/timer.html?q=start-timer#%28def._%28%28lib._web-server%2Fprivate%2Ftimer..rkt%29._start-timer%29%29
> 
> I opened up the write-report's definition in the grading-utilities.rkt and 
> here is the call to start-timer which seems to be missing a parameter:
> 
> (start-timer (* 60 report-delay)
>                         (thunk
>                          (with-output-to-file
>                              (build-path dir 
>                                          (format "~a-report-~a.txt"
>                                                  (string-join users "+")      
>                                   
>                                                  ts))
>                            #:exists 'replace
>                            (thunk (display report-string)))))
> 
> I'm not sure what to do now. Any suggestions? Below are my files.

It looks like the ‘tm’ argument to start-timer is missing. My guess is that the 
‘tm’ argument was added to the start-timer definition since the last time the 
‘write-report’ function was used. My guess is that the handin-server should 
create (or obtain?) a timer manager using (start-timer-manager) when it’s 
started. I’m guessing Jay McCarthy knows more about this.

John Clements



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/5f6b349b-4919-4fd1-a969-ef289796d3b8%40mtasv.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to