This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Trouble Building the Plug-in

2 replies
Colin Howe
Joined: 2009-08-29,
User offline. Last seen 42 years 45 weeks ago.

Have followed all the instructions from the wiki (including getting a fresh
install of 3.5 with the correct plug-ins).

I've installed the Scala plug-in from 10th September and I'm having trouble
compiling the plug-in. The ant target "prepare" works fine but the
compliation of the plug-in fails in Eclipse.

It is failing to import anything from scala.tools.nsc - so I think it's
failing to pickup the reference to scala/scala-library properly.

Has anyone seen this before?

Colin Howe
Joined: 2009-08-29,
User offline. Last seen 42 years 45 weeks ago.
Re: Trouble Building the Plug-in

Finally got everything working.

For reference:

  • Turn off Eclipse auto-building because it'll make everything slow and nasty
  • Refresh scala-library and then build it
  • Refresh scala-plugin-aspects and then build it
  • Refresh scala-plugin and then build it

If Eclipse appears to do nothing when you request a build then it has probably done nothing and thinks everything is built happily. Do a clean (just on the project) - and make sure Eclipse doesn't try to build the workspace automatically.

If your scala-library hasn't been built properly then you will have lots of errors in scala-plugin (particularly about failing to import anything from scala.tools.nsc)

If your scala-plugin-aspects hasn't been built properly then you will have only a few errors (<20) in scala-plugin (particularly about failing to import anything from scala.tools.eclipse.contribution)

Hope that helps someone else :-)


View this message in context: Re: Trouble Building the Plug-in
Sent from the Scala - Tools mailing list archive at Nabble.com.
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Re: Trouble Building the Plug-in

On Sun, Sep 13, 2009 at 2:56 PM, Colin Howe wrote:
> Finally got everything working.
>
> For reference:
>
> Turn off Eclipse auto-building because it'll make everything slow and nasty
> Refresh scala-library and then build it
> Refresh scala-plugin-aspects and then build it
> Refresh scala-plugin and then build it

This is good advice for a first build ... thanks for posting.

However, I strongly recommend re-enabling auto-building after that first step.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland