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

Exclude directive is not honored for directories under Windows

Open nemoo opened this issue 1 year ago • 1 comments

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/*"

nemoo avatar Jun 21 '24 09:06 nemoo

I dont think its just windows - I also can't get it to work in https://github.com/bishabosha/ops-mirror (im using macOS)

bishabosha avatar Jun 21 '24 21:06 bishabosha