Build Logs

hughsimpson/scalamock • 14270752029

Errors

63

Warnings

24

Total Lines

281

1##################################
2Clonning https://github.com/hughsimpson/scalamock.git into repo using revision v6.1.0.0
3##################################
4Note: switching to 'd5141eb988ebd65d02d4a51db5c67fe8a883c7cb'.
5
6You are in 'detached HEAD' state. You can look around, make experimental
7changes and commit them, and you can discard any commits you make in this
8state without impacting any branches by switching back to a branch.
9
10If you want to create a new branch to retain commits you create, you may
11do so (now or later) by using -c with the switch command. Example:
12
13 git switch -c <new-branch-name>
14
15Or undo this operation with:
16
17 git switch -
18
19Turn off this advice by setting config variable advice.detachedHead to false
20
21----
22Preparing build for 3.6.4
23Scala binary version found: 3.6
24Implicitly using source version 3.6-migration
25Scala binary version found: 3.6
26Implicitly using source version 3.6-migration
27Would try to apply common scalacOption (best-effort, sbt/mill only):
28Append: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s
29Remove: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
30----
31Starting build for 3.6.4
32Execute tests: false
33sbt project found:
34No prepare script found for project hughsimpson/scalamock
35##################################
36Scala version: 3.6.4
37Targets: io.github.hughsimpson%scalamock
38Project projectConfig: { "projects": { "exclude": [], "overrides": {} }, "java": { "version": "17" }, "sbt": { "commands": [], "options": [] }, "mill": { "options": [] }, "tests": "compile-only", "migrationVersions": [], "sourcePatches": [] }
39##################################
40Using extra scalacOptions: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s
41Filtering out scalacOptions: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
42[sbt_options] declare -a sbt_options=()
43[process_args] java_version = '17'
44[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_8/rt.jar'
45# Executing command line:
46java
47-Dfile.encoding=UTF-8
48-Dcommunitybuild.scala=3.6.4
49-Dcommunitybuild.project.dependencies.add=
50-Xmx7G
51-Xms4G
52-Xss8M
53-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
54-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_8
55-jar
56/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
57"setCrossScalaVersions 3.6.4"
58"++3.6.4 -v"
59"mapScalacOptions ",-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,""
60"set every credentials := Nil"
61"excludeLibraryDependency com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}"
62"removeScalacOptionsStartingWith -P:wartremover"
63
64moduleMappings
65"runBuild 3.6.4 """{
66 "projects": {
67 "exclude": [],
68 "overrides": {}
69 },
70 "java": {
71 "version": "17"
72 },
73 "sbt": {
74 "commands": [],
75 "options": []
76 },
77 "mill": {
78 "options": []
79 },
80 "tests": "compile-only",
81 "migrationVersions": [],
82 "sourcePatches": []
83}""" io.github.hughsimpson%scalamock"
84
85[info] [launcher] getting org.scala-sbt sbt 1.9.8 (this may take some time)...
86[info] welcome to sbt 1.9.8 (Eclipse Adoptium Java 17.0.8)
87[info] loading settings for project repo-build from plugins.sbt ...
88[info] loading project definition from /build/repo/project
89[info] compiling 2 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
90[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.18. Compiling...
91[info] Compilation completed in 8.215s.
92[info] done compiling
93[info] loading settings for project repo from build.sbt,publishing.sbt ...
94[info] set current project to repo (in build file:/build/repo/)
95Execute setCrossScalaVersions: 3.6.4
96OpenCB::Changing crossVersion 3.4.2 -> 3.6.4 in scalamockJVM/crossScalaVersions
97OpenCB::Changing crossVersion 3.4.2 -> 3.6.4 in examples/crossScalaVersions
98OpenCB::Changing crossVersion 3.4.2 -> 3.6.4 in scalamockJS/crossScalaVersions
99[info] set current project to repo (in build file:/build/repo/)
100[info] Setting Scala version to 3.6.4 on 3 projects.
101[info] Switching Scala version on:
102[info] scalamockJS (2.12.20, 2.13.14, 3.6.4)
103[info] scalamockJVM (2.12.20, 2.13.14, 3.6.4)
104[info] examples (2.12.20, 2.13.14, 3.6.4)
105[info] Excluding projects:
106[info] * repo (2.12.18)
107[info] Reapplying settings...
108[info] set current project to repo (in build file:/build/repo/)
109Execute mapScalacOptions: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
110[info] Reapplying settings...
111[info] set current project to repo (in build file:/build/repo/)
112[info] Defining Global / credentials, credentials and 2 others.
113[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 19 others.
114[info] Run `last` for details.
115[info] Reapplying settings...
116[info] set current project to repo (in build file:/build/repo/)
117Execute excludeLibraryDependency: com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}
118[info] Reapplying settings...
119OpenCB::Failed to reapply settings in excludeLibraryDependency: Reference to undefined setting:
120
121 Global / allExcludeDependencies from Global / allExcludeDependencies (CommunityBuildPlugin.scala:315)
122 Did you mean scalamockJS / allExcludeDependencies ?
123 , retry without global scopes
124[info] Reapplying settings...
125[info] set current project to repo (in build file:/build/repo/)
126Execute removeScalacOptionsStartingWith: -P:wartremover
127[info] Reapplying settings...
128[info] set current project to repo (in build file:/build/repo/)
129[success] Total time: 0 s, completed Apr 4, 2025, 7:24:55 PM
130Build config: {
131 "projects": {
132 "exclude": [],
133 "overrides": {}
134 },
135 "java": {
136 "version": "17"
137 },
138 "sbt": {
139 "commands": [],
140 "options": []
141 },
142 "mill": {
143 "options": []
144 },
145 "tests": "compile-only",
146 "migrationVersions": [],
147 "sourcePatches": []
148}
149Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
150Starting build...
151Projects: Set(scalamockJVM)
152Starting build for ProjectRef(file:/build/repo/,scalamockJVM) (scalamock)...
153OpenCB::Exclude Scala3 specific scalacOption `-source:3.6-migration` in Scala 2.12.18 module Global
154OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
155OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
156OpenCB::Would not apply setting `-source:3.6-migration`: Project has predefined source version: Some(-source:3.6-migration)
157Compile scalacOptions: List(-unchecked, -release:8, -experimental, -source:3.6-migration, -Wconf:msg=can be rewritten automatically under:s)
158[info] compiling 56 Scala sources to /build/repo/jvm/target/scala-3.6.4/classes ...
159[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:35:10
160[warn] 35 | return r
161[warn] | ^^^^^^^^
162[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
163[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:38:10
164[warn] 38 | return None
165[warn] | ^^^^^^^^^^^
166[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
167[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:58:10
168[warn] 58 | return true
169[warn] | ^^^^^^^^^^^
170[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
171[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:32:8
172[warn] 32 | return r
173[warn] | ^^^^^^^^
174[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
175[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:41:8
176[warn] 41 | return true
177[warn] | ^^^^^^^^^^^
178[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
179[warn] there was 1 deprecation warning; re-run with -deprecation for details
180[warn] 6 warnings found
181[info] done compiling
182[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.6.4/api...
183[warn] Flag -project set repeatedly
184[info] Scaladoc version 3.6.4 -- Copyright 2002-2025, LAMP/EPFL
185[info] Skipping unused scalacOptions: -Wconf, -source
186[info] Main Scala API documentation successful.
187[info] compiling 69 Scala sources and 6 Java sources to /build/repo/jvm/target/scala-3.6.4/test-classes ...
188[error] -- [E008] Not Found Error: /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala:67:36
189[error] 67 | (m.simplePolymorphicMethod _).expects("foo").returning(44)
190[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191[error] | value expects is not a member of String => Nothing.
192[error] | An extension method was tried, but could not be fully constructed:
193[error] |
194[error] | this.toMockFunction1[T1, R]((arg1: String) =>
195[error] | m.simplePolymorphicMethod[Nothing](arg1))
196[error] -- [E050] Type Error: /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala:416:7
197[error] 416 | (provider.find[User](_: Int)(_: ClassTag[User])) expects (13, *) returning (Failure[User](new Exception()))
198[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
199[error] |method find in trait DataProviderComponent does not take more parameters
200[error] |
201[error] | longer explanation available when compiling with `-explain`
202[error] -- [E008] Not Found Error: /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala:55:14
203[error] 55 | mockFun expects "bottom-level"
204[error] | ^^^^^^^^^^^^^^^
205[error] | value expects is not a member of Unit
206[error] three errors found
207[error] (scalamockJVM / Test / compileIncremental) Compilation failed
208[info] Wrote /build/repo/jvm/target/scala-3.6.4/scalamock_3-6.1.0.0.pom
209[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.6.4/api...
210[warn] Flag -project set repeatedly
211[info] Scaladoc version 3.6.4 -- Copyright 2002-2025, LAMP/EPFL
212[info] Skipping unused scalacOptions: -Wconf, -source
213[info] Main Scala API documentation successful.
214[info] :: delivering :: org.scalamock#scalamock_3;6.1.0.0 :: 6.1.0.0 :: release :: Fri Apr 04 19:25:26 CEST 2025
215[info] delivering ivy file to /build/repo/jvm/target/scala-3.6.4/ivy-6.1.0.0.xml
216[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0.0/poms/scalamock_3.pom
217[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0.0/jars/scalamock_3.jar
218[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0.0/srcs/scalamock_3-sources.jar
219[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0.0/docs/scalamock_3-javadoc.jar
220[info] published ivy to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0.0/ivys/ivy.xml
221[info] compiling 69 Scala sources and 6 Java sources to /build/repo/jvm/target/scala-3.6.4/test-classes ...
222[error] -- [E008] Not Found Error: /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala:67:36
223[error] 67 | (m.simplePolymorphicMethod _).expects("foo").returning(44)
224[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
225[error] | value expects is not a member of String => Nothing.
226[error] | An extension method was tried, but could not be fully constructed:
227[error] |
228[error] | this.toMockFunction1[T1, R]((arg1: String) =>
229[error] | m.simplePolymorphicMethod[Nothing](arg1))
230[error] -- [E050] Type Error: /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala:416:7
231[error] 416 | (provider.find[User](_: Int)(_: ClassTag[User])) expects (13, *) returning (Failure[User](new Exception()))
232[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
233[error] |method find in trait DataProviderComponent does not take more parameters
234[error] |
235[error] | longer explanation available when compiling with `-explain`
236[error] -- [E008] Not Found Error: /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala:55:14
237[error] 55 | mockFun expects "bottom-level"
238[error] | ^^^^^^^^^^^^^^^
239[error] | value expects is not a member of Unit
240[error] three errors found
241[error] (scalamockJVM / Test / compileIncremental) Compilation failed
242[info] compiling 69 Scala sources and 6 Java sources to /build/repo/jvm/target/scala-3.6.4/test-classes ...
243[error] -- [E008] Not Found Error: /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala:67:36
244[error] 67 | (m.simplePolymorphicMethod _).expects("foo").returning(44)
245[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
246[error] | value expects is not a member of String => Nothing.
247[error] | An extension method was tried, but could not be fully constructed:
248[error] |
249[error] | this.toMockFunction1[T1, R]((arg1: String) =>
250[error] | m.simplePolymorphicMethod[Nothing](arg1))
251[error] -- [E050] Type Error: /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala:416:7
252[error] 416 | (provider.find[User](_: Int)(_: ClassTag[User])) expects (13, *) returning (Failure[User](new Exception()))
253[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
254[error] |method find in trait DataProviderComponent does not take more parameters
255[error] |
256[error] | longer explanation available when compiling with `-explain`
257[error] -- [E008] Not Found Error: /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala:55:14
258[error] 55 | mockFun expects "bottom-level"
259[error] | ^^^^^^^^^^^^^^^
260[error] | value expects is not a member of Unit
261[error] three errors found
262[error] (scalamockJVM / Test / compileIncremental) Compilation failed
263
264************************
265Build summary:
266[{
267 "module": "scalamock",
268 "compile": {"status": "ok", "tookMs": 16512, "warnings": 5, "errors": 0, "sourceVersion": "3.6-migration"},
269 "doc": {"status": "ok", "tookMs": 175, "files": 0, "totalSizeKb": 0},
270 "test-compile": {"status": "failed", "failureContext": {"type": "buildError", "reasons": ["Compilation failed"]}, "tookMs": 8984, "warnings": 0, "errors": 3, "sourceVersion": "3.6-migration"},
271 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
272 "publish": {"status": "ok", "tookMs": 399},
273 "metadata": {
274 "crossScalaVersions": ["2.12.20", "2.13.14", "3.4.2"]
275}
276}]
277************************
278[error] Scala3CommunityBuild$ProjectBuildFailureException: 1 module(s) finished with failures: scalamock
279[error] (Global / runBuild) Scala3CommunityBuild$ProjectBuildFailureException: 1 module(s) finished with failures: scalamock
280[error] Total time: 41 s, completed Apr 4, 2025, 7:25:36 PM
281Build failed, not retrying.