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

Project not building in IntelliJ #2559

Closed
Avasil opened this issue Oct 15, 2018 · 7 comments · Fixed by #2565
Closed

Project not building in IntelliJ #2559

Avasil opened this issue Oct 15, 2018 · 7 comments · Fixed by #2565

Comments

@Avasil
Copy link
Contributor

Avasil commented Oct 15, 2018

As reported on gitter the issue with IntelliJ seems to persist and unfortunately wasn't completely fixed by #2382 :(

When I clone fresh Cats repo and load into IntelliJ I get:

sbt:cats>
[info] Defining Global / sbtStructureOptions, Global / sbtStructureOutputFile, shellPrompt
[info] The new values will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to cats (in build file:/home/pgawrys/IdeaProjects/cats/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from /home/pgawrys/.IdeaIC2018.2/config/plugins/Scala/launcher/sbt-structure-1.0.jar
[info] Reapplying settings...
[info] Set current project to cats (in build file:/home/pgawrys/IdeaProjects/cats/)
Downloading https://repo1.maven.org/maven2/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom.sha1
Downloading https://repo1.maven.org/maven2/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
Downloading https://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
Downloading https://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom.sha1
Downloading https://oss.sonatype.org/content/repositories/snapshots/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
Downloading https://oss.sonatype.org/content/repositories/snapshots/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom.sha1
[info] Updating binCompatTest...
[info] Done updating.
[error] coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]     org.scalacheck:scalacheck_native0.3_2.11:1.13.5:
[error]         not found:
[error]             /home/pgawrys/.ivy2/local/org.scalacheck/scalacheck_native0.3_2.11/1.13.5/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]         unauthorized:
[error]             https://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]             https://oss.sonatype.org/content/repositories/snapshots/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error] coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]     org.scalacheck:scalacheck_native0.3_2.11:1.13.5:
[error]         not found:
[error]             /home/pgawrys/.ivy2/local/org.scalacheck/scalacheck_native0.3_2.11/1.13.5/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]         unauthorized:
[error]             https://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]             https://oss.sonatype.org/content/repositories/snapshots/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error] (kernelNative / coursierResolutions) coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]     org.scalacheck:scalacheck_native0.3_2.11:1.13.5:
[error]         not found:
[error]             /home/pgawrys/.ivy2/local/org.scalacheck/scalacheck_native0.3_2.11/1.13.5/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]         unauthorized:
[error]             https://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]             https://oss.sonatype.org/content/repositories/snapshots/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error] (kernelNative / ssExtractDependencies) coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]     org.scalacheck:scalacheck_native0.3_2.11:1.13.5:
[error]         not found:
[error]             /home/pgawrys/.ivy2/local/org.scalacheck/scalacheck_native0.3_2.11/1.13.5/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]         unauthorized:
[error]             https://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error]             https://oss.sonatype.org/content/repositories/snapshots/org/scalacheck/scalacheck_native0.3_2.11/1.13.5/scalacheck_native0.3_2.11-1.13.5.pom
[error] Total time: 44 s, completed Oct 15, 2018 11:52:46 AM
[info] shutting down server

It's still possible to do code, it's possible to run tests in sbt etc. but it's a real pain without any indexes working

@kailuowang
Copy link
Contributor

ah. seems that scalacheck hasn't publish scalanative artifact yet.
typelevel/scalacheck#396
I'd propose we disable scalanative in cats before this is resolved.

@agajek
Copy link
Contributor

agajek commented Oct 15, 2018

Yep. I've just checked and this line is to blame
https://github.com/typelevel/cats/blob/master/build.sbt#L360

@kailuowang
Copy link
Contributor

that was needed for adding a doctest, it might be possible to disable that dependency when it's on scala native.

@kailuowang
Copy link
Contributor

sorry closed by accident.

@kailuowang
Copy link
Contributor

I asked around, people have no objection if we disable scalanative until scalacheck unblocks. Anyone interested in creating a PR?

@agajek
Copy link
Contributor

agajek commented Oct 18, 2018

I'll do it today evening.

@agajek
Copy link
Contributor

agajek commented Oct 19, 2018

@kailuowang, ready to go.

kailuowang pushed a commit that referenced this issue Oct 19, 2018
Scalacheck hasn't published artifact for Scala Native yet and that cause
problems with indexing project in Intellij. Plan is to temporarily
disable Scala Native cross project until artifact will be available at
typelevel/scalacheck#396
fixes #2559
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

Successfully merging a pull request may close this issue.

3 participants