These kind of problems were quite commons (for me, it was with maven in
multi-project set-up) before "sbt based build manager", which should be
the default in nightlies (but clearly not in 2.9).
So, perhaps you should check that in your eclipse > preferences > scala
> compiler, the build manager is SBT, see:
http://www.assembla.com/spaces/scala-ide/wiki/SBT-based_build_manager
If it is the case, I don't know how to fix what you are experiencing.
--
Francois Armand
http://fanf42.blogspot.com
Our software is composed by several projects, most of them being maven
"multi-modules" one. So, sometime there is a dozen interdependent
projects open at the same time. The full code is something like 30k loc.
And since I start using SBT build manager, class dependencies are really
well handled. Not to say I no more experience any problems, but they are
now enough rare to accept the corresponding "refresh all project + clean
all projects + wait a long time for the compilation".
thinking of that... Do you do things at the FS level, with the console,
in parallel of your eclipse work ? Eclipse put in cache a bunch of
things, and it quickly start to behave strangely when files in its scope
are modified by other than itself. Most of the time, a "refresh (F5)" on
the project is enough, sometime not.
Good luck with your problem,
On Sun, Oct 16, 2011 at 6:40 PM, Kipton Barros <kba...@gmail.com> wrote:
> Hello,
>
> In general, Scala IDE has been a fantastic tool for me, but I'm also
> having problems with inter-project dependencies and the SBT build
> manager on Beta-11.
There is one related bug fix that may be related to this discussion
(presentation compiler not being notified of changes in dependent
projects):
https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000635
This can lead to spurious errors in the editor (even when there are
none in the Problem View -- build was successful).
> Unfortunately I haven't had the time to try to
> create a small test case. It's been my experience that the SBT
> developers are excellent at fixing bugs once they're identified, but I
> find it hard to create these reduced test cases. I wonder if there
> could be a "best practices" guide for helping IDE users help the
> developers? Would it make sense to have some kind of "event-log" of
> high-level user actions that could be inspected/replayed for
> reproducing bugs?
You can enable 'build-manager-debug' for your project, in the advanced
compiler settings. Also, run Eclipse from the command line, and you'll
see lots of printed output. That can help us debug what's going on.
Ideally, you'd close all projects except the ones involved in the
problems you're seeing (otherwise the output is too large).
iulian
>
> In my case, I have only two projects: A and B, where B depends on A.
> When I encounter an inter-project build failure, it is necessary to
> first clean A and then clean B (cleaning them simultaneously doesn't
> work).
>
> Kip
>
> On Oct 15, 10:26 am, jrlemieux <jacques.lemi...@gmail.com> wrote:
>
>> Support for multiple projects in Eclipse with the Scala plugin seems
>> to be rather broken.
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
It would be so much better if you could take the time to check if the
ticket I mentioned is indeed the one causing the problems (especially
since the ticket is fixed in the nightly builds). Any bug report that
is 'actionable' (meaning it has a reproducible sequence) will clearly
help the IDE more than reverting back to what works.
>
> We are looking forward for the day when Scala development will be
> fully supported in Eclipse. This landmark will notably allow Scala
> enthusiasts to start evangelizing their comrades, workplaces and
> clients.
See above what you can do to help speed things up!
> Many thanks again and all the very best!
thank you,
iulian
Excellent!
happy coding! :-)
iulian