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

Compilation not working with (require) but working with (load) #35

Open
scambier opened this issue Jul 5, 2021 · 0 comments
Open

Compilation not working with (require) but working with (load) #35

scambier opened this issue Jul 5, 2021 · 0 comments

Comments

@scambier
Copy link

scambier commented Jul 5, 2021

Hello, I'm having issues when I try to compile!() my GameLisp code. The compilation is fine, but once I execute the resulting binary, there's the following error:

unhandled error in run() call:

stack trace:
    glsp::load_compiled()
    (load) at compile-proc-macro:1
    glsp::load("./game/main.glsp")
    (require) at ./game/main.glsp:1
    glsp::require("game/structs.glsp")

errors:
    invalid filename 'game/structs.glsp' passed to glsp::require
    The specified path cannot be found. (os error 3)
thread 'main' panicked at 'global type roguelike_glsp::api::KeyPressed was never registered, or it has been dropped', [redacted]\.cargo\registry\src\github.com-1ecc6299db9ec823\glsp-engine-0.2.0\src\engine.rs:2595:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I solved this problem by replacing all the (require) calls with (load) so it's not really an issue right now, but it seemed cleaner to call (require).

My repository is here

(also, any critic on my rust/glsp code is welcome)

Thank you

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

1 participant