Question

  • Create a new scala project
  • add library reference to scalaz
  • create a new package
  • create a scala file in the package
  • set encoding to UTF-8
  • paste the content of the bifunctor example
  • adjust the package in the file

It works in intellij. With eclipse i get 8 errors like this:

';' expected but something found

in the lines containing assert_≟ .

I'm using Eclipse Helios with Scala IDE for Eclipse 1.0.0.201011110258.

Was it helpful?

Solution

  • Are you using the correct character set (e.g. UTF8) for you source files?
  • Are the Eclipse "errors" from the IDE itself, or from a compilation run (an invocation of scalac?
  • Can you scalac compile the source file manually?

Assuming it is not a fie encoding problem and that you can manually compile the file, I might conclude that, as scalaz uses complex type inference, Eclipse might be reporting erroneous errors.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top