Open
Description
Scala-cli 1.2.0
Windows 11
Describe the bug
The "exclude" directive is not honored for directories under Windows.
To Reproduce
create Main.scala:
//> using exclude "input"
@main def go = println("Hello")
create input/Source.scala:
a
When running in Windows 11, produced the error:
[error] .\input/Source.scala:1:1
[error] Illegal start of toplevel definition
[error] a
[error] ^
Expected behaviour
It should not try to compile files underneath the input
directory because I have explicitly excluded the whole directory via the exclude directive. Also writing it like that is ignored: //> using exclude "input/*"