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

Dependency not found #1

Closed
jgordijn opened this issue Nov 4, 2016 · 9 comments
Closed

Dependency not found #1

jgordijn opened this issue Nov 4, 2016 · 9 comments

Comments

@jgordijn
Copy link

jgordijn commented Nov 4, 2016

I'm trying this out, but I cannot get the project to compile. The dependency to org.scala-sbt %% io % "0.13.12" cannot be found.

I have a plain sbt setup without extra repos. I use coursier (but also tried without coursier)

coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
  org.scala-sbt:io_2.11:0.13.12:
    not found:
      /Users/jgordijn/.ivy2/local/org.scala-sbt/io_2.11/0.13.12/ivys/ivy.xml
      https://repo1.maven.org/maven2/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
      http://repo.typesafe.com/typesafe/releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] (*:coursierResolution) coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]   org.scala-sbt:io_2.11:0.13.12:
[error]     not found:
[error]       /Users/jgordijn/.ivy2/local/org.scala-sbt/io_2.11/0.13.12/ivys/ivy.xml
[error]       https://repo1.maven.org/maven2/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error]       http://repo.typesafe.com/typesafe/releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] Total time: 2 s, completed Nov 4, 2016 2:34:22 PM
@eloots
Copy link
Collaborator

eloots commented Nov 4, 2016

Hi Jeroen, which course & version is this? Is this on the student repo or the teacher repo for that course?

On 4 nov. 2016, at 14:35, Jeroen Gordijn notifications@github.com wrote:

I'm trying this out, but I cannot get the project to compile. The dependency to org.scala-sbt %% io % "0.13.12" cannot be found.

I have a plain sbt setup without extra repos. I use coursier (but also tried without coursier)

coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
org.scala-sbt:io_2.11:0.13.12:
not found:
/Users/jgordijn/.ivy2/local/org.scala-sbt/io_2.11/0.13.12/ivys/ivy.xml
https://repo1.maven.org/maven2/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
http://repo.typesafe.com/typesafe/releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
error coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error] org.scala-sbt:io_2.11:0.13.12:
[error] not found:
[error] /Users/jgordijn/.ivy2/local/org.scala-sbt/io_2.11/0.13.12/ivys/ivy.xml
[error] https://repo1.maven.org/maven2/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] http://repo.typesafe.com/typesafe/releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] Total time: 2 s, completed Nov 4, 2016 2:34:22 PM

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #1, or mute the thread https://github.com/notifications/unsubscribe-auth/ACrQ_DwDpBNCiZKqwlOBbXbUUixCm47sks5q6zSNgaJpZM4Kpire.

@jgordijn
Copy link
Author

jgordijn commented Nov 4, 2016

Hi Eric,

It is not in a course, but in this repo. I cannot compile the course-management-tools.

@eloots
Copy link
Collaborator

eloots commented Nov 4, 2016

Hi Jeroen,

I’ve actually heard this happening to one of my colleagues too. Not sure what the problem was though. I do remember that he was able to run the app from the sbt prompt though (weirdly enough…). Guess I need to look at this in more detail.

Compilation does work in my case though… so I can’t reproduce it…

[ericloots@Eric-Loots-MBP] $ sbt
[info] Loading global plugins from /Users/ericloots/.sbt/0.13/plugins
[info] Loading project definition from /Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/project/project
[info] Loading project definition from /Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/project
[info] Set current project to studentify (in build file:/Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/)

clean
[success] Total time: 0 s, completed 4-nov-2016 16:45:07
compile
[info] Updating {file:/Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/}course-management-tools...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 10 Scala sources to /Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/target/scala-2.11/classes...
[success] Total time: 5 s, completed 4-nov-2016 16:45:14

project/build.properties selects sbt 0.13.11. You can bump it to 0.13.13. In any case, doesn’t explain why it works in my case and not yours. Do give 0.13.13 a try though…

Eric

On 4 nov. 2016, at 16:04, Jeroen Gordijn notifications@github.com wrote:

Hi Eric,

It is not in a course, but in this repo. I cannot compile the course-management-tools.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #1 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACrQ_J6AETuMxtV5Jvg93SCAJ6_WXgwHks5q60l7gaJpZM4Kpire.

@eloots
Copy link
Collaborator

eloots commented Nov 4, 2016

Jeroen, I just added an explicit resolver for the Typesafe Ivy-releases to the build definition. Hope this solves the issue. If not, we have to dig deeper. Keep me posted if this fixes the problem on your system

@eloots
Copy link
Collaborator

eloots commented Nov 8, 2016

Hi Jeroen,

Wanted to ask if you re-tested with the latest version. I added a note to the issue, not sure you had a chance to read it.

Please let me know the status so that I can close the issue when so.

Cheers, Eric

On 4 nov. 2016, at 16:50, Eric Loots eric.loots@gmail.com wrote:

Hi Jeroen,

I’ve actually heard this happening to one of my colleagues too. Not sure what the problem was though. I do remember that he was able to run the app from the sbt prompt though (weirdly enough…). Guess I need to look at this in more detail.

Compilation does work in my case though… so I can’t reproduce it…

[ericloots@Eric-Loots-MBP] $ sbt
[info] Loading global plugins from /Users/ericloots/.sbt/0.13/plugins
[info] Loading project definition from /Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/project/project
[info] Loading project definition from /Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/project
[info] Set current project to studentify (in build file:/Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/)

clean
[success] Total time: 0 s, completed 4-nov-2016 16:45:07
compile
[info] Updating {file:/Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/}course-management-tools...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 10 Scala sources to /Users/ericloots/Trainingen/LightbendTraining/Studentify/course-management-tools/target/scala-2.11/classes...
[success] Total time: 5 s, completed 4-nov-2016 16:45:14

project/build.properties selects sbt 0.13.11. You can bump it to 0.13.13. In any case, doesn’t explain why it works in my case and not yours. Do give 0.13.13 a try though…

Eric

On 4 nov. 2016, at 16:04, Jeroen Gordijn <notifications@github.com mailto:notifications@github.com> wrote:

Hi Eric,

It is not in a course, but in this repo. I cannot compile the course-management-tools.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #1 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACrQ_J6AETuMxtV5Jvg93SCAJ6_WXgwHks5q60l7gaJpZM4Kpire.

@jgordijn
Copy link
Author

jgordijn commented Nov 8, 2016

Hi Eric,

Unfortunately it did not resolve the issue. See below. It is looking for the artifact in:
http://repo.typesafe.com/typesafe/ivy-releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom

However I can find some data at (note org.scala-sbt vs org/scala-sbt):
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io_2.11/0.13.12/

[info] Updating course-management-tools
[trace] Stack trace suppressed: run last *:coursierResolution for the full output.
[error] (*:coursierResolution) coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]   org.scala-sbt:io_2.11:0.13.12:
[error]     not found:
[error]       /Users/jgordijn/.ivy2/local/org.scala-sbt/io_2.11/0.13.12/ivys/ivy.xml
[error]       https://repo1.maven.org/maven2/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error]       http://repo.typesafe.com/typesafe/releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error]       http://repo.typesafe.com/typesafe/ivy-releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] Total time: 3 s, completed Nov 8, 2016 9:41:27 AM

@eloots
Copy link
Collaborator

eloots commented Nov 8, 2016

Hi Jeroen,

New attempt. This change fixed the problem for one of my colleagues.

When blowing away the (ivy2) cached folders, the dependency is downloaded from the following location:

downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.13.11/jars/io.jar

Can you please give this one a try? Sorry for the confusion, but for some reason, I can’t reproduce the original problem…

Cheers, Eric

On 8 nov. 2016, at 09:50, Jeroen Gordijn notifications@github.com wrote:

Hi Eric,

Unfortunately it did not resolve the issue. See below. It is looking for the artifact in:
http://repo.typesafe.com/typesafe/ivy-releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom http://repo.typesafe.com/typesafe/ivy-releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
However I can find some data at (note org.scala-sbt vs org/scala-sbt):
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io_2.11/0.13.12/ http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io_2.11/0.13.12/
[info] Updating course-management-tools
[trace] Stack trace suppressed: run last *:coursierResolution for the full output.
error coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error] org.scala-sbt:io_2.11:0.13.12:
[error] not found:
[error] /Users/jgordijn/.ivy2/local/org.scala-sbt/io_2.11/0.13.12/ivys/ivy.xml
[error] https://repo1.maven.org/maven2/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] http://repo.typesafe.com/typesafe/releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] http://repo.typesafe.com/typesafe/ivy-releases/org/scala-sbt/io_2.11/0.13.12/io_2.11-0.13.12.pom
[error] Total time: 3 s, completed Nov 8, 2016 9:41:27 AM

You are receiving this because you commented.
Reply to this email directly, view it on GitHub #1 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACrQ_BCQ2laAG7ch1JWqaOFtEBLXEAHyks5q8DfMgaJpZM4Kpire.

@jgordijn
Copy link
Author

jgordijn commented Nov 8, 2016

yes! Success! Thanks

@jgordijn jgordijn closed this as completed Nov 8, 2016
@eloots
Copy link
Collaborator

eloots commented Nov 8, 2016

Great; and a relief as I didn’t really have a handle on how to simulate this… Thanks for your patience!

On 8 nov. 2016, at 11:19, Jeroen Gordijn notifications@github.com wrote:

yes! Success! Thanks


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #1 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACrQ_Mx9izEI_hWnUWlwKHfOvyc8tAfdks5q8EyegaJpZM4Kpire.

eloots pushed a commit that referenced this issue May 4, 2022
* added assertFailureWithErrors to simplify cli testing

* property-based testing for cli args

* added tests for the studentify and linearize commands

* added tests for delinearize command

* added tests for renumber command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants