Scala Worksheet not evaluating in Eclipse - eclipse

I have ubuntu 14, and have installed latest sbt and then installed Eclipse for scala. I then created a scala project, and then a worksheet.
I typed in a few line like 1+2 etc, but the sheet doesn't evaluate.
Below is my system configuration:
OS: Ubuntu 14
sbt version: 0.13.13
JAVA version: 8
eclipse version: Version: 4.5.0 (neon.1)
I have NOT installed Scala.
Can someone suggest a possible solution?

Related

How to enable CUDA in eclipse without nvidia docker container?

I have installed eclipse for C/C++ version on ubuntu 18.04, 64 bit
I have installed cuda 11.0.221.
nvcc and nvcc-smi works showing that cuda compiler and device driver are both installed
I have added cuda to eclipse using eclipse->help->install new software as suggested in Nsight Eclipse Plugins Edition Getting Started Guide and Nsight Eclipse Plugins Installation Guide
While installing it failed to install the "nvidia docker container launch" but installed the "cuda developer tools" and "cuda remote launch".
After installation, I don't see any CUDA related entry in Eclipse->Window > Preferences or Eclipse->file->new project. Images are below after the question:
My question is:
What to do so that eclipse is enabled with CUDA?
Other information:
OS: ubuntu 18.04 x86_64.
cuda 11.0.221.
Eclipse information:
Version: 2022-03 (4.23.0)
Build id: 20220310-1457
OS: Linux, v.5.4.0-74-generic, x86_64 / gtk 3.22.30
Java vendor: Ubuntu
Java runtime version: 11.0.13+8-Ubuntu-0ubuntu1.18.04
Java version: 11.0.13
If your version of Eclipse is compatible with the version of the NsightEE Eclipse plugins provided with the CUDA version you're trying to install for, then - after a successful installation - the File > New Project... dialog will have the entry C/C++ > CUDA C/C++ Project.
If it doesn't show up, then the installation has failed. I would guess that it might be a version incompatibility, and you might try using an older version of Eclipse (or a newer version of CUDA). Alternatively, perhaps the installation procedure got botched somehow.

Which version of sbt is compatible with scala 2.13.4

I have scala 2.13.8 and sbt 1.5.8 installed using brew command But i am using scala 2.13.4 in intellij for my project and sbt 1.4.4.I have also installed scala plugin But my project gives unable to fetch project structure from sbt.
And thus I'm not able to install any of the dependencies.

Antlr 4 IDE installation Failure

Following a clean install of Ubuntu 18.04, and subsequent installation of Eclipse (Version: Oxygen.3a Release (4.7.3a)) i have tried to install the Antlr4 ide using "Help -> Eclipse Marketplace", Search for Antlr4 and click Install (ANTLR 4 IDE 0.3.6). I am then given the error below:
My Java version is as follows:
%java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Also installing jdk 11 resulted in this:
openjdk-11-jdk-headless is already the newest version (10.0.1+10-3ubuntu1)
I effectively get the same error when installing from https://marketplace.eclipse.org/content/antlr-4-ide.
Has this error been seen before, and is there a solution ?

How to tell Java to use jline3

Scala newbie and following this blog to use sbt (I have a little Java experience using Eclipse).
sbt is working, however I must have the ncurses issue described here. Instead of downgrading ncurses I'm trying to upgrade jline.
I cloned the new jline3 repo and installed it using mvn.
I don't know how to point java to use the new jline3. Which is the same as saying, "I don't know how to fix this problem with scala / sbt".
OS: Arch: Manjaro
ncurses Version : 6.0+20170902-1
java -version
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-b01)

How to install an older version of scala

I currently had installed scala 2.11.7 but in order to fix this issue, I have to install a older version of scala(2.10.5). When I try to install with brew, I keep getting the following error
Error: No available formula for 2.10.5
I tried downloading the binaries for scala download page but when I load the SDK and all the libraries in IntelliJ, I just get this error
Error:scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK scala-sdk-2.10.5
So what is the right way to install an older version of scala and setting the same in intellij
The following should work for Homebrew 0.9.5:
Install Tapped version of Scala 2.10
brew install homebrew/versions/scala210
Unlink version of Scala 2.11 (if installed)
brew unlink scala
Link Tapped version of Scala 2.10
brew link scala210 --force
Check scala version
scala -version
brew search scala
then you will find all the available versions like below
scala scala#2.10 scala#2.11 scalaenv scalariform scalastyle
homebrew/science/scalapack Caskroom/cask/scala-ide
Then choose whichever version you want to install. say if you want to install scala 2.11 then you can do that by runnig the command like below
brew install scala#2.11
If you manage your project with sbt, the scala built tool, either directly or via IntelliJ, the version of scala for that code is defined in the build file (build.sbt or Build.scala):
scalaVersion := "2.10.5"
Choosing this path, there isn't even a need to install scala on your Mac at all. Each project will have its own version -- pulled from your local ivy repository, so it doesn't have to download it each time.
And rather than typing scala to get to the REPL, you type sbt console to get to the REPL with the project's scala version and dependencies loaded.
Homebrew installs scala 2.10.5 with the formula scala210:
$ brew install scala210
==> Installing scala210 from homebrew/homebrew-versions
==> Downloading https://homebrew.bintray.com/bottles/scala210-2.10.5.yosemite.bottle.tar.gz
==> Downloading http://www.scala-lang.org/files/archive/scala-2.10.5.tgz
######################################################################## 100,0%
However, if you are using a build tool like maven or sbt, you should be able to set another scala version in your build config. You should then be able to import your project into IntelliJ and IntelliJ should automatically use the dependencies defined in your build config.
Using brew to install specific version:
$ brew search scala
==> Formulae
scala scala#2.10 scala#2.11 scalaenv
scalapack scalariform scalastyle
==> Casks
scala-ide
Make sure you default version in profile
$echo 'export PATH="/usr/local/opt/scala#2.11/bin:$PATH"' >> ~/.bash_profile