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

Cannot open file nimx/property_visitor for import nimx/text_field #526

Open
mackrol opened this issue Jun 1, 2024 · 1 comment
Open

Comments

@mackrol
Copy link

mackrol commented Jun 1, 2024

Library fails to build for example from the main github page:

# File: main.nim
import nimx/window
import nimx/text_field

proc startApp() =
    # First create a window. Window is the root of view hierarchy.
    var wnd = newWindow(newRect(40, 40, 800, 600))

    # Create a static text field and add it to view hierarchy
    let label = newLabel(newRect(20, 20, 150, 20))
    label.text = "Hello, world!"
    wnd.addSubview(label)

# Run the app
runApplication:
    startApp()

Import of text_field triggers error:

> nim c -r --threads:on main.nim
...
D:\Scoop\apps\nim\nimble\pkgs2\nimx-0.2-93e5296f1feb91608ec49384ce0081397da0c11d\nimx\clip_view.nim(19, 22) template/generic instantiation of `genVisitorCodeForView` from here
D:\Scoop\apps\nim\nimble\pkgs2\nimx-0.2-93e5296f1feb91608ec49384ce0081397da0c11d\nimx\meta_extensions\visitors_gen.nim(28, 17) Error: cannot open file: nimx / property_visitor

OTOH simpler example without text_field works correctly:

# File: main.nim
import nimx/window

proc startApp() =
    # First create a window. Window is the root of view hierarchy.
    var wnd = newWindow(newRect(40, 40, 800, 600))

# Run the app
runApplication:
    startApp()

Tested on:

Nim Compiler Version 2.0.4 [Windows: amd64]
Compiled at 2024-03-28
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release

with vcc backend and nimx installed via:

nimble install nimx
@CardealRusso
Copy link

i got the same error
the project looks dead

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

2 participants