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

Multiple Exclude directives not working as expected

Open Quafadas opened this issue 1 year ago • 0 comments

Version(s) 1.2.1

Describe the bug Attempting to exclude more than one directory, appears to report that the directive is wrongly declared. image

A single directory, works as expected

simon@Simons-Mac-mini exclude_directive_bug % scala-cli run .
[error]  Found exclude directives in files:
  project.scala:4:20-28, project.scala:4:31-40
exclude directive must be defined in project configuration file: /Users/simon/Code/exclude_directive_bug/project.scala.

To Reproduce

git clone https://github.com/Quafadas/exclude_directive_bug.git
scala-cli run .

Expected behaviour The docs suggest that this is supported;

https://scala-cli.virtuslab.org/docs/reference/directives#exclude-sources

I would expect the files in the two excluded directories to be ignored, and the project to run through.

Quafadas avatar Apr 03 '24 08:04 Quafadas