yglukhov / nimx

GUI library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error building on MacOSX [error layout_vars.nim]

nixfreak opened this issue · comments

Compiling nakefile... No task specified, running default task defined by nakefile. Hint: used config file '/Users/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf] Hint: used config file '/Users/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf] ................................................................................... /Users/.nimble/pkgs/async_http_request-0.1.2/async_http_request.nim(125, 34) template/generic instantiation of request` from here
/Users/.choosenim/toolchains/nim-#devel/lib/pure/httpclient.nim(1058, 14) Warning: Deprecated since v1.5; use HttpMethod enum instead; string parameter httpMethod is deprecated [User]
...................................
/Users/.nimble/pkgs/nimx-0.1/nimx/layout_vars.nim(19, 32) Error: type mismatch: got
but expected one of:
proc newExpression(constant: float = 0): Expression
first type mismatch at position: 1
required type for constant: float
but expression 'left(phs)' is of type: Variable
proc newExpression(term: Term; constant: float = 0): Expression
first type mismatch at position: 1
required type for term: Term
but expression 'left(phs)' is of type: Variable
proc newExpression(terms: seq[Term]; constant: float = 0): Expression
first type mismatch at position: 1
required type for terms: seq[Term]
but expression 'left(phs)' is of type: Variable

expression: newExpression(left(phs))`

I tracked down layout_vars.nim

line 13,22

image

I don't see a -newExpression in kiwi either
https://github.com/yglukhov/kiwi/blob/master/kiwi/expression.nim

Let me know what I can do to help out , if needed

Building and running correctly now.

Removed kiwi from nimble pkgs and reinstalled kiwi.