dom96 / jester

A sinatra-like web framework for Nim.
MIT License
1.57k stars 120 forks source link

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

Closed sdmcallister closed 2 years ago

sdmcallister commented 3 years ago

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.