scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Scala CLI prints warning about project root directory when all sources are in the same directory

Open lwronski opened this issue 2 years ago • 1 comments

Version(s) 0.2.0

Describe the bug Scala CLI prints warning about projet root direcotry even if all files are in the same directory.

To Reproduce

➜  scala-demo tree
.
├── demo.scala
└── demo.test.scala

0 directories, 2 files
➜  scala-demo scala-cli demo.scala demo.test.scala 
Warning: setting /private/tmp/scala-demo as the project root directory for this run.
Compiling project (Scala 3.2.2, JVM)

Expected behaviour I would expect that if all files are in the same directory, the warning will not be printed.

lwronski avatar Mar 15 '23 08:03 lwronski

I can confirm this still happens with Scala 3.4.1 and Scala CLI 1.2.2.

Also, adding an empty project.scala or build.scala file in that directory doesn't better the situation.

halloleo avatar Aug 13 '24 06:08 halloleo