I can not use my classes from Scala worksheet in IntelliJ CE with Scala plugin.
I do the following:
Create Scala SBT project.
In src/main/scala create package
test1
.In this package create class
package test1 class TestClass { }
- In the same package create Scala worksheet ws1.sc, inside it create object
ws1
, inside it put a couple of expressions. It works.
- When I add
new ScalaTest
to objectws1
, IntelliJ addsimport test1.ScalaTest
, but evaluation of worksheet does not work.
If I add package test1
to my worksheet, it does not work at all, with warning "Package name doesn't correspond to directories structure, this may cause problem with resolve to classes from the file"
Is there any ideas how to use my classes from worksheet?