Hi Jesse,
> At one point (quite a long time ago now) the eclipse scala plugin had
> a very hard time when there were multiple classes defined in the same
> file. As a result my project has several files containing 3 lines. I
> was wondering if this is still the case or if there are no known
> problems with multiple classes in the same file?
I started using the IDE only a few months ago, but I haven't experienced this
kind of issue ever. Imagine that we also use the IDE for the editing sources
in the scala compiler (and there are several files that contain multiple class defs)
and I haven't seen this issue.
Please, give it a try and if experience a problem report it.
> Also is it important for the package name to match the directory
> structure like in java or has that been fixed as well. I know in Idea
> it was much slower if this was done.
This is still a problem in the current builder. Though, I think this will go away with
the new SBT builder (crossing my fingers here ;). Hopefully, we are not far from
having it in the nightly.
-- Mirco
There used to be issues when top-level type names didn't match the
containing source file name (ie. via the Java convention) which would
inevitably be the case if a source file contained more than one
top-level type definitions.
But those problem were fixed a very, very long time ago, I think
probably even before the 2.8.0.final release.
Cheers,
Miles
--
Miles Sabin
tel: +44 7813 944 528
gtalk: mi...@milessabin.com
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin
Nope, still an issue. I was caught by it about a week ago.
Bryan Hunt
If not, next time be sure to report it (there may actually be other reason of why you were
getting an error).
Cheers,
Mirco
> Also is it important for the package name to match the directoryThis is still a problem in the current builder. Though, I think this will go away with
> structure like in java or has that been fixed as well. I know in Idea
> it was much slower if this was done.
the new SBT builder (crossing my fingers here ;). Hopefully, we are not far from
having it in the nightly.
Mirco,
I stand corrected.
Using the current version of Scala-IDE and Scala 2.9.0.1:
Package name does not need to match the filesystem path.
Class name does not need to match file name.
I've added such classes to my project and it does, indeed, compile
correctly.
Your humble servant,
Bryan Hunt
Good, the IDE works and I'm learning new English idioms ;)
-- Mirco