jester icon indicating copy to clipboard operation
jester copied to clipboard

jester.nim(369, 24) Error: type mismatch: got <Request, utils.Settings> (0.5.0)

Open sdmcallister opened this issue 2 years ago • 0 comments

I wanted to try doing a bit of work on jester but I'm having trouble getting started and would appreciate any help.

I checkedout 0.5.0 and attempted to run a basic test program:

import "jester/jester"

routes:
  get "/":
    resp "Working"

I get:

C:\Users\me\NimProjects\jester\jester.nim(369, 24) Error: type mismatch: got <Request, utils.Settings>              

 but expected one of:                                                                                                    

proc initRequest(req: NativeRequest; settings: Settings): Request                                                        

 first type mismatch at position: 2                                                                                      

required type for settings: Settings                                                                                   

 but expression 'jes.settings' is of type: Settings          
                                                                                                                                                                                 
 expression: initRequest(httpReq, jes.settings)     

Running the same test program using the jester installed with nimble works fine.

sdmcallister avatar Sep 03 '21 10:09 sdmcallister