Announcement Announcement Module
Collapse
No announcement yet.
STS 2.5.1 and Scala Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


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

      Comment


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

        Comment


        • #5
          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]

          Comment


          • #6
            Disable the JDT Weaving for Scala feature. That is superceded by AJDT's JDT Weaving feature.

            Comment


            • #7
              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?

              Comment


              • #8
                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.

                Comment

                Working...
                X