scalatest / scalatest-eclipse-plugin

ScalaTest plugin for Scala IDE
scalatest.org
41 stars 20 forks source link

README needs updating for ScalaIDE 4.0 final #45

Open deanwampler opened 9 years ago

deanwampler commented 9 years ago

I discovered several errors while building and using the plugin.

  1. ScalaIDE is based on Luna now, not Kepler.
  2. The kepler-nightly-2.11 and master branches don't build, due to missing dependencies. I used the 2.11 branch successfully. Perhaps it should be merged to master?
  3. The update "site" is wrong. It should be org.scala-ide.sdt.scalatest.update-site/target/site

Is there no prebuilt update site on the web?

dean

cheeseng commented 9 years ago

Hi Dean,

Yes the README is outdated, I'll try to find timeslot to update it to latest.

For prebuilt version, you should be able install it from the scala-ide update site, only if you are using nightly you'll need to manually build it.

Hope this helps.

Chee Seng

On Tue, Jan 6, 2015 at 11:03 PM, Dean Wampler notifications@github.com wrote:

I discovered several errors while building and using the plugin.

  1. ScalaIDE is based on Luna now, not Kepler.
  2. The kepler-nightly-2.11 and master branches don't build, due to missing dependencies. I used the 2.11 branch successfully. Perhaps it should be merged to master?
  3. The update "site" is wrong. It should be org.scala-ide.sdt.scalatest.update-site/target/site

Is there no prebuilt update site on the web?

dean

— Reply to this email directly or view it on GitHub https://github.com/scalatest/scalatest-eclipse-plugin/issues/45.

deanwampler commented 9 years ago

Thanks.

Dean Wampler, Ph.D. Typesafe "Functional Programming for Java Developers", "Programming Scala", and "Programming Hive" - all from O'Reilly twitter: @deanwampler, @chicagoscala http://typesafe.com http://polyglotprogramming.com

On Wed, Jan 7, 2015 at 2:00 AM, Chua Chee Seng notifications@github.com wrote:

Hi Dean,

Yes the README is outdated, I'll try to find timeslot to update it to latest.

For prebuilt version, you should be able install it from the scala-ide update site, only if you are using nightly you'll need to manually build it.

Hope this helps.

Chee Seng

On Tue, Jan 6, 2015 at 11:03 PM, Dean Wampler notifications@github.com wrote:

I discovered several errors while building and using the plugin.

  1. ScalaIDE is based on Luna now, not Kepler.
  2. The kepler-nightly-2.11 and master branches don't build, due to missing dependencies. I used the 2.11 branch successfully. Perhaps it should be merged to master?
  3. The update "site" is wrong. It should be org.scala-ide.sdt.scalatest.update-site/target/site

Is there no prebuilt update site on the web?

dean

— Reply to this email directly or view it on GitHub https://github.com/scalatest/scalatest-eclipse-plugin/issues/45.

— Reply to this email directly or view it on GitHub https://github.com/scalatest/scalatest-eclipse-plugin/issues/45#issuecomment-68989699 .

mlangc commented 9 years ago

Hmm, unfortunately I had no luck installing the prebuilt version into a locally built version of Scala-IDE; see https://groups.google.com/forum/#!topic/scala-ide-dev/z9zFvlael_4

cheeseng commented 9 years ago

@mlangc may I know what is your Scala-IDE version that you built locally? is it master branch or the 4.0 tag?

mlangc commented 9 years ago

@cheeseng It's the master branch.

cheeseng commented 9 years ago

@langc, if it is the master branch, then I don't think any prebuilt version will work. You'll need to build scalatest-eclipse-plugin manually, I wonder if the following will work for you:

git clone git://github.com/scalatest/scalatest-eclipse-plugin.git cd scalatest-eclipse-plugin git checkout kepler-nightly-2.11 mvn clean package

the output update site should be in org.scala-ide.sdt.scalatest.update-site/target

mlangc commented 9 years ago

@cheeseng If I follow your recipe I get

$ mvn clean package
[...]
[INFO] Resolving dependencies of MavenProject: org.scala-ide:org.scala-ide.sdt.scalatest:2.9.3-SNAPSHOT @ /home/mlangc/Development/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/pom.xml
[INFO] Cannot complete the request.  Generating details.
[INFO] Cannot complete the request.  Generating details.
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.scala-ide.sdt.scalatest 2.9.3.qualifier
[ERROR]   Missing requirement: org.scala-ide.sdt.scalatest 2.9.3.qualifier requires 'bundle org.scala-ide.sdt.core [4.0.0.rc,5.0.0)' but it could not be found
[ERROR] 
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.eclipse.jdt.core 3.9.0.v_OTDT_r220_201306071800 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.jdt.core 3.9.1.v_OTDT_r221_201309101918 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.jdt.core 3.9.2.v_OTDT_r222_201402180730 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.jdt.core 3.10.0.v_OTDT_r230_201406101339 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.jdt.core 3.10.0.v_OTDT_r231_201409160728 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.scala-ide.sdt.scalatest 2.9.3.qualifier to bundle org.scala-ide.sdt.core [4.0.0.rc,5.0.0).", "No solution found because the problem is unsatisfiable."] -> [Help 1]
cheeseng commented 9 years ago

@mlangc Can you try to change the following line:

https://github.com/scalatest/scalatest-eclipse-plugin/blob/kepler-nightly-2.11/org.scala-ide.sdt.scalatest/META-INF/MANIFEST.MF#L27

to:

org.scala-ide.sdt.core;bundle-version="[4.0.0,5.0.0)",

and see if it works? I am sorry it is too late in night over here for me to try building it with the latest scala-ide master, I'll try it tomorrow if the above change still can't fix your problem.

Sorry for the inconvenient caused.

mlangc commented 9 years ago

No need to be sorry - thanks for your great work! Changing MANIFEST.MF as explained above did the trick!

mlangc commented 9 years ago

@cheeseng Since this change did the trick, I'm wondering if this shouldn't make it to the repository... I can create a pull request if you want.

mlangc commented 9 years ago

Ah, OK it seems like you already changed this.. sorry for the noise.