-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: type mismatch Expression: httpbeast.initSettings #329
Comments
Hi @ejstembler The example works fine for me with
|
nimble list -i
asynctools [(version: 0.1.1, checksum: 54314dceabb06b20908ecb0f2c007e9ff3aaa054)]
db_connector [(version: 0.1.0, checksum: f9aa61913b739de65d6106323d270639016a54ba)]
httpbeast [(version: 0.4.1, checksum: b23e57a401057dcb9b7fae1fb8279a6a2ce1d0b8)]
jester [(version: 0.6.0, checksum: 4834f85e61ae39f6b6acfb74d3bbba62d8779b66)]
mustache [(version: 0.4.3, checksum: 9c7e49440ae9bb6494bd202eea6ef7405811c6bb)] nim -v
Nim Compiler Version 2.0.2 [MacOSX: amd64]
Compiled at 2024-03-31
Copyright (c) 2006-2023 by Andreas Rumpf
active boot switches: -d:release |
Please try to compile with Jester + Httpbeast on Nim v2.0 |
@ThomasTJdev I tried removing jester and httpbeast, then re-installing jester. However, the error persists. ➜ nimble remove jester
Looking for jester (any version)
Checking reverse dependencies
Prompt: The following packages will be removed:
... jester-0.6.0-4834f85e61ae39f6b6acfb74d3bbba62d8779b66
... Do you wish to continue? [y/N]
Answer: y
Removed jester-0.6.0-4834f85e61ae39f6b6acfb74d3bbba62d8779b66
➜ nimble remove httpbeast
Looking for httpbeast (any version)
Checking reverse dependencies
Prompt: The following packages will be removed:
... httpbeast-0.4.1-b23e57a401057dcb9b7fae1fb8279a6a2ce1d0b8
... Do you wish to continue? [y/N]
Answer: y
Removed httpbeast-0.4.1-b23e57a401057dcb9b7fae1fb8279a6a2ce1d0b8
➜ nimble install jester
Downloading https://github.com/dom96/jester using git
Verifying dependencies for [email protected]
Installing httpbeast@>= 0.4.0
Downloading https://github.com/dom96/httpbeast using git
Verifying dependencies for [email protected]
Info: Dependency on asynctools@#0e6bdc3ed5bae8c7cc9 already satisfied
Verifying dependencies for [email protected]
Installing [email protected]
Success: httpbeast installed successfully.
Installing [email protected]
Success: jester installed successfully.
➜ nim c -f -o:bin/app -r src/app.nim
Hint: used config file '/Users/ejstembler/.choosenim/toolchains/nim-2.0.2/config/nim.cfg' [Conf]
Hint: used config file '/Users/ejstembler/.choosenim/toolchains/nim-2.0.2/config/config.nims' [Conf]
...............................................................................................................................................................................
/Users/ejstembler/.nimble/pkgs2/jester-0.6.0-4834f85e61ae39f6b6acfb74d3bbba62d8779b66/jester.nim(531, 29) Error: type mismatch
Expression: httpbeast.initSettings(self.settings.port, self.settings.bindAddr,
self.settings.numThreads)
[1] self.settings.port: Port
[2] self.settings.bindAddr: string
[3] self.settings.numThreads: int
Expected one of (first mismatch at [position]):
[3] proc initSettings(port: Port = Port(8080); bindAddr: string = ""): Settings Where can I find the compile log? I didn't see any reference of it at Nim Compiler User Guide. What else should I try? Thanks. |
Hi @ejstembler
If that's not providing any answers, then you might want to try https://github.com/guzba/mummy with https://github.com/ThomasTJdev/mummy_utils |
Does the Custom router code on the README still work?
dotenv -o -f ".env" nim c -o:bin/app -r src/app.nim
Returns this compliation error:
The text was updated successfully, but these errors were encountered: