Skip to content
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

Installer doesn't fetch sbt launcher #16

Closed
ghost opened this issue Jun 22, 2011 · 8 comments
Closed

Installer doesn't fetch sbt launcher #16

ghost opened this issue Jun 22, 2011 · 8 comments

Comments

@ghost
Copy link

ghost commented Jun 22, 2011

The installer runs without error, but when I subsequently try to run 'cs' it fails to resolve the sbt 0.10 launcher.

~$ ls -ld .ivy2 .conscript bin
ls: cannot access .ivy2: No such file or directory
ls: cannot access .conscript: No such file or directory
ls: cannot access bin: No such file or directory

~$ wget https://github.com/downloads/n8han/conscript/conscript-0.3.0.jar
--2011-06-22 13:40:13--  https://github.com/downloads/n8han/conscript/conscript-0.3.0.jar
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cloud.github.com/downloads/n8han/conscript/conscript-0.3.0.jar [following]
--2011-06-22 13:40:14--  http://cloud.github.com/downloads/n8han/conscript/conscript-0.3.0.jar
Resolving cloud.github.com... 205.251.205.122, 205.251.205.138, 205.251.205.197, ...
Connecting to cloud.github.com|205.251.205.122|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1162253 (1.1M) [.jar]
Saving to: `conscript-0.3.0.jar'

100%[======================================================================================================>] 1,162,253   1.06M/s   in 1.0s    

2011-06-22 13:40:15 (1.06 MB/s) - `conscript-0.3.0.jar' saved [1162253/1162253]

~$ java -jar conscript-0.3.0.jar 
Fetching launcher...

Conscripted n8han/conscript to /home/martin/bin/cs
~$ export PATH=$HOME/bin:$PATH
~$ cs eed3si9n/scalaxb
Waiting for lock on /home/martin/.conscript/boot/sbt.boot.lock to be available...
Getting net.databinder conscript_2.8.1 0.3.0 ...                                                                                                 

:: problems summary ::                                                                                                                           
:::: WARNINGS                                                                                                                                    
                module not found: org.scala-tools.sbt#launcher-interface;0.10.0

        ==== local: tried                                                                                                                         

          /home/martin/.ivy2/local/org.scala-tools.sbt/launcher-interface/0.10.0/ivys/ivy.xml                                                

          -- artifact org.scala-tools.sbt#launcher-interface;0.10.0!launcher-interface.jar:                                                       

          /home/martin/.ivy2/local/org.scala-tools.sbt/launcher-interface/0.10.0/jars/launcher-interface.jar                                 

        ==== Maven2 Local: tried

          file:///home/martin/.m2/repository/org/scala-tools/sbt/launcher-interface/0.10.0/launcher-interface-0.10.0.pom

          -- artifact org.scala-tools.sbt#launcher-interface;0.10.0!launcher-interface.jar:

          file:///home/martin/.m2/repository/org/scala-tools/sbt/launcher-interface/0.10.0/launcher-interface-0.10.0.jar

        ==== Scala-Tools Maven2 Repository: tried

          http://scala-tools.org/repo-releases/org/scala-tools/sbt/launcher-interface/0.10.0/launcher-interface-0.10.0.pom

          -- artifact org.scala-tools.sbt#launcher-interface;0.10.0!launcher-interface.jar:                                                         

          http://scala-tools.org/repo-releases/org/scala-tools/sbt/launcher-interface/0.10.0/launcher-interface-0.10.0.jar

        ==== Maven Central: tried

          http://repo1.maven.org/maven2/org/scala-tools/sbt/launcher-interface/0.10.0/launcher-interface-0.10.0.pom

          -- artifact org.scala-tools.sbt#launcher-interface;0.10.0!launcher-interface.jar:

          http://repo1.maven.org/maven2/org/scala-tools/sbt/launcher-interface/0.10.0/launcher-interface-0.10.0.jar

                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: org.scala-tools.sbt#launcher-interface;0.10.0: not found

                ::::::::::::::::::::::::::::::::::::::::::::::



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-tools.sbt#launcher-interface;0.10.0: not found
Error during sbt execution: Error retrieving required libraries
  (see /home/martin/.conscript/boot/update.log for complete log)
Error: Could not retrieve conscript 0.3.0
@n8han
Copy link

n8han commented Jun 22, 2011

Oh, crap. This is probably related to conscript app depending on the launcher in the normal way instead of being "provided". Without that, the installer does not have it on its classpath and throws an exception. So we need to figure out a different way to configure that, or separate the installer from the launcher-based app.

@eed3si9n
Copy link
Member

The 0.10.0 seems to be here (http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/launcher-interface/0.10.0/) if that's relevant.

@n8han
Copy link

n8han commented Jun 22, 2011

Yeah, the thing is the app doesn't actually need it because the launcher provides the interface. I don't think the typesafe repo is on the standard resolution path, just certain ones.

@eed3si9n
Copy link
Member

I was wondering if adding

typesafe-repo: http://repo.typesafe.com/typesafe/ivy-releases/

in launchconfig makes it recognize.

@n8han
Copy link

n8han commented Jun 22, 2011

Good idea! That works, if you specify the resolution pattern.

I've pushed an updated conscript template. mart, could you try running the installer again, then running cs?

@ghost
Copy link
Author

ghost commented Jun 22, 2011

Works for me, thanks. Closing.

@ghost ghost closed this as completed Jun 22, 2011
@erikvanoosten
Copy link

I had a similar issue 'could not find commons-logging'. A retry after clearing the commons-logging directory from my maven repo, and deleting the ~/.ivy2 directory, just worked. Still don't get what went wrong.

@n8han
Copy link

n8han commented Jun 29, 2011

Your local ivy cache can be polluted with bad data, probably from an upstream repository but it's hard to tell because you usually don't become aware of it until later. The only fix is to remove the bad data. We'll try to add some helpful error messages at some point, but this is a really tricky (and fairly rare) problem for conscript and sbt in general.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants