Skip to content
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

demo code fails to build #30

Closed
UNIcodeX opened this issue Mar 27, 2020 · 6 comments
Closed

demo code fails to build #30

UNIcodeX opened this issue Mar 27, 2020 · 6 comments

Comments

@UNIcodeX
Copy link

UNIcodeX commented Mar 27, 2020

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
Copy link
Owner

They are defined right here:

HAlign* = enum

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

@guzba
Copy link
Contributor

guzba commented Mar 27, 2020

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

@UNIcodeX
Copy link
Author

UNIcodeX commented Apr 1, 2020

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
Copy link
Owner

treeform commented Apr 1, 2020

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
Copy link
Author

UNIcodeX commented Apr 1, 2020 via email

@treeform
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants