really basic question about building scala-ide

110 views
Skip to first unread message

Alex Parvulescu

unread,
Oct 25, 2011, 6:45:03 PM10/25/11
to scala-...@googlegroups.com
Hi guys,

I have a really basic question about building the scala-ide project.
I'm basically following [0] (which I guess you should update to point to the master branch instead of the non-existing wip_experiment ;)

So, taking the Initial setup approach, I'm trying to run build-ide-2.9.0.final.sh (because I have scala 2.9.0.final installed), and I get this error:

[INFO] Cannot complete the request.  Generating details.
[INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=gtk, osgi.arch=x86, osgi.os=linux, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
[INFO] [Software being installed: org.scala-ide.sdt.core 2.1.0.qualifier, Missing requirement: org.scala-ide.sdt.core 2.1.0.qualifier requires 'bundle org.scala-ide.scala.library 0.0.0' but it could not be found]
[ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.
at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:102)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:324)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:293)
at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:389)
at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:150)
at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:90)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.
... 20 more

I don't have any experience with building eclipse plugins (so I'm probably missing some dependencies), the build kinda complains about missing p2 bundles, but then it goes and downloads (what feels like) half of the internet, then it halts with the previously mentioned error.

My platform is Ubuntu 11.04 32b, java 6.

Any ideas?


thanks for your help,
alex

Alex Parvulescu

unread,
Oct 25, 2011, 7:08:43 PM10/25/11
to scala-...@googlegroups.com
Looking closer, I've found this tiny gem in the logs:

[WARNING] Failed to access p2 repository scala-refactoring-2.9.0.final (http://download.scala-ide.org/scala-refactoring-2.9.0.final), will try to use local cache. Reason: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://download.scala-ide.org/scala-refactoring-2.9.0.final.
[WARNING] Failed to access p2 repository scalariform-2.9.0.final (http://download.scala-ide.org/scalariform-2.9.0.final), will try to use local cache. Reason: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://download.scala-ide.org/scalariform-2.9.0.final.
[WARNING] Failed to access p2 repository scala-toolchain-2.9.0.final (http://download.scala-ide.org/scala-eclipse-toolchain-osgi-2.9.0.final), will try to use local cache. Reason: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://download.scala-ide.org/scala-eclipse-toolchain-osgi-2.9.0.final.

can this be the problem? 

thanks,
alex

Hubert Plociniczak

unread,
Oct 26, 2011, 2:29:38 AM10/26/11
to Scala IDE Dev
I am not sure the scripts for 2.9.0 final are up-to-date. I would
rather try 2.9.1.final. That should work without any problems.

On Oct 26, 12:45 am, Alex Parvulescu <alex.parvule...@gmail.com>
wrote:
> Hi guys,
>
> I have a really basic question about building the scala-ide project.
> I'm basically following [0] (which I guess you should update to point to the
> master branch instead of the non-existing wip_experiment ;)

Yes, well a couple of things changed since the move to git and we are
doing our best for the documentation to keep up with the development.
I will fix this.

Thanks,
hubert
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java:409)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.RuntimeException:
> org.eclipse.equinox.p2.core.ProvisionException: No solution found because
> the problem is unsatisfiable.
> at
> org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(Proj ectorResolutionStrategy.java:102)
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2Resolver Impl.java:324)
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2Resolver Impl.java:293)
> at
> org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2Ta rgetPlatformResolver.java:389)
> at
> org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2Targ etPlatformResolver.java:150)
> at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProje ct(DefaultTychoDependencyResolver.java:90)
> at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRe ad(TychoMavenLifecycleParticipant.java:91)

Mirco Dotta

unread,
Oct 26, 2011, 2:30:24 AM10/26/11
to scala-...@googlegroups.com
Hi Alex,

Please use one of the following scripts for building the IDE:

build-ide-trunk.sh

Read the following page for more info on how to build the project


-- Mirco

Alex Parvulescu

unread,
Oct 26, 2011, 4:08:21 AM10/26/11
to scala-...@googlegroups.com
Hi guys,

thanks for the quick reply!

Mirco, thanks for the link, I'm still in console mode, trying to get *something* to build properly first.

So, I followed Hubert's suggestion first, I ran ./build-ide-2.9.1.sh, which failed with [0].
Then, I tried building the toolchain, as the page that Micro pointed to said (./build-toolchain-2.9.x.sh ) this completed without errors, but returning to the build itself, it still fails with the same error [0].

I've also updated my scala install to 2.9.1.final (although it is not clear to me at this point if the build uses the local scala install, or a maven dependency).

Any more suggestions?

thanks for your time, there's nothing more annoying than newbie questions :)
alex

[0] Stacktrace:
[INFO] --- maven-scala-plugin:2.14:compile (default) @ org.scala-ide.sdt.core ---
[WARNING] you don't define org.scala-lang:scala-library as a dependency of the project
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src:-1: info: compiling
[INFO] Compiling 168 source files to /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/target/classes at 1319615521866
[ERROR] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src/scala/tools/eclipse/JavaSig.scala:54: error: method needsJavaSig in class Erasure cannot be accessed in object JavaSig.this.erasure
[INFO]      if (erasure.needsJavaSig(symbol.info)) {
[INFO]                           ^
[ERROR] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaPresentationCompiler.scala:102: error: not enough arguments for method askStructure: (source: scala.tools.nsc.util.SourceFile, response: ScalaPresentationCompiler.this.Response[ScalaPresentationCompiler.this.Tree])Unit.
[INFO] Unspecified value parameter response.
[INFO]       askStructure(keepLoaded)(sourceFile, response)
[INFO]                   ^
[WARNING] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src/scala/tools/eclipse/properties/ScalaCompilerPreferenceInitializer.scala:15: warning: imported `IDESettings' is permanently hidden by definition of object IDESettings in package properties
[INFO] import scala.tools.eclipse.properties.IDESettings
[INFO]        ^
[ERROR] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src/scala/tools/eclipse/wizards/NewApplicationWizard.scala:7: error: object internal is not a member of package reflect
[INFO] import scala.reflect.internal.Chars._
[INFO]                      ^
[ERROR] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src/scala/tools/eclipse/wizards/NewApplicationWizard.scala:48: error: value init is not a member of AnyRef with AnyRef with ScalaObject
[INFO]     super.init(workbench, currentSelection)
[INFO]           ^
[ERROR] /home/alex/work/scala-ide/scala-ide/org.scala-ide.sdt.core/src/scala/tools/eclipse/wizards/NewApplicationWizard.scala:54: error: value addPages is not a member of AnyRef with AnyRef with ScalaObject
[INFO]     super.addPages()
[INFO]           ^
[WARNING] one warning found
[ERROR] 5 errors found
-----------------------------------------------------------------

Mirco Dotta

unread,
Oct 26, 2011, 4:16:32 AM10/26/11
to scala-...@googlegroups.com
You really need to run the script build-ide-2.9.2-SNAPSHOT (or build-ide-trunk.sh) located in scala-ide/org.scala-ide.build/
(my bad for misspelling the script's name in my previous email, I was kind of in a rush). The error you are seeing will then
go away, trust me :)

-- Mirco



---------------
Mirco Dotta
Typesafe - Enterprise-Grade Scala from the Experts 
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








iulian dragos

unread,
Oct 26, 2011, 5:12:53 AM10/26/11
to scala-...@googlegroups.com
Trust Mirco! :-)

The long answer is that the IDE can build only using 2.9.3-SNAPSHOT
and 2.9.2-SNAPSHOT or trunk. The only reason is that we need fixes in
the presentation compiler, which is still part of the scala compiler
(no other changes are there, neither in the compiler nor library, so
it's perfectly ok to use for 2.9.1/2.8.2 development).

The IDE builds using P2 repositories, meaning that it doesn't use
maven repositories or local installations of Scala. There's a p2
repository for each version of Scala that's used by the nightly builds
(https://jenkins.scala-ide.org) and the build scripts point to those
repositories.

It would be great if you could update that wiki page, once you get it
working locally ;-)

hope this helps!
iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Alex Parvulescu

unread,
Oct 26, 2011, 11:48:09 AM10/26/11
to scala-...@googlegroups.com
Wow, thanks guys for an amazing support!

After an update (git pull) the build passes with flying colors. What can I say, high-fives all around!

Iulian, would this suffice?

best, 
alex

Mirco Dotta

unread,
Oct 26, 2011, 11:52:42 AM10/26/11
to scala-...@googlegroups.com
Sweet!


-- Mirco

iulian dragos

unread,
Oct 26, 2011, 11:50:25 AM10/26/11
to scala-...@googlegroups.com
Hi, thanks! I commented on your pull request. ;-)
Reply all
Reply to author
Forward
0 new messages