Git Product home page Git Product logo

Comments (6)

hseeberger avatar hseeberger commented on June 19, 2024

I cannot reproduce this. Instead, I get the expected behavior for mult-module projects under 1.2 and 1.3-RC1.

Please take a look at the example project which defines several levels of sub-project nesting: https://github.com/typesafehub/sbteclipse/tree/master/example

If I run sbt and invoke eclipse skip-root at the root level, I get three .project/.classpath files like expected: For sub1, sub11 and sub12. Nothing for root, because of skip-root. The .classpath files aren't empty and all projects can be imported into Eclipse. Of course in this example Eclipse will complain, because the root project is needed.

Please verify your setup. If the error still exists, please send my a reproducible test case including a detailed description of your setup.

from sbt-eclipse.

jarod avatar jarod commented on June 19, 2024

see my modified Build.scala from example
https://gist.github.com/1113400#file_build.scala

jarod@scalala:~/workspace/scala/sbteclipse/example$ sbt
Getting net.java.dev.jna jna 3.2.3 ...
:: retrieving :: org.scala-tools.sbt#boot-app
    confs: [default]
    1 artifacts copied, 0 already retrieved (838kB/72ms)
Getting Scala 2.8.1 (for sbt)...
:: retrieving :: org.scala-tools.sbt#boot-scala
    confs: [default]
    3 artifacts copied, 0 already retrieved (15178kB/445ms)
Getting org.scala-tools.sbt sbt_2.8.1 0.10.1 ...
:: retrieving :: org.scala-tools.sbt#boot-app
    confs: [default]
    36 artifacts copied, 0 already retrieved (6414kB/94ms)
[info] Set current project to default-8283d8 (in build file:/home/jarod/.sbt/plugins/)
[info] Compiling 1 Scala source to /home/jarod/workspace/scala/sbteclipse/example/project/target/scala_2.8.1/classes...
Getting Scala 2.9.0-1 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
    confs: [default]
    4 artifacts copied, 0 already retrieved (20447kB/555ms)
[info] Set current project to root (in build file:/home/jarod/workspace/scala/sbteclipse/example/)
sbt (root)> project sub1
[info] Set current project to sub1 (in build file:/home/jarod/workspace/scala/sbteclipse/example/)
sbt (sub1)> eclipse
[info] Updating {file:/home/jarod/workspace/scala/sbteclipse/example/}sub1...
[info] Done updating.
[info] Successfully created Eclipse project files. Please select the appropriate Eclipse plugin for Scala 2.9.0-1!
sbt (sub1)> 

when it work correctly the below line should appear for every module(when use sbteclipse 1.1)
[info] Updating {file:/home/jarod/workspace/scala/sbteclipse/example/}sub1...

and see the two .classpath files in gist, one is for root module and another is for sub1, their content is the same.

the line

<classpathentry kind="lib" path="/home/jarod/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar"></classpathentry> 

shoudn't appear in the root .classpath.

if I run "eclipse" task on root module then the line gone form every .classpath file.

from sbt-eclipse.

hseeberger avatar hseeberger commented on June 19, 2024

OK, I got it. Looks really bad.
Thanks for spotting this!

from sbt-eclipse.

hseeberger avatar hseeberger commented on June 19, 2024

Jarod,

Could you please switch to 1.3-RC2 and try again? Thanks.

Heiko

from sbt-eclipse.

jarod avatar jarod commented on June 19, 2024

It works like a charm. Thank you for the fix

from sbt-eclipse.

hseeberger avatar hseeberger commented on June 19, 2024

Good to hear. Thanks again for reporting this.

from sbt-eclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.