I cannot use my classes from the Scala worksheet in IntelliJ CE with the Scala plugin.
I do the following:
Create a Scala SBT project.
In src / main / scala, create the test1 package.
In this package, create a class
package test1 class TestClass { }
- In the same package, create Scala worksheet ws1.sc, create a
ws1 object inside it, add a couple of expressions inside it. It is working.

- When I add
new ScalaTest to the new ScalaTest object, IntelliJ adds import test1.ScalaTest , but the worksheet evaluation does not work.

If I add package test1 to my sheet, it doesnβt work at all, with the warning βThe package name does not match the directory structure, this may cause a problem with resolving classes from the fileβ

Any ideas how to use my classes from a worksheet?
source share