- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala Tools
The main forum for discussions about the Scala tools contributed by the community.
What is correct run configuration in IDEA for a Lift app?
Currently I'm trying to run as an Application with "LiftConsole" as the "main" class. This fails with an error of:
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).Type in expressions to have them evaluated.Type :help for more information.
scala> Failed to initialize compiler: object scala not found.** Note that as of 2.8 scala does not assume use of the java classpath.** For the old behavior pass -usejavacp to scala, or if using a Settings** object programatically, settings.usejavacp.value = true.
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).Type in expressions to have them evaluated.Type :help for more information.
scala> Failed to initialize compiler: object scala not found.** Note that as of 2.8 scala does not assume use of the java classpath.** For the old behavior pass -usejavacp to scala, or if using a Settings** object programatically, settings.usejavacp.value = true.
Freezes with IDEA when trying to edit ~700 line file
I've run into a nasty problem trying to deal with a Lift file of about 700 lines; when I try to do a simple edit (copy a line of the form "def foo ="string"") and paste it a few lines up, IDEA freezes. This is consistent, and happens whether or not the "Scala type-aware highlighting" feature is enabled. Even turning off all Scala Inspections hasn't helped. I've encountered occasional freezes in IDEA before, but never with the consistency. Anyone have suggestions as to other things to try?
Thanks,Ken
Thanks,Ken
Eclipse dependency problem...
Using the Scala IDE plugin for Eclipse (beta09, I like the double-digits in the betas ;-) ), and I have a question about "project" dependencies (I don't think this question is strictly limited to Scala-based projects). I have a project structure that kind of looks like this:
Project AProject B depends on A
Now, the twist: Project A's TESTING code depends on B. So, the question is: can I create an Eclipse project dependency that will only be applied to the test-code. Placing a dependency on B in A causes a circular dependency (obviously), but the circularity is broken if the dependency is only applied for testing purposes.
Project AProject B depends on A
Now, the twist: Project A's TESTING code depends on B. So, the question is: can I create an Eclipse project dependency that will only be applied to the test-code. Placing a dependency on B in A causes a circular dependency (obviously), but the circularity is broken if the dependency is only applied for testing purposes.
Build and Deploy an old version of scala with maven
Hello,
I download and build the source code of scala ( svn, svn revert , and
after "ant distpack"), the revision r17517 for a specific project
which compil and run only with this version ( i need this version to
create netlogo simulation program extension).
How i can build one jar which contain all of scala important jar and
how i can deploy this on my local maven repository ?
Thanks a lot,
Best regards,
SR.
Eclipse IDE for Scala beta09 for Scala 2.9 and 2.8 is out
We are happy to announce that the beta09 release of the Eclipse IDE for Scala is ready for download!
This release comes in two flavors: the 2.9.0-1 version, and the 2.8.2-SNAPSHOT version.
The 2.8 compiler shipped with this version of the plugin is based on the development branch of 2.8.2,
and is fully binary compatible with 2.8.1. It contains the same improvements to the presentation compiler
as the 2.9 version, and a number of bug fixes related to Java signatures.
What's new:
- better breakpoint support (fixes errors when setting breakpoints in traits coming from external libraries).
- better completions (works in many more situations, such as partially typed method names).
SBT buildable version of DivByZero compiler plugin
Hi all,
After a brief conversation with Paul Phillips at Scalathon, I decided
it would be a good idea to produce an SBT 0.10 buildable version of
the DivByZero plugin that is described in Lex Spoon's tutorial on
compiler plugins. This should make it a bit easier for people (like
myself) to get started when playing with compiler plugins. The code
can be found here:
https://github.com/iainmcgin/scalac-divbyzero-plugin
The build targets 2.9.0-1 by default, however it is also set up for
cross building and can output JARs for 2.8.0, 2.8.1, 2.9.0, 2.9.0-1
and 2.10.0-SNAPSHOT (for testing against the nightly).
A testing framework for Scala actors: please try it!
Hi all,
We (a group at UIUC) have created a testing framework for Scala
actors, named "Setac" (http://mir.cs.illinois.edu/setac/) .
It is presented as a paper in Scala days 2011 (http://days2011.scala-
lang.org/). The idea is that it allows the users to control the
schedule of the test execution and check the assertions at
appropriate
times. Please try the tool and give me your feedback.
My goal is to port Setac for Akka actors as well. In order to improve
the framework, I need some actor programs so that I can see which
features are required to be included in an actor testing framework.
Tool to compute source code metrics?
Hi all,
does anyone know about a tool to compute source code metrics for Scala
code? Using an existing tool like ckjm
unfortunately produces garbled
results, as all the compiler-inserted methods and classes are rather
idiosyncratic. Preferably such a tool would be independent of the build
system used, e.g., by consuming class files rather than source files
(ckjm works like this).
Does anyone know such a tool (Google didn't turn up something useful) or
is hacking into scalap my best bet?
Best wishes,
Andreas









