Skip to content

Fresh Scala project: Cannot create any new class #262

@ppp7032

Description

@ppp7032

IntelliJ version:

IntelliJ IDEA 2026.1 EAP
Build #IU-261.20362.25, built on February 4, 2026
Source revision: 4dbe47e0fe1f5
Runtime version: 25.0.2+10-b300.57 aarch64137.0.17-261-b56
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.wl.WLToolkit
Linux 6.18.9+1-asahi_1
Void Linux; glibc: 2.41; desktop: KDE (plasmashell 6.5.5)
Exception reporter ID: 12022639b820c4f-10e2-43c3-a3bc-ac25f88b551d
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 10
Non-Bundled Plugins:
  com.intellij.classic.ui (261.20362.8)
  org.intellij.scala (2026.1.3)
  intellij.vitejs (261.20362.30)
  org.jetbrains.android (261.20362.25)
  tslint (261.20362.30)
  intellij.prettierJS (261.20362.30)
  com.intellij.plugins.webcomponents (261.20362.30)
  com.intellij.tasks (261.20362.30)
  HtmlTools (261.20362.36)
Kotlin: 261.20362.25-IJ
Current Desktop: KDE

Scala version: 3.3.7LTS
Java source compatability: 8
JDK version: 25
gdx-liftoff: gdx-liftoff-1.14.0.6-linux.jar

After making a fresh project, adding a single Scala class to core/main/scala/g/d/f:

Execution failed for task ':core:jar'.
> Entry g/d/f/ScalaMain.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/9.3.1/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

Result of running the following command:

$ find ./ -name ScalaMain\*
./core/src/main/scala/g/d/f/ScalaMain.scala
./core/build/classes/scala/main/io/github/some_example_name/ScalaMain.tasty
./core/build/classes/scala/main/g/d/f/ScalaMain.class
./core/build/classes/scala/main/g/d/f/ScalaMain.tasty
./core/build/classes/java/main/g/d/f/ScalaMain.class
./core/build/classes/java/main/g/d/f/ScalaMain.tasty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions