Re: [scala-ide-dev] Has anybody experienced build errors in Eclipse because of CompilationUnitAdapter.getAdapter() ?

15 views
Skip to first unread message

iulian dragos

unread,
Aug 12, 2015, 11:59:06 AM8/12/15
to scala-ide-dev
What version of Eclipse are you using? Might be that Eclipse Luna is required...

On Sat, Aug 1, 2015 at 3:36 PM, Andrew Zabavnikov <zabav...@gmail.com> wrote:
I experience errors related with the mentioned getAdapter() method in Eclipse, but ./build-all.sh works fine. These errors are 

Description Resource Path Location Type
ambiguous reference to overloaded definition, both method getAdapter in class CompilationUnitEditor of type (x$1: Class[_])Object and  method getAdapter in class WorkbenchPart of type [T](x$1: Class[T])T match argument types (Class[org.eclipse.jdt.internal.ui.text.SmartBackspaceManager]) ScalaSourceFileEditor.scala /org.scala-ide.sdt.core/src/org/scalaide/ui/internal/editor line 400 Scala Problem


Description Resource Path Location Type
type mismatch;  found   : _$1 where type _$1  required: AnyRef Note that _$1 is unbounded, which means AnyRef is not a known parent. Such types can participate in value classes, but instances cannot appear in singleton types or in reference comparisons. CompilationUnitAdapter.scala /org.scala-ide.sdt.core/src/org/scalaide/core/internal/jdt/model line 47 Scala Problem


Can anybody help with resolution? Or at least help with googling it ;-) (For me it seems that it is somehow related to scala compiler which builds projects in eclipse is thinking that _ cannot be downcasted to AnyRef, unlike the compiler on command line. One of them is lying to me, I think. Which one?)

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-dev/2f802579-195a-437a-a9cc-393b6a7e6434%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Reply all
Reply to author
Forward
0 new messages