Tags "scala" Result

IntelliJ Scala cannot build a simple project (SBT can)

I installed IntelliJ idea community edition 14.1.3 on my windows 7 machine. I created a simple sbt project where the build.sbt file looks like name := "SlickTest" version := "1.0" scalaVersion := "2.11.6" libraryDependencies = Seq( "com.typesafe.slick" %% "slick" % "3.0.0-RC3", "org.slf4j" % "slf4j-nop" % "1.6.4", "com.typesafe" % "con

it1352 1 2019-05-21

Should we use the ScalaSignature directly?

The ScalaSignature is an annotation. It contains meta informations. https://github.com/scala/scala/blob/v2.9.2/src/library/scala/reflect/ScalaSignature.java And then parser is provided. but scala-library.jar is not contains the parser. It seem like secret API. https://github.com/scala/scala/blob/v2.9.2/src/scalap/scala/tools/scalap/scalax/rul

it1352 6 2019-05-08

Ubuntu scala REPL, Commands not typed on console

I am using Ubuntu 18.04 Scala 2.11.12 (OpenJDK 64-Bit Server VM, Java 1.8.0_162). Once I open the scala shell, I am not able to see anything that I type. It gets typed though. Below is how it is happening when I type println("Hello, world!") at console: $ scala Welcome to Scala 2.11.12 (OpenJDK 64-Bit Server VM, Java 1.8.0_162). Type in expr

it1352 0 2020-07-31

Can I compile a Scala project with mixed java and scala code with dependencies both ways in Maven?

I have a project which has both scala and java code which I am currently managing in eclipse using the scala IDE plugin. At present the directory structure is organized such that some packages have both java and scala code in them. There are scala classes which depend on java classes and there are other java classes which depend on the scala classe

it1352 3 2019-05-15

Running a Scala Script with external dependencies

I have the following jars under /Users/joe/.scala/lib: commons-codec-1.4.jar httpclient-4.1.1.jar httpcore-4.1.jar commons-logging-1.1.1.jar httpclient-cache-4.1.1.jar httpmime-4.1.1.jar Below is my test.sh written in scala. #!/bin/sh -v L=`cd /Users/joe/.scala/lib;pwd` cp=`echo $L/*.jar|sed 's/ /:/g'` echo $cp exec scala -c

it1352 4 2019-05-09