ceylon-sdk
ceylon-sdk copied to clipboard
Unable to deploy Vert.x verticle with ceylon.test tool
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
Shouldn't your ttt
module import herd.schedule.chime
?
no, it souldn't - vertx responsible to load it
just tried to import herd.schedule.chime - the same error
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?