ceylon / ceylon-runtime

DEPRECATED
24 stars 5 forks source link

Runner tries to find module with "null" version when version is not specified #37

Closed FroMage closed 11 years ago

FroMage commented 11 years ago

See trace:

[devoxx]$ ceylon run tree --verbose --rep=http://10.0.1.3:9000
INFO: Ceylon home directory is '/usr/local/Cellar/ceylon/1.0M5/libexec'
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/antlr-3.4-complete.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/ceylon-ant.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/ceylon-bootstrap.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/commons-codec-1.4.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/commons-logging-1.1.1.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/httpclient-4.1.1.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/httpcore-4.1.1.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/json-smart-1.1.1.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/markdownpapers-core-1.2.7.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/sardine-314.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/slf4j-api-1.6.1.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/slf4j-simple-1.6.1.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/lib/txtmark-0.8-c0dcd373ce.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/com/redhat/ceylon/compiler/java/0.5/com.redhat.ceylon.compiler.java-0.5.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/ceylon/language/0.5/ceylon.language-0.5.car (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/ceylon/runtime/0.5/ceylon.runtime-0.5.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/com/redhat/ceylon/compiler/js/0.5/com.redhat.ceylon.compiler.js-0.5.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/com/redhat/ceylon/typechecker/0.5/com.redhat.ceylon.typechecker-0.5.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/com/redhat/ceylon/common/0.5/com.redhat.ceylon.common-0.5.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/com/redhat/ceylon/module-resolver/0.5/com.redhat.ceylon.module-resolver-0.5.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/com/redhat/ceylon/maven-support/main/com.redhat.ceylon.maven-support-main.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/org/jboss/jandex/main/org.jboss.jandex-main.jar (OK)
INFO: path = /usr/local/Cellar/ceylon/1.0M5/libexec/repo/org/jboss/modules/main/org.jboss.modules-main.jar (OK)
Debug: Failed to add repository as input repository: /Users/francois/.ceylon/repo: Directory does not exist: /Users/francois/.ceylon/repo
Debug: Repository lookup order:
Debug:  - /usr/local/Cellar/ceylon/1.0M5/libexec/repo
Debug:  - ./modules
Debug:  - http://10.0.1.3:9000
Debug:  - http://modules.ceylon-lang.org/test
Debug: Looking for ceylon.language-0.5.car
Debug:  Trying repository /usr/local/Cellar/ceylon/1.0M5/libexec/repo
Debug:   -> Found at /ceylon/language/0.5/ceylon.language-0.5.car
Debug: [Trying to look up package from ceylon.language.descriptor.package]
Debug: [Failed to complete ceylon.language.descriptor.package]
Debug: [Trying to look up package from ceylon.language.package]
Debug: [Failed to complete ceylon.language.package]
Debug: [Trying to look up module from ceylon.language.module]
Debug: Looking for tree-null.car
Debug:  Trying repository /usr/local/Cellar/ceylon/1.0M5/libexec/repo
Debug:   -> Not Found
Debug:  Trying repository ./modules
Debug:   -> Not Found
Debug:  Trying repository /Users/francois/.ceylon/cache
Debug:  Trying repository http://10.0.1.3:9000
Debug: Got 404 for url: http://10.0.1.3:9000/tree/null/tree-null.car
Debug:   -> Not Found
Debug:  Trying repository http://modules.ceylon-lang.org/test 

I think we should generate an error instead of trying to look up a "tree/null" module.

quintesse commented 11 years ago

Superseded (and fixed) by #21