Skip to content

Commit 9b054b0

Browse files
committed
experiment test
1 parent a44d42a commit 9b054b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/build/src/main/scala/scala/build/preprocessing/DirectivesPreprocessor.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ case class DirectivesPreprocessor(
7878
)
7979
}
8080

81+
for (vals <- unusedDirectives) println(s"preprocess- ${vals.toString} ${vals.key}")
82+
83+
8184
val (optionsWithActualRequirements, optionsWithEmptyRequirements) =
8285
buildOptionsWithTargetRequirements.global.partition(_.requirements.nonEmpty)
8386
val summedOptionsWithNoRequirements =
@@ -121,13 +124,15 @@ case class DirectivesPreprocessor(
121124
logger: Logger
122125
): Either[BuildException, ProcessedDirective[T]] =
123126
if !allowRestrictedFeatures && (handler.isRestricted || handler.isExperimental) then
127+
print("Reached Error Flow")
124128
Left(DirectiveErrors(
125129
::(WarningMessages.powerDirectiveUsedInSip(scopedDirective, handler), Nil),
126130
Seq(scopedDirective.directive.position(scopedDirective.maybePath))
127131
))
128132
else
129133
if handler.isExperimental && !shouldSuppressExperimentalFeatures then
130134
logger.experimentalWarning(scopedDirective.directive.toString, FeatureType.Directive)
135+
print("Reached Here")
131136
handler.handleValues(scopedDirective, logger)
132137

133138
val handlersMap = handlers
@@ -137,6 +142,7 @@ case class DirectivesPreprocessor(
137142
.toMap
138143

139144
val unused = directives.filter(d => !handlersMap.contains(d.key))
145+
for (vals <- unused) println(s"${vals.toString} ${vals.key}")
140146

141147
val res = directives
142148
.iterator

0 commit comments

Comments
 (0)