scala-ide

How to attach sources to SBT managed dependencies in Scala IDE?

守給你的承諾、 提交于 2019-11-30 08:09:48
I'm using Scala IDE 2.0.1 and SBT 0.11.2 to start with Akka 2.0.1. My build.sbt looks like this: name := "akka" version := "0.1" scalaVersion := "2.9.2" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.1" As you can see, there's nothing spectacular. Now how can I tell Eclipse to use the artifact with the sources classifier for the akka-actor library? In SBT, I can use update-classifiers to download sources and Javadocs to the Ivy repository, but even if I do this before running the eclipse

Viewing Scaladoc in Eclipse

纵然是瞬间 提交于 2019-11-30 05:35:01
In Eclipse I have set the Javadoc Location property of my Scala project to file:/D:/EclipseWorkspace/MyProject/target/scala-2.9.1/api where D:/EclipseWorkspace/MyProject is the location of my scala project. Now, if I am in a Scala file that implements a class/trait, when I type Shift + F2 , Eclipse opens the Scaladoc page of that class/trait. However, this does not work if it is an object since Eclipse tries to open <ObjectName>.html whereas the Scaladoc-generated file name is <ObjectName>$.html . Is there any workaround? Scaladoc is now integrated since release 4.0.0 RC1 of the Scala-IDE

Scala IDE - Play 2 Eclipse Plug-in not highlighting syntax for Scala HTML Templates

不想你离开。 提交于 2019-11-30 03:57:33
I installed the Scala IDE - Play 2 plug-in (from http://download.scala-ide.org/play2/nightly_3.0-M_juno_2.10-M/site/ ) whereas the Route Editor displays proper syntax highlighting, the Template for Scala does not. Also, it also does not allow me to "Enable" the Syntax Highlighting options in Eclipse's Preferences -> Play -> Template - Syntax Coloring. Therefore, the Scala syntax is not being highlighted inside main.scala.html and index.scala.html Am also using http://download.scala-ide.org/nightly-scala-ide-juno-210x for Eclipse Juno. -James Right mouse click on above image to open in a new

Scala IDE 4.0.0 thinks there's errors in an out-of-the-box Play Framework 2.3.7 program

自作多情 提交于 2019-11-30 01:54:49
I've created a Play Framework program via Typesafe Activator (so it follows the template exactly). I used sbteclipse-plugin version 3.0.0 to create an Eclipse project and imported that into Scala IDE 4.0.0. These are all the latest versions at the time of writing. The Scala IDE definitely seems to support the Play Framework. It has syntax highlighting for the custom formats, including the routing file and templates. Yet, it doesn't seem to be able to find the views from the controllers. In particular, the call to views.html.index triggers an error: "object index is not a member of package

Flink Scala API “not enough arguments”

时光毁灭记忆、已成空白 提交于 2019-11-29 13:20:38
I'm having troubles using Apache Flink Scala API For example, even when I take the examples from the official documentation, the scala compiler gives me tons of compilation errors. Code: object TestFlink { def main(args: Array[String]) { val env = ExecutionEnvironment.getExecutionEnvironment val text = env.fromElements( "Who's there?", "I think I hear them. Stand, ho! Who's there?") val counts = text.flatMap { _.toLowerCase.split("\\W+") filter { _.nonEmpty } } .map { (_, 1) } .groupBy(0) .sum(1) counts.print() env.execute("Scala WordCount Example") } } Scala IDE outputs the following for the

How to attach sources to SBT managed dependencies in Scala IDE?

蹲街弑〆低调 提交于 2019-11-29 10:47:50
问题 I'm using Scala IDE 2.0.1 and SBT 0.11.2 to start with Akka 2.0.1. My build.sbt looks like this: name := "akka" version := "0.1" scalaVersion := "2.9.2" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.1" As you can see, there's nothing spectacular. Now how can I tell Eclipse to use the artifact with the sources classifier for the akka-actor library? In SBT, I can use update-classifiers to

Viewing Scaladoc in Eclipse

喜你入骨 提交于 2019-11-29 04:30:00
问题 In Eclipse I have set the Javadoc Location property of my Scala project to file:/D:/EclipseWorkspace/MyProject/target/scala-2.9.1/api where D:/EclipseWorkspace/MyProject is the location of my scala project. Now, if I am in a Scala file that implements a class/trait, when I type Shift + F2 , Eclipse opens the Scaladoc page of that class/trait. However, this does not work if it is an object since Eclipse tries to open <ObjectName>.html whereas the Scaladoc-generated file name is <ObjectName>$

Scala IDE - Play 2 Eclipse Plug-in not highlighting syntax for Scala HTML Templates

佐手、 提交于 2019-11-29 01:30:39
问题 I installed the Scala IDE - Play 2 plug-in (from http://download.scala-ide.org/play2/nightly_3.0-M_juno_2.10-M/site/ ) whereas the Route Editor displays proper syntax highlighting, the Template for Scala does not. Also, it also does not allow me to "Enable" the Syntax Highlighting options in Eclipse's Preferences -> Play -> Template - Syntax Coloring. Therefore, the Scala syntax is not being highlighted inside main.scala.html and index.scala.html Am also using http://download.scala-ide.org

Errors in Eclipse for Scala project generated by Play Framework

孤街醉人 提交于 2019-11-28 23:08:16
I would like to use Eclipse as IDE for a Scala web application using Play Framework . I downloaded Eclipse 3.6.2. Then I installed Scala IDE 2.0 (beta) for Eclipse . I downloaded Play Framework 1.2.2RC1 and installed the Scala Module using play install scala-0.9.1 and generated a new site with play new mysite . Then I eclipsified it with play eclipsify mysite and imported the project in Eclipse. But now I get many errors in Eclipse. Is this anything I can fix or are the different projects incompatible? This is the generated code that contains errors in Eclipse (but it works when I run the

How to get inline results in a worksheet in Eclipse/Scala-IDE on Ubuntu 12.04?

这一生的挚爱 提交于 2019-11-28 13:36:17
I've got the Scala-IDE installed on my Mac and on my pc with Ubuntu 12.04. In there I created a project, with a package and in there a worksheet. On my mac, the worksheet shows results of every line on the same line on the right. For example: package mypackage object myworksheet { println("Hello World!") > Hello World! } On Ubuntu however, I do not see the result on the right. I've tried making changes in the worksheet and saving it, but it makes no difference. Does anybody know how I can get these inline results on my Ubuntu machine as well? fgui I had the same issue, adding -Dfile.encoding