As I cannot comment, I will write here: you must point the scala class and right click on it, and then you have the Run. In the pictures you are trying to run the java class
Few things: a) Check to make sure, your source directory is included as module ie File > Project Structure. In the attachment below you see my modules
b) Check to make sure you have included your scala library, I believe you have this setup.
c) Last resort, see if you can add your object as Application ie Run > Edit Configuration & the following
Hope this helps, enjoy!
You need a scala plugin to run a scala file. And find more at the get started documentation of idea.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.