[ 
https://issues.apache.org/jira/browse/GROOVY-10466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487165#comment-17487165
 ] 

Eric Milles commented on GROOVY-10466:
--------------------------------------

[~lptr] Could you provide a small project that recreates?  I did the best I 
could with all of Gradle, but I don't have the proper workstation setup to do 
much with it.

> Compilation error on Spock expectation
> --------------------------------------
>
>                 Key: GROOVY-10466
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10466
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 4.0.0-beta-2, 4.0.0-rc-1, 4.0.0-rc-2, 4.0.0
>            Reporter: Lóránt Pintér
>            Priority: Major
>
> *Reproduction steps*
>  * Check out [https://github.com/gradle/gradle/tree/lptr/groovy-4-bugs]
>  * Run {{./gradlew :execution:compileAll}}, it works using 4.0.0-beta-1!
>  * Change the Groovy version here to `4.0.0-beta-2`: 
> [https://github.com/gradle/gradle/blob/860e74522dcbf2df635a27f38fef1daa0b093322/build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt#L23]
>  * Run {{./gradlew :execution:compileAll}}
> It fails with:
> {code:java}
> :execution:compileTestGroovy FAILED   
> Executing Spock 2.0.0-groovy-3.0 with NOT compatible Groovy version 
> 4.0.0-beta-2 due to set spock.iKnowWhatImDoing.disableGroovyVersionCheck 
> system property. This is unsupported and may result in weird runtime errors!  
>    
> startup failed:       
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BroadcastChangingOutputsStepTest.groovy:
>  60: Interaction is missing a target @ line 60, column 13.     
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  94: Interaction is missing a target @ line 94, column 13.   
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  117: Interaction is missing a target @ line 117, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  146: Interaction is missing a target @ line 146, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  170: Interaction is missing a target @ line 170, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  193: Interaction is missing a target @ line 193, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  214: Interaction is missing a target @ line 214, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  239: Interaction is missing a target @ line 239, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy:
>  251: Interaction is missing a target @ line 251, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CancelExecutionStepTest.groovy:
>  37: Interaction is missing a target @ line 37, column 12.      
>            0 *_       
>               ^       
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CancelExecutionStepTest.groovy:
>  53: Interaction is missing a target @ line 53, column 12.      
>            0 *_       
>               ^       
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CancelExecutionStepTest.groovy:
>  70: Interaction is missing a target @ line 70, column 12.      
>            0 *_       
>               ^       
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateAfterExecutionStepTest.groovy:
>  66: Interaction is missing a target @ line 66, column 13.   
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateAfterExecutionStepTest.groovy:
>  86: Interaction is missing a target @ line 86, column 13.   
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateAfterExecutionStepTest.groovy:
>  109: Interaction is missing a target @ line 109, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateAfterExecutionStepTest.groovy:
>  157: Interaction is missing a target @ line 157, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  71: Interaction is missing a target @ line 71, column 13.  
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  97: Interaction is missing a target @ line 97, column 13.  
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  135: Interaction is missing a target @ line 135, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  154: Interaction is missing a target @ line 154, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  178: Interaction is missing a target @ line 178, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  196: Interaction is missing a target @ line 196, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureStateBeforeExecutionStepTest.groovy:
>  226: Interaction is missing a target @ line 226, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CreateOutputsStepTest.groovy:
>  57: Interaction is missing a target @ line 57, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/CreateOutputsStepTest.groovy:
>  70: Interaction is missing a target @ line 70, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ExecuteStepTest.groovy:
>  64: Interaction is missing a target @ line 64, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ExecuteStepTest.groovy:
>  88: Interaction is missing a target @ line 88, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ExecuteStepTest.groovy:
>  108: Interaction is missing a target @ line 108, column 13.    
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/IdentityCacheStepTest.groovy:
>  60: Interaction is missing a target @ line 60, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/IdentityCacheStepTest.groovy:
>  75: Interaction is missing a target @ line 75, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RecordOutputsStepTest.groovy:
>  46: Interaction is missing a target @ line 46, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RecordOutputsStepTest.groovy:
>  61: Interaction is missing a target @ line 61, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  61: Interaction is missing a target @ line 61, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  84: Interaction is missing a target @ line 84, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  104: Interaction is missing a target @ line 104, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  122: Interaction is missing a target @ line 122, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  141: Interaction is missing a target @ line 141, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  153: Interaction is missing a target @ line 153, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  163: Interaction is missing a target @ line 163, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy:
>  177: Interaction is missing a target @ line 177, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/RemoveUntrackedExecutionStateStepTest.groovy:
>  44: Interaction is missing a target @ line 44, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy:
>  56: Interaction is missing a target @ line 56, column 13.       
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy:
>  71: Interaction is missing a target @ line 71, column 13.       
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy:
>  91: Interaction is missing a target @ line 91, column 13.       
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy:
>  114: Interaction is missing a target @ line 114, column 13.     
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy:
>  137: Interaction is missing a target @ line 137, column 13.     
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveInputChangesStepTest.groovy:
>  48: Interaction is missing a target @ line 48, column 13.  
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveInputChangesStepTest.groovy:
>  62: Interaction is missing a target @ line 62, column 13.  
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipEmptyWorkStepTest.groovy:
>  93: Interaction is missing a target @ line 93, column 13.        
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipEmptyWorkStepTest.groovy:
>  130: Interaction is missing a target @ line 130, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipEmptyWorkStepTest.groovy:
>  187: Interaction is missing a target @ line 187, column 13.      
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipUpToDateStepTest.groovy:
>  54: Interaction is missing a target @ line 54, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipUpToDateStepTest.groovy:
>  71: Interaction is missing a target @ line 71, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipUpToDateStepTest.groovy:
>  80: Interaction is missing a target @ line 80, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipUpToDateStepTest.groovy:
>  89: Interaction is missing a target @ line 89, column 13. 
>            0 * _      
>                ^      
> /Users/lptr/Workspace/gradle/gradle-groovy-4/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipUpToDateStepTest.groovy:
>  99: Interaction is missing a target @ line 99, column 13. 
>            0 * _      
>                ^      
> 56 errors
> {code}
> Build scan: 
> [https://ge.gradle.org/s/6d6hevpmnknpw/console-log?task=:execution:compileTestGroovy]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to