treeform / fidget

Figma based UI library for nim, with HTML and OpenGL backends.
MIT License
766 stars 31 forks source link

demo code fails to build #30

Closed UNIcodeX closed 4 years ago

UNIcodeX commented 4 years ago

I get the following error when trying to build demo.nim: Error: undeclared identifier: 'hLeft'

None of these seem to be defined and I don't know how they're supposed to be determined:

hLeft, vTop, cMinG, vCenter, hCenter, hRight
treeform commented 4 years ago

They are defined right here: https://github.com/treeform/fidget/blob/44b2144e0078cd4a7563c3fa6d64a67b3aa26d0d/src/fidget/uibase.nim#L19

Maybe you have older version of fidget installed but trying to run the newer demo?

guzba commented 4 years ago

How I tested this: cd to examples/ dir run nim js demo/demo.nim Open demo.html in browser

UNIcodeX commented 4 years ago

Alright. These are the package versions

nimble list --installed
chroma  [0.1.0]
cligen  [0.9.43]
fidget  [0.3.1]
flippy  [0.4.1]
glm  [1.1.1]
html5_canvas  [1.3]
illwill  [0.2.0]
imgui  [1.75.0]
mddoc  [0.0.4]
nimgl  [1.1.1]
nimPNG  [0.2.5]
nimterop  [0.4.4]
npeg  [0.22.2]
opengl  [1.2.3]
print  [0.1.0]
rapid  [0.1.0]
rdgui  [0.1.0]
regex  [0.13.1]
sdl2  [2.0.2]
segmentation  [0.1.0]
snappy  [0.1.0]
staticglfw  [4.0.1]
tinamou  [0.5.2]
typography  [0.2.4]
unicodedb  [0.9.0]
unicodeplus  [0.6.0]
vmath  [0.3.0]
winim  [3.3.1]
wnim  [0.10.2]
yaml  [0.13.1]

nim c -r demo/demo.nim gives me this: Error: undeclared identifier: 'cMinG'

treeform commented 4 years ago

I am looking at https://github.com/treeform/fidget/blob/master/examples/demo/demo.nim there is no mention of cMinG ... planty of cMin. I think your file has modifications.

UNIcodeX commented 4 years ago

Perhaps I typod it.

On Wed, Apr 1, 2020, 6:21 PM treeform notifications@github.com wrote:

I am looking at https://github.com/treeform/fidget/blob/master/examples/demo/demo.nim there is no mention of cMinG ... planty of cMin. I think your file has modifications.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/treeform/fidget/issues/30#issuecomment-607537033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB62P6XVIUREQRR23I77WX3RKPEAPANCNFSM4LVHLKUA .

treeform commented 4 years ago

I have updated the figma plugin to output the cMin stuff as well.