Results 1 to 8 of 8

Thread: STS 2.5.1 and Scala

  1. #1
    Join Date
    Jan 2010
    Posts
    12

    Default STS 2.5.1 and Scala

    Anyone had any luck with this combination ?

    Afrer adding Scala Nature to a project, any attempt to open a file gives this error :


    Could not initialize class scala.tools.eclipse.ScalaSourceViewerConfiguration Utils$


    I am using the Scala plugin from http://download.scala-ide.org/update-current-35

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    Are you using STS based on Eclipse 3.5 or 3.6? I'd recommend moving to STS 2.5.1 and the 3.6 version if you can. And also use the update site for ScalaIDE for 36:
    http://download.scala-ide.org/update-current-36/

    In the past, there have been some conflicts between AJDT and ScalaIDE, but we believe that they are all fixed in the latest release.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Jan 2010
    Posts
    12

    Default

    Running 2.5.1 as previously stated, isn't that version based on Eclipse 3.6 ?

  4. #4
    Join Date
    Jan 2010
    Posts
    12

    Default

    The 3.6 update site for the scala plugin wotked much better, thanks.

  5. #5
    Join Date
    Nov 2006
    Location
    Utrecht, Netherlands
    Posts
    12

    Default

    Trying to install Scala Eclipse plugin via url: http://download.scala-ide.org/update-current-36/

    Cannot install because of conflicting dependency in component 'JDT Weaving for Scala'. I assume this is needed for Scala to function properly in IDE.

    Below the error message:

    Cannot complete the install because of a conflicting dependency.
    Software being installed: JDT Weaving for Scala 1.0.0.201011180256 (org.scala-ide.sdt.weaving.feature.feature.group 1.0.0.201011180256)
    Software currently installed: SpringSource Tool Suite 2.5.1.201011111000-RELEASE (com.springsource.sts.ide 2.5.1.201011111000-RELEASE)
    Only one of the following can be installed at once:
    JDT Weaving 2.1.2.e36x-20101109-1600 (org.eclipse.contribution.weaving.jdt 2.1.2.e36x-20101109-1600)
    JDT Weaving 2.1.2.e36x-20101113-1400 (org.eclipse.contribution.weaving.jdt 2.1.2.e36x-20101113-1400)
    Cannot satisfy dependency:
    From: SpringSource Tool Suite 2.5.1.201011111000-RELEASE (com.springsource.sts.ide 2.5.1.201011111000-RELEASE)
    To: com.springsource.sts.package.feature.group [2.5.1.201011111000-RELEASE]
    Cannot satisfy dependency:
    From: SpringSource Tool Suite Package 2.5.1.201011111000-RELEASE (com.springsource.sts.package.feature.group 2.5.1.201011111000-RELEASE)
    To: org.eclipse.ajdt.feature.group 0.0.0
    Cannot satisfy dependency:
    From: AspectJ Development Tools 2.1.2.e36x-20101109-1600 (org.eclipse.ajdt.feature.group 2.1.2.e36x-20101109-1600)
    To: org.eclipse.contribution.weaving.jdt [2.1.2.e36x-20101109-1600]
    Cannot satisfy dependency:
    From: JDT Weaving for Scala 1.0.0.201011180256 (org.scala-ide.sdt.weaving.feature.feature.group 1.0.0.201011180256)
    To: org.eclipse.contribution.weaving.jdt [2.1.2.e36x-20101113-1400]
    Joost den Boer
    Freelance Senior Java Architect
    The Future Group
    http://www.the-future-group.com

  6. #6
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    Disable the JDT Weaving for Scala feature. That is superceded by AJDT's JDT Weaving feature.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  7. #7

    Default

    I first installed STS 2.5.1, then Scala-IDE on Eclipse Helios 3.6.1. When I prompt to restart Eclipse, I click Restart.

    Then it seems that Eclipse enter into a loop of restarting. I have to kill it by the Windows Task Manager.

    If I donot install "JDT Weaving for Scala", then the installation goes well.

    What causes it?

  8. #8
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    As I mentioned earlier, JDT Weaving for ScalaIDE is a sub-set of JDT Weaving for AJDT.

    They are both implemented using OSGi adapter hooks. When a new adapter hook is installed, then that causes an automatic restart of the OSGi framework. However, if there is a conflict between adapter hooks, that may cause the new hook to not be properly installed and another restart is invoked. In some cases, this may cause an infinite loop.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •