eclipse-archived / ceylon-sdk

Standard platform modules belonging to the Ceylon SDK
http://www.ceylon-lang.org
Apache License 2.0
72 stars 60 forks source link

Unable to deploy Vert.x verticle with ceylon.test tool #530

Open LisiLisenok opened 8 years ago

LisiLisenok commented 8 years ago

If in IDE choose 'Run as Ceylon Java Application' everything is ok. If choose 'Run as Ceylon Test' error is returned: java.lang.ClassNotFoundException: herd.schedule.chime/0.1.0 from [Module "ceylon.test:1.2.2" from Ceylon ModuleLoader: RootRepositoryManager: FileContentStore: C:\Users\COVISE\.ceylon\cache]

module.ceylon:

native("jvm")
module ttt "1.0.0" {
    shared import io.vertx.ceylon.core "3.2.2";
    shared import ceylon.test "1.2.2";
}

run function:


shared test void run() {
    Vertx v = vertx.vertx();
    v.deployVerticle (
        "ceylon:herd.schedule.chime/0.1.0",
        (String|Throwable message) {
            print(message);
            v.close();
        }
    );
}

PS herd.schedule.chime/0.1.0 is available on Herd

bjansen commented 8 years ago

Shouldn't your ttt module import herd.schedule.chime?

LisiLisenok commented 8 years ago

no, it souldn't - vertx responsible to load it

LisiLisenok commented 8 years ago

just tried to import herd.schedule.chime - the same error

thradec commented 8 years ago

Well, if vertx is responsible for loading that module, then the issue will be probably there, because the context class loader will be different when running as Ceylon Java Application and Ceylon Test.

WDYT @vietj?