{"id":4075,"date":"2014-03-30T07:27:20","date_gmt":"2014-03-30T07:27:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-scala-ide-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:27:20","modified_gmt":"2014-03-30T07:27:20","slug":"problem-about-scala-ide-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-scala-ide-collection-of-common-programming-errors\/","title":{"rendered":"problem about scala-ide-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/efd36a7fe249a666e28fec187731554a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAykut Kllic<br \/>\njava scala scala-ide oaw mwe<br \/>\nI&#8217;m trying to write a MWE2 workflow component using scala language. Below is the scala code:package com.ford.modelling.workflowimport org.eclipse.emf.mwe2.runtime.workflow.{IWorkflowComponent, IWorkflowContext}class SayHello extends IWorkflowComponent {var message : String = null;def preInvoke {}def invoke(ctx : IWorkflowContext) { System.out.println(message) } def postInvoke {} }and below is the workflow code:module com.ford.modelling.workflow.SomeWorklowSayHello {}I can&#8217;t figure out why does t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6dfac666dcbd18678c62b338f62a7b7d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMatthew Farwell<br \/>\neclipse scala scala-ide<br \/>\nIs the current Scala Eclipse plugin (http:\/\/www.scala-lang.org\/node\/94) usable? I keep reading that its unstable and buggy, even unusable.See previous thread: http:\/\/stackoverflow.com\/questions\/796258\/what-is-the-current-state-of-tooling-for-scalaI&#8217;ve tried it out briefly but only for trivial programs, so far it seems fine.Thanks!UPDATE: I&#8217;m going to dive in and get some stuff done with Scala and Eclipse, I&#8217;ll try to report back and let you know what I find. UPDATE: See my answer below about my<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6dfac666dcbd18678c62b338f62a7b7d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMatthew Farwell<br \/>\njava eclipse scala exception scala-ide<br \/>\nI have some Scala code like this:class Callee {@throws(classOf[MyCheckedException])def doStuff() {} }Calling it from Java like so:public class Caller {public static void main(String[] args) {\/\/ this won&#8217;t compile; the Java compiler complains that the catch block is unreachable\/\/ however without the catch block, it complains &#8220;unhandled exception MyCheckedException&#8221;try {new Callee().doStuff();}catch (MyCheckedException e) {}} }Removing the catch block results in an error from the Java compiler say<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e7920c9deedf1a28a219d6ae60882a00?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsebastian_oe<br \/>\nscala compiler scala-ide scalac<br \/>\nI&#8217;m trying to develop on the Scala compiler project with the help of ScalaIDE. I followed this guide to set up the development environment. When I now try to build the mentioned projects, the reflect project won&#8217;t get built. Instead, I get the following error via the console output:uncaught exception during compilation: scala.reflect.internal.MissingRequirementError reflect Unknown Scala ProblemHaving tried the provided ANT script of the project via the console, everything seems to work f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ba37b94df29174ae45d05972d5046c5e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nadelarsq<br \/>\neclipse scala osgi pde scala-ide<br \/>\nHow to build an OSGi bundle that use Scala (2.9.1.RC3) with PDE (Eclipse Helios). I&#8217;m using Scala IDE (2.0.0-beta) to build the project and converting this to PDE project. My MANIFEST.MF is like that:Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: ScalaTest1 Bundle-SymbolicName: ScalaTest1 Bundle-Version: 1.0.0.qualifier Bundle-Activator: scalatest1.Activator Import-Package: org.osgi.framework;version=&#8221;1.3.0&#8243; Bundle-RequiredExecutionEnvironment: JavaSE-1.6The project build without e<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aykut Kllic java scala scala-ide oaw mwe I&#8217;m trying to write a MWE2 workflow component using scala language. Below is the scala code:package com.ford.modelling.workflowimport org.eclipse.emf.mwe2.runtime.workflow.{IWorkflowComponent, IWorkflowContext}class SayHello extends IWorkflowComponent {var message : String = null;def preInvoke {}def invoke(ctx : IWorkflowContext) { System.out.println(message) } def postInvoke {} }and below is the workflow code:module com.ford.modelling.workflow.SomeWorklowSayHello {}I can&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4075","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4075"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4075\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}