can-lehmann / owlkettle

A declarative user interface framework based on GTK 4
https://can-lehmann.github.io/owlkettle/README
MIT License
375 stars 15 forks source link

Example: Todo app Error - UPDATE all examples error out. #18

Closed nixfreak closed 2 years ago

nixfreak commented 2 years ago

Nim Version = 1.6.6 Stable

Error: Undeclared field: 'has_margine'

When running example todo.nim

nim c -r todo.nim Hint: used config file '/home/nixfreak/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf] Hint: used config file '/home/nixfreak/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf] ............................................................................................... /home/nixfreak/.nimble/pkgs/owlkettle-1.3.0/owlkettle/widgetdef.nim(510, 6) Hint: 'gen_docs' is declared but not used [XDeclaredButNotUsed] ....... /home/nixfreak/.nimble/pkgs/owlkettle-1.3.0/owlkettle.nim(35, 24) Hint: conversion from WidgetState to itself is pointless [ConvFromXtoItselfNotNeeded] /home/nixfreak/.nimble/pkgs/owlkettle-1.3.0/owlkettle.nim(68, 7) Hint: 'status' is declared but not used [XDeclaredButNotUsed] /home/nixfreak/nim/gui/owlkettle/examples/todo.nim(35, 12) template/generic instantiation of gui from here /home/nixfreak/.nimble/pkgs/owlkettle-1.3.0/owlkettle/guidsl.nim(197, 22) Error: undeclared field: 'has_margin' for type widgets.Box [type declared in /home/nixfreak/.nimble/pkgs/owlkettle-1.3.0/owlkettle/widgetdef.nim(243, 10)]

UPDATE:: All examples have giving the same error.

nixfreak commented 2 years ago

Nevermind I did a git pull on OwlKettle 1.0 but didn't actually install it. OwlKettle 2.0 examples work just fine.

Sorry for the alarm