Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Exclude directives not working as expected #2836

Open
Quafadas opened this issue Apr 3, 2024 · 0 comments
Open

Multiple Exclude directives not working as expected #2836

Quafadas opened this issue Apr 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Quafadas
Copy link
Contributor

Quafadas commented Apr 3, 2024

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 Quafadas added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant