intellij-scala | Scala plugin for IntelliJ IDEA | Plugin library
kandi X-RAY | intellij-scala Summary
kandi X-RAY | intellij-scala Summary
Scala plugin for IntelliJ IDEA
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of intellij-scala
intellij-scala Key Features
intellij-scala Examples and Code Snippets
Community Discussions
Trending Discussions on intellij-scala
QUESTION
I am trying to follow the intructions for setting up intellij scala project to work with sbt. However, I am not finding the run/configuration described in intellij 2020.1. Based on this post I understand that the way this is configured has changed. However, that post describes how to make old project work. What do I do for new projects?
Steps to Reproduce
- Create nice sbt project with idea.sbt already configured with mainRunner
sbt new tillrohrmann/flink-project.g8
this includes idea.sbt
...ANSWER
Answered 2020-Apr-26 at 20:37IntelliJ's Use classpath of module
corresponds to the classpath of sbt's sub-project. To create a Run Configuration
using the classpath of mainRunner
project try
Run | Edit Configurations...
- Click the plus button
+
toAdd New Configuration
- Select
Application
- Give it a name say
WordCount
- Under
Main Class
specify Scala class withmain
method, say,org.example.WordCount
Working directory
should be the root of the project- Set
Use classpath of module
tomainRunner
- JRE should be 1.8 or above
Note as an alternative to using mainRunner
project you could also use root project but select the checkbox Include dependencies with "Provided" scope
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install intellij-scala
Clone this repository to your computer
Open IntelliJ IDEA, select File -> New -> Project from existing sources, point to the directory where the Scala plugin repository is and then import it as sbt project.
In the next step, select JDK 11 as project JDK (create it from an installed JDK if necessary).
Select the scalaCommunity run configuration and select the Run or Debug button to build and start a development version of IDEA with the Scala plugin.
The project is configured to build and run the typeInference tests and fast tests with Github Actions. The full test suite isn't run to avoid really long build times.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page