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

Eclipse hyperlinks to Scala library classes often fail in recent plugin builds

2 replies
Ben Hutchison 3
Joined: 2009-11-02,
User offline. Last seen 42 years 45 weeks ago.

In the Eclipse IDE plugin, following an editor hyperlink to many Scala
library classes do not correctly load their source file into the
editor:

- TraversableLike shows the default Class File Editor. I dont know a
way to make the source appear?

- So does Traversable, but in that case, the next class in the Package
Explorer, Traversable$, does associate with the source file correctly.
In this case, what is the role of "Traversable$"?

- When using Open Type (Ctl-Shift-T), typing "Tr" results in a large
number of spurious matches at the head of the match list, of the form
"class - scala.collection". Ie no class name. Strangely, typing "Tra"
removes these results, and if one then reverts to "Tr", they do not
reappear.

Ive been aware of this behavior for about 4 weeks now, across several
nightly builds.

Is this a problem at my end only, a known issue with a known solution,
or a known issue without a known solution?

(Apologies if this has been discussed recently and I missed it)

-Ben

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: Eclipse hyperlinks to Scala library classes often fail in r

On Sun, 2010-01-31 at 10:34 +1100, Ben Hutchison wrote:
> - TraversableLike shows the default Class File Editor. I dont know a
> way to make the source appear?

I've seen this too, although it doesn't happen all the time. Also, it
affects any library, not just the Scala library. Once it starts
happening for a given class, I haven't found a way to make it work again
without a restart.

> - When using Open Type (Ctl-Shift-T), typing "Tr" results in a large
> number of spurious matches at the head of the match list,

I've seen spurious matches with no name too, but didn't analyse them in
more depth.

> Is this a problem at my end only, a known issue with a known solution,
> or a known issue without a known solution?

I haven't seen an issue about this, so it may be worth reporting. Can
you reproduce it with a new workspace and a simple project?

Best,
Ismael

Pedro Furlanetto
Joined: 2009-08-19,
User offline. Last seen 2 years 34 weeks ago.
Re: Eclipse hyperlinks to Scala library classes often fail in

On Sun, Jan 31, 2010 at 4:27 AM, Ismael Juma wrote:
> On Sun, 2010-01-31 at 10:34 +1100, Ben Hutchison wrote:
>> - TraversableLike shows the default Class File Editor. I dont know a
>> way to make the source appear?
>
> I've seen this too, although it doesn't happen all the time. Also, it
> affects any library, not just the Scala library. Once it starts
> happening for a given class, I haven't found a way to make it work again
> without a restart.
>

Same with me, except that it only affects Scala libs, I always have
java projects open, with lots of libs that I frequently have to look
at sources.

Another thing I have noticed is that trying to navitage into a .jar
(used as a library) in a Scala project show a exception complaing
something about being unable to open the Jar. It also don't always
happen, but when happens, the only fix I could find is a restart.

>> - When using Open Type (Ctl-Shift-T), typing "Tr" results in a large
>> number of spurious matches at the head of the match list,
>
> I've seen spurious matches with no name too, but didn't analyse them in
> more depth.
>
>> Is this a problem at my end only, a known issue with a known solution,
>> or a known issue without a known solution?
>
> I haven't seen an issue about this, so it may be worth reporting. Can
> you reproduce it with a new workspace and a simple project?
>
> Best,
> Ismael
>
>

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