Closed thradec closed 12 years ago
It is there: https://modules.ceylon-lang.org/api/1/search-modules
Perhaps you have a local copy in your local user repo that's hiding it?
So, I don't know why but one of searched repository was {my-eclipse-dir}/USER
(I don't have it in my ~/.ceylon/config file) and contained it.
Maybe it would be helpful to have in result information about repository, from which module comes ( in some future version ).
{my-eclipse-dir}/USER
? where did that come from?
Maybe Eclipse overrides the user.home
system property"? That would not be good.
NB @thradec on the command line you can turn on -verbose (with or without the "cmr" flag) and you'll see module resolution in detail, not sure how we could do something similar for Eclipse.
So after quick debugging...
My configuration file look like this (I copied it from Tako's email about configuration file)
[repository "INSTALL"]
url=${ceylon.home}
[repository "LOCAL"]
url=./modules
[repository "USER"]
url=${user.home}/.ceylon/repo
[repository "REMOTE"]
url=http://modules.ceylon-lang.org/test
[repositories]
bootstrap=INSTALL
output=LOCAL
cache=USER
lookup=LOCAL
lookup=USER
lookup=REMOTE
Code Repositories.get().getCacheRepository()
return Repository with name %cache-1
and url USER
. This and current directory when running from eclipse result in {my-eclipse-dir}/USER
.
Probably I have only wrong configuration, which I copy/paste. But the error is not much obvious.
Ah you have a configuration file somewhere? You shouldn't, that example in my mail was only to explain what the default values look like, you don't actually have to have any configuration file unless you want to override the defaults.
(PS: if for some reason you really want the configuration file, the syntax has slightly changes since that mail, the references to repository names now need a +
before their names, like lookup=+LOCAL
)
@FroMage It seems that it is returned from Herd, but then disappear during merging. I haven't this module in my local repo.