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

Invalid field access : createSlave #43

Closed
benmerckx opened this issue Jul 3, 2016 · 1 comment
Closed

Invalid field access : createSlave #43

benmerckx opened this issue Jul 3, 2016 · 1 comment

Comments

@benmerckx
Copy link
Member

While trying to setup a reduced example for #40, I'm hitting the following:

Called from tink/io/Worker.hx line 10
Uncaught exception - Invalid field access : createSlave
Error: Command failed with error 1

Seems like RunLoop.current is unset. I'm getting the error when compiling for neko in all scenarios I tried. For example:

-main Main
-lib tink_http
-lib tink_tcp
-lib tink_runloop
-lib tink_concurrent
-D concurrent
-cp src
-neko main.n
-cmd neko main.n
import tink.http.containers.TcpContainer;
import tink.http.Response;
using tink.CoreApi;

class Main {
    public static function main() {
        var container: TcpContainer = new TcpContainer(8000);
        container.run(function(req) {
            trace(req);
            return Future.sync(('ok': OutgoingResponse));
        });
    }
}
@benmerckx
Copy link
Member Author

This works after upgrading all tink haxelibs, so never mind.

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