Skip to content

Exclude directive is not honored for directories under Windows #2973

Open
@nemoo

Description

@nemoo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    --excludeIssues tied with the excluding inputs.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions