Is it possible to work with fairy tale in eclipse?

  • Create a new scala project
  • add library link for scalaz
  • create a new package
  • create scala file in package
  • set encoding to UTF-8
  • insert content bifunctor example
  • configure package in file

He works in intellij. With eclipse, I get 8 errors like this:

';' expected but something found

in lines containing assert_≟.

I am using Eclipse Helios with the scala IDE for Eclipse 1.0.0.201011110258.

+4
source share
1 answer
  • Are you using the correct character set (e.g. UTF8) for the source files?
  • Are the Eclipse "errors" the IDE itself or a compilation run (calling scalac ?
  • Can you scalac compile the source file manually?

Assuming this is not a fie coding problem, and that you can manually compile the file, I can conclude that since scalaz uses complex type inference, Eclipse may report error errors.

+2
source

All Articles