Vincent
Vincent

Reputation: 5445

Why doesn't Scala IDE recognise my Scala packages?

I have a project containing our Gatling performance tests. I've imported the Maven project into Scala IDE, and I can see that the project has a Scala nature.

However, when I look at the package tree in the package explorer (it's located in src/test/scala), I see the regular folder hierarchy instead of it being flattened by package:

package explorer

Furthermore, automatic imports, ctrl+click and basically every other IDE feature do not work.

What would I have to configure?

(I'm not that familiar with both Scala and Maven, so I'm not quite sure what other info is relevant here - do enlighten me if I missed anything.)

Upvotes: 0

Views: 1006

Answers (1)

insan-e
insan-e

Reputation: 3921

Right Click -> Build Path -> Use as Source Folder.

Any folder can become a source folder by adding it to the Java build path. Build path is basically "stuff" (jars, files and folders) that compiler will consider when compiling your source files.

Upvotes: 2

Related Questions