sbt / sbt/sbt-eclipse

withBundledScalaContainers doesn't define a container

Open
#332 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
712
Forks
163
PR merge metrics
No merged PRs in 30d

Description

I have EclipseKeys.withBundledScalaContainers := false in my build.sbt. But this line disappears:

  <classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>

And I get only:

  <classpathentry sourcepath="/home/muhuk/.ivy2/cache/org.scala-lang/scala-library/srcs/scala-library-2.12.1-sources.jar" kind="lib" path="/home/muhuk/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.12.1.jar">
  <classpathentry sourcepath="/home/muhuk/.ivy2/cache/org.scala-lang/scala-reflect/srcs/scala-reflect-2.12.1-sources.jar" kind="lib" path="/home/muhuk/.ivy2/cache/org.sca

la-lang/scala-reflect/jars/scala-reflect-2.12.1.jar">

And no scala compiler.

When I reopen the project in eclipse, there is no container. And I get the following error:

The version of scala library found in the build path (2.12.1) is incompatible with the one 
expected by scala IDE (2.11.8). Please replace the scala library with the scala container 
or a compatible scala library jar.

I tried to follow BYOS instructions but the library and the compiler sits in different directories (in ivy cache) and it seems to expect them in one place. Besides my understanding is with withBundledScalaContainers you don't need BYOS.

Am I missing something?


sbt 0.13.13 (scala 2.10.6)
Eclipse 4.6.2
Scala IDE 4.5.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the generated Eclipse project with EclipseKeys.withBundledScalaContainers := false using the reported sbt 0.13.13, Eclipse 4.6.2, and Scala IDE 4.5.0 versions. Compare the resulting .classpath with the expected Scala container, library, and compiler entries; done means reopening the project no longer reports the incompatible Scala library configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.