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

Error: cannot open 'nimx/window' #258

Closed
pkphilip opened this issue Sep 2, 2017 · 4 comments
Closed

Error: cannot open 'nimx/window' #258

pkphilip opened this issue Sep 2, 2017 · 4 comments

Comments

@pkphilip
Copy link

pkphilip commented Sep 2, 2017

Getting this error on Linux Mint 18 while trying to compile the simple example given below:

import nimx.window
import nimx.text_field
import nimx.system_logger # Required because of Nim bug (#4433)

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)

runApplication:
    startApp()

To be clear: I am using Nim version 0.17.0

@AjBreidenbach
Copy link

AjBreidenbach commented Sep 2, 2017

What do you get running nimble path nimx?
It seems like some other Mint users have had problems with nimble nim-lang/nimble#220

@pkphilip
Copy link
Author

pkphilip commented Sep 5, 2017

I have nim installed in a local directory and I have the nim/bin directory in my path.

When I run nimble path nimx, I get the following message:
Warning: File 'nakefile.nim' inside package 'nimx' is outside of the permitted namespace, should be inside a directory named 'nimx' but is in a directory named 'editor' instead. This will be an error in the future.
Hint: Rename the directory to 'nimx' or prevent its installation by adding skipDirs = @["editor"] to the .nimble file.
/home/prem/.nimble/pkgs/nimx-0.1

I ran the following command to remove nimx:
nimble remove nimx

And then I ran this command to reinstall nimx:
nimble install nimx

@Mnenmenth
Copy link

Do you pass --threads:on to the compiler?

@rknell
Copy link

rknell commented Jun 27, 2018

I was getting this and just needed to do a reinstall, looked like a nimble issue. Suggest to close

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

5 participants