Closed jpragey closed 9 years ago
you must specify the test-source
in the command, since the default is just source
Problem persists with:
ceylon compile-js --src=source:test-source
BTW I think I found another issue: if the second path in '--src' argument doesn't exists (--src=source:dummy
), I get a
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
I tried with test-source
and am not getting this error; files are compiled just fine. But I do get an error if I specify an invalid path in --src
.
If module source files are spread in two source directories (eg 'source' and 'test-source'), 'test-source' code don't see 'source' stuff, when you compile them in shell. That's a problem for whitebox testing, where test and app code must be in the same module.
Note that it's OK when compiling from eclipse, or for java.
Example: