-
Notifications
You must be signed in to change notification settings - Fork 149
Description
The symptom: //> using exclude foo does not stop scanning inside of foo, so if foo contains project.scala with directives, then it will evaluate the directives in foo/project.scala and even try to compile code.
(when i remove foo/project.scala then code compilation is excluded in foo as expected)
Here was an initial idea for a solution:
well, i would assume
excludeshould tell scala-cli to never even look inside that directory. Currently (if the excluded subdirectory has project.scala) it will try to typecheck my scala code in that subdirectory - and check using directives (such as reporting unresolvable library dependencies).I would imagine the solution being an ahead of time scan for
excludebefore evaluating other settings/running compiler.if that is too complex or performance sensitive - then perhaps warn about these semantics in the documentation
Originally posted by @bishabosha in #3385