Alexander Baier | 8 Feb 01:56
Gravatar

[Emacs][scala-mode] Makefile misses "scala-mode-variables"

Hello there!

I am not quite shure, if this is the right place for me to post this, but except for the github page - which seems to be a mirror repo only - i did not find any other contact information.

So, here we go:
After running make and pointing emacs to the compiled .elc files, emacs always complained about not being able to open a scala file type, or something similar, i do not have the exact wording in mind. So i added the following line to the Makefile after line 35:

ELISP_FILES        += scala-mode-variables

After running make again, emacs stopped complaining and worked as it is supposed to do.

This is my setup:
Emacs GNU Emacs 23.4.1
Archlinux

If you need further information please do not hesitate to ask.

Vlad Ureche | 7 Feb 14:46
Picon
Gravatar

Sbteclipse - skip some source entries in the Eclipse project

Hello everyone,

I have a newbie question about sbteclipse: In the project I am working on, there are Scala sources but no Java sources at all. Is there a way to configure sbteclipse not to generate project source entries for Java?
The things I tried, without success:
 - setting the javaSources in {Compile. Test} to Nil -- the setting expects a java.io.File, and will only settle for that
 - messing with the sbteclipse createSrc setting, which either selects all sources or none

Is there a way to instruct sbteclipse to skip the Java sources in the Eclipse project?

Thanks,
Vlad

Scala Mailing Lists | 21 Jan 15:32
Picon
Picon
Favicon
Gravatar

Mailing list reminder: Scala-tools

Welcome to the "Scala-tools" mailing list.

This automatic reminder is sent once a month to the list,
to keep subscribers up-to-date with the mailing list services,
and to help keeping the list on topic.

-------------------------------------------------------------------

The "Scala-tools" mailing list:

This list is devoted to all the community-contributed
tools and frameworks developed specifically for the
Scala language, as well as plugins and modules aimed
at integrating existing tools and the Scala system.

Examples are the Scala IDE plugins, sbaz, scalap, and
the many available editor plugins, but the
discussion can also cover sbt, Specs, ScalaTest, etc.

The set of topics that are discussed on this list
include both the usage of these tools, as well as
their development.

Whilst general discussion covering the Scala IDE for
Eclipse is welcome here, the main forums for user
support and for development are now hosted at
http://groups.google.com/group/scala-ide-user and
http://groups.google.com/group/scala-ide-dev.

Occasionally discussed on the list are also access
to the scala-tools.org website (maintained by the
Scala community and not by EPFL) and Maven
integration, as well as the Lift framework.

More rarely discussed, however, is the use of
general third-party tools that require no specific
integration effort in order to be usable with Scala.

If you are interested, for instance, in using some
specific Java library from Scala, your question is
more appropriately directed to "scala-user" instead.

-------------------------------------------------------------------

Other information:

There are several Scala lists devoted to individual topics (and
more may be created in the future). For the full list, please
see: http://www.scala-lang.org/node/199

Try to avoid cross-posting whenever possible. If you can, select
the list that is closer to your topic and post in that list only.
In any case, never cross-post replies.

If you ever want to unsubscribe from this list, just visit this
page: http://groups.google.com/group/scala-tools/subscribe
or send an email to scala-tools+unsubscribe@...

Thank you!
The Scala Team

Kostas Kougios | 3 Jan 18:05

sbt , sbteclipse & withSources

Hi, I am struggling for some time now to enable withSources for
sbteclipse. When I do

build.sbt:
withSources:=true

I get that withSources can't be reassigned as it is a val.

I've included sbteclipse via .sbt/plugins/plugins.sbt.

Any idea how to set this up?

Thanks,

Kostas

Kostas Kougios | 2 Jan 00:17

MapperDao 1.0.0-beta

Hi all,

MapperDao is an ORM library for the scala language and the following
databases:

    oracle
    postgresql
    mysql
    derby
    sql server
    h2

and with the typical features one would expect from an ORM like one-to-
many, many-to-one, many-to-many, one-to-one, mapping class
hierarchies, simple mappings for AnyVals, support for Options etc

home page : http://code.google.com/p/mapperdao/
tutorial (pdf) : http://mapperdao-examples.googlecode.com/files/tutorial.pdf
wiki : http://code.google.com/p/mapperdao/wiki/TableOfContents
examples : https://code.google.com/p/mapperdao-examples/

Regards,

Kostas

Ahmet Sevki | 30 Dec 22:24

twitter's eval library

I posted this on scala-user too, but nobody took it:)

I am trying to use twitter eval, running it through sbt commandline.
It works on 64-bit Windows 7 with java version:
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
But it doesn't work on 32-bit Windows XP
main.scala:
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)

-----------
It works on the same machine (that it doesn't work using sbt) if I
run
it through REPL
C:\xxxx\scala\evaltest\src\main\scala>scala -classpath "c:\Documents
and Settings\xx\.ivy2\cache\com.twitter\util-eval_2.9.1\jars\util-
eval_2.9.1-1.12.8.jar"
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) Client VM,
Java
1.7.0_02).
Type in expressions to have them evaluated.
Type :help for more information.
scala>  val value = (new com.twitter.util.Eval).apply[Int]("1+1")
value: Int = 2
scala>
-----------------

When I run in sbt It raises the following exception:
[info] Running Main
[error] (run-main) scala.tools.nsc.MissingRequirementError: object
scala not found.
scala.tools.nsc.MissingRequirementError: object scala not found.
        at scala.tools.nsc.symtab.Definitions$definitions
$.getModuleOrClass(Definitions.scala:655)
        at scala.tools.nsc.symtab.Definitions$definitions
$.getModule(Definitions.scala:605)
        at scala.tools.nsc.symtab.Definitions$definitions
$.ScalaPackage(Definitions.scala:145)
        at scala.tools.nsc.symtab.Definitions$definitions
$.ScalaPackageClass(Definitions.scala:146)
        at scala.tools.nsc.symtab.Definitions$definitions
$.AnyClass(Definitions.scala:176)
        at scala.tools.nsc.symtab.Definitions$definitions
$.init(Definitions.scala:814)
        at scala.tools.nsc.Global$Run.<init>(Global.scala:697)
        at com.twitter.util.Eval$StringCompiler.apply(Eval.scala:523)
        at com.twitter.util.Eval$StringCompiler$$anonfun$apply
$3.apply(Eval.scala:540)
        at com.twitter.util.Eval$StringCompiler$$anonfun$apply
$3.apply(Eval.scala:539)
        at scala.Option.getOrElse(Option.scala:108)
        at com.twitter.util.Eval$StringCompiler.apply(Eval.scala:539)
        at com.twitter.util.Eval.applyProcessed(Eval.scala:198)
        at com.twitter.util.Eval.applyProcessed(Eval.scala:191)
        at com.twitter.util.Eval.apply(Eval.scala:137)
        at Main$.main(Main.scala:11)
        at Main.main(Main.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.RuntimeException: Nonzero exit code: 1
        at scala.sys.package$.error(package.scala:27)
[error] {file:/C:/ahmet/scala/evaltest/}default-74d3a5/compile:run:
Nonzero exit code: 1
[error] Total time: 3 s, completed Dec 29, 2011 1:51:46 PM
-----------------------------------
FILES:
object Main {
  def main(args:Array[String])
  {
    val value = (new com.twitter.util.Eval).apply[Int]("1+1")
    println("value is " + value)
  }
}

----------------------------------
build.sbt
name := "mm"
version := "1.0"
scalaVersion := "2.9.1"
resolvers += "twitter-repo" at "http://maven.twttr.com"
scalacOptions ++= Seq("-deprecation")
libraryDependencies ++= Seq(
  "com.twitter" % "util-core_2.9.1" % "1.12.8", "com.twitter" %
"util-
eval_2.9.1" % "1.12.8"
)
------------------------------------------
This is a dumbed down version for reproducing the error. However in
my
actual program it gives this too:
[error] (run-main) java.lang.Error: typeConstructor inapplicable for
<none>
java.lang.Error: typeConstructor inapplicable for <none>
        at
scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:
34)
        at scala.tools.nsc.symtab.Symbols
$Symbol.typeConstructor(Symbols.scala:877)
        at scala.tools.nsc.symtab.Definitions$definitions$.scala
$tools
$nsc$symtab$Definitions$definitions$$booltype(Def
nitions.scala:157)
        at scala.tools.nsc.symtab.Definitions$definitions
$.init(Definitions.scala:814)
        at scala.tools.nsc.Global$Run.<init>(Global.scala:697)
        at com.twitter.util.Eval$StringCompiler.apply(Eval.scala:523)
        at com.twitter.util.Eval$StringCompiler$$anonfun$apply
$3.apply(Eval.scala:540)
        at com.twitter.util.Eval$StringCompiler$$anonfun$apply
$3.apply(Eval.scala:539)
        at scala.Option.getOrElse(Option.scala:108)
        at com.twitter.util.Eval$StringCompiler.apply(Eval.scala:539)
        at com.twitter.util.Eval.applyProcessed(Eval.scala:198)
        at com.twitter.util.Eval.applyProcessed(Eval.scala:191)
        at com.twitter.util.Eval.apply(Eval.scala:137)
        at com.twitter.util.Eval.apply(Eval.scala:171)
        at mm.Main$.<init>(Main.scala:18)
        at mm.Main$.<clinit>(Main.scala)
        at mm.Main.main(Main.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.RuntimeException: Nonzero exit code: 1
        at scala.sys.package$.error(package.scala:27)

Kostas Kougios | 29 Dec 19:51

ScalaScriptEngine : A new library to dynamically compile & load scala classes

Hi all,

	I am happy to announce scalascriptengine, a scala library that can be
used to on-the-fly compile and load scala classes from their source
files. The library can be embedded in servers and allow modified scala
code to be reloaded without the need to redeploy.

Examples and documentation can be found at the projects home page:

http://code.google.com/p/scalascriptengine/

Regards,

Kostas

Aemon | 26 Dec 11:23
Picon
Gravatar

ENSIME 0.9.2 RC1 (for Scala 2.9 and Scala 2.8) now available

Happy Holidays!

The new release candidate is available here: https://github.com/aemoncannon/ensime/downloads

The biggest change in this release is that sbt users can(and should)
now generate their .ensime project files using the ensime-sbt-command.
The manual explains how to get started: http://aemon.com/file_dump/ensime_manual.html#tth_sEc3.1.1
I'm hoping this plugin-based approach will be much more reliable for
users. For development of ENSIME, it'll be nice to decouple the server
from sbt's release cycle.

The ensime-sbt-command is being developed at https://github.com/aemoncannon/ensime-sbt-cmd.
It's currently being built against sbt 0.11.[0,1,2] and published to
scala-tools.org (snapshot repository).

In addition, for those interested in integrating with ENSIME, the
manual now includes documentation for all events, RPC calls, and
datastructures used in the ENSIME API: http://aemon.com/file_dump/ensime_manual.html#tth_sEcC.2

Please let us know about issues at: https://github.com/aemoncannon/ensime/issues

Cheers!
Aemon

Samira Tasharofi | 22 Dec 02:40
Picon

A new version of Setak (a testing framework for Akka actors) has been released

Hi all,
I am pleased to inform you that I have released a new version of
Setak
that supports testing non-stable systems. Non-stable systems are the
systems in which the actors always have some messages to process,
i.e.
they don't terminate.
Please check this out for more details: http://mir.cs.illinois.edu/setak/

What is Setak?
Setak is a testing framework for Akka actor programs. Setak is
especially suited for test cases that find bugs related to non-
determinism. It allows programmers to specify the order of messages
during the execution of a test. Also it makes it easy to check test
assertions that require actors to be in a stable state, i.e., no
actor
is processing any message and no message can be processed (until new
messages are delivered) or after some messages are processed.
Regards,
Samira

raichoo | 22 Dec 00:56
Gravatar

Displayproblem with ensime in the terminal.

Hi,

I recently started to use emacs and ensime and encountered a problem
when doing tab-completion.

Whenever completing I get a colored line which looks like this:
http://yfrog.com/g0ppjnp

Any idea what's going on here?

Regards,
raichoo

Scala Mailing Lists | 21 Dec 15:32
Picon
Picon
Favicon
Gravatar

Mailing list reminder: Scala-tools

Welcome to the "Scala-tools" mailing list.

This automatic reminder is sent once a month to the list,
to keep subscribers up-to-date with the mailing list services,
and to help keeping the list on topic.

-------------------------------------------------------------------

The "Scala-tools" mailing list:

This list is devoted to all the community-contributed
tools and frameworks developed specifically for the
Scala language, as well as plugins and modules aimed
at integrating existing tools and the Scala system.

Examples are the Scala IDE plugins, sbaz, scalap, and
the many available editor plugins, but the
discussion can also cover sbt, Specs, ScalaTest, etc.

The set of topics that are discussed on this list
include both the usage of these tools, as well as
their development.

Whilst general discussion covering the Scala IDE for
Eclipse is welcome here, the main forums for user
support and for development are now hosted at
http://groups.google.com/group/scala-ide-user and
http://groups.google.com/group/scala-ide-dev.

Occasionally discussed on the list are also access
to the scala-tools.org website (maintained by the
Scala community and not by EPFL) and Maven
integration, as well as the Lift framework.

More rarely discussed, however, is the use of
general third-party tools that require no specific
integration effort in order to be usable with Scala.

If you are interested, for instance, in using some
specific Java library from Scala, your question is
more appropriately directed to "scala-user" instead.

-------------------------------------------------------------------

Other information:

There are several Scala lists devoted to individual topics (and
more may be created in the future). For the full list, please
see: http://www.scala-lang.org/node/199

Try to avoid cross-posting whenever possible. If you can, select
the list that is closer to your topic and post in that list only.
In any case, never cross-post replies.

If you ever want to unsubscribe from this list, just visit this
page: http://groups.google.com/group/scala-tools/subscribe
or send an email to scala-tools+unsubscribe@...

Thank you!
The Scala Team


Gmane