-
Notifications
You must be signed in to change notification settings - Fork 36
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
Module collision betweeen 1.2.0 and 1.2.1 ceylon.test when running tests JVM tests from 1.2.0 #2425
Comments
As @jvasileff observed, it seems a lot of modules in 1.2.1 fully or partially identify themselves as "1.2.0" which may be the root cause of this issue. |
After deleting $ find ~/.ceylon/repo/ -name 1.2.0
/Users/jvasileff/.ceylon/repo//ceylon/bootstrap/1.2.0
/Users/jvasileff/.ceylon/repo//ceylon/language/1.2.0
/Users/jvasileff/.ceylon/repo//ceylon/runtime/1.2.0
/Users/jvasileff/.ceylon/repo//com/redhat/ceylon/common/1.2.0
/Users/jvasileff/.ceylon/repo//com/redhat/ceylon/compiler/java/1.2.0
/Users/jvasileff/.ceylon/repo//com/redhat/ceylon/compiler/js/1.2.0
/Users/jvasileff/.ceylon/repo//com/redhat/ceylon/model/1.2.0
/Users/jvasileff/.ceylon/repo//com/redhat/ceylon/module-resolver/1.2.0
/Users/jvasileff/.ceylon/repo//com/redhat/ceylon/typechecker/1.2.0 Edit: the commands used for this build were: pushd ceylon-dist && ant clean-all dist sdk eclipse && popd &&
pushd ceylon.language && ant doc && popd &&
true |
Confirmed @jvasileff's observations. |
So I guess the solution to this bug is to ensure the above modules are built as 1.2.1 instead of 1.2.0? |
@lukedegruchy @jvasileff try now. |
I'm getting the same error reported by @lukedegruchy on gitter:
|
As I post this, at some point during the dist compilation process, running tests on the production command-line results in this error. I get the exact same error running tests in the IDE. Once again, deleting ~/.ceylon/repo fixes the issue.
This time I even get issues running JS tests as well. In the command-line I get an error. In the IDE the test takes forever to complete eventually resulting in an error. Again, this is with the production 1.2.0 tools. Command-line error:
IDE error:
|
Is it fixed now, guys? |
Running 1.2.0 unit tests with either the production 1.2.0 ceylon command or the IDE won't work if any 1.2.1 modules exist in ~/.ceylon/repo. The only way to fix this is to remove all 1.2.1 modules from ~/.ceylon/repo. The only way to fix is to remove all 1.2.1 modules from ~/.ceylon/repo.
This affects both the IDE and the command-line.
I've run ceylon test --verbose=cmr under both cases but unfortunately this offers very little additional insight. For some reason, ceylon attempts to do this, with very little context:
This is the unit test:
This is the error I see when running the unit test from the IDE:
This doesn't seem to be the case for other modules, as I was able to run a ceylon function having imported both ceylon.collection and ceylon.html and both were correctly resolved to 1.2.0 and the function ran both in the command line and IDE.
The text was updated successfully, but these errors were encountered: