Build Logs

rssh/dotty-cps-async • scheduled_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY

Errors

1650

Warnings

1814

Total Lines

5258

1##################################
2Clonning https://github.com/rssh/dotty-cps-async.git into repo using revision 0.9.22
3##################################
4Note: switching to 'f4cc60958966f6345625974ec3de26f0290ab784'.
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.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
23Scala binary version found: 3.7
24Implicitly using source version 3.7-migration
25Scala binary version found: 3.7
26Implicitly using source version 3.7-migration
27Would try to apply common scalacOption (best-effort, sbt/mill only):
28Append: ,-source:3.7-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.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
32Execute tests: false
33sbt project found:
34No prepare script found for project rssh/dotty-cps-async
35##################################
36Scala version: 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
37Targets: com.github.rssh%dotty-cps-async com.github.rssh%dotty-cps-async-compiler-plugin com.github.rssh%dotty-cps-async-compiler-plugin-lts com.github.rssh%dotty-cps-async-logic com.github.rssh%dotty-cps-async-logic-lts com.github.rssh%dotty-cps-async-loom com.github.rssh%dotty-cps-async-loom-lts com.github.rssh%dotty-cps-async-lts
38Project projectConfig: { "projects": { "exclude": [], "overrides": {} }, "java": { "version": "21" }, "sbt": { "commands": [ "mapScalacOptions \"\" \"-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid\" " ], "options": [] }, "mill": { "options": [] }, "tests": "compile-only", "migrationVersions": [], "sourcePatches": [] }
39##################################
40Using extra scalacOptions: ,-source:3.7-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 = '21'
44[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_21/rt.jar'
45# Executing command line:
46java
47-Dfile.encoding=UTF-8
48-Dcommunitybuild.scala=3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
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_21
55-jar
56/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
57"setCrossScalaVersions 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY"
58"++3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY -v"
59"mapScalacOptions ",-source:3.7-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"mapScalacOptions "" "-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid" "
62moduleMappings
63"runBuild 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY """{
64 "projects": {
65 "exclude": [],
66 "overrides": {}
67 },
68 "java": {
69 "version": "21"
70 },
71 "sbt": {
72 "commands": [
73 "mapScalacOptions \"\" \"-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid\" "
74 ],
75 "options": []
76 },
77 "mill": {
78 "options": []
79 },
80 "tests": "compile-only",
81 "migrationVersions": [],
82 "sourcePatches": []
83}""" com.github.rssh%dotty-cps-async com.github.rssh%dotty-cps-async-compiler-plugin com.github.rssh%dotty-cps-async-compiler-plugin-lts com.github.rssh%dotty-cps-async-logic com.github.rssh%dotty-cps-async-logic-lts com.github.rssh%dotty-cps-async-loom com.github.rssh%dotty-cps-async-loom-lts com.github.rssh%dotty-cps-async-lts"
84
85[info] [launcher] getting org.scala-sbt sbt 1.10.0 (this may take some time)...
86[info] [launcher] getting Scala 2.12.19 (for sbt)...
87[info] welcome to sbt 1.10.0 (Eclipse Adoptium Java 21)
88[info] loading settings for project repo-build from plugins.sbt ...
89[info] loading project definition from /build/repo/project
90[info] compiling 2 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
91[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.19. Compiling...
92[info] Compilation completed in 8.598s.
93[info] done compiling
94/build/repo/publish.sbt:26: warning: constructor URL in class URL is deprecated
95ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
96 ^
97[info] loading settings for project root from build.sbt,publish.sbt ...
98[info] resolving key references (11791 settings) ...
99[info] set current project to root (in build file:/build/repo/)
100Execute setCrossScalaVersions: 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
101OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPlugin/crossScalaVersions
102OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPlugin/crossScalaVersions
103OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPluginTestsNative/crossScalaVersions
104OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPluginTestsNative/crossScalaVersions
105OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPluginTestsJS/crossScalaVersions
106OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPluginTestsJS/crossScalaVersions
107OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in logicJVM/crossScalaVersions
108OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in logicJVM/crossScalaVersions
109OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsLoomTest/crossScalaVersions
110OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsLoomTest/crossScalaVersions
111OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in logicNative/crossScalaVersions
112OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in logicNative/crossScalaVersions
113OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsNative/crossScalaVersions
114OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsNative/crossScalaVersions
115OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsJS/crossScalaVersions
116OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsJS/crossScalaVersions
117OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsJVM/crossScalaVersions
118OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsJVM/crossScalaVersions
119OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsLoomAddOn/crossScalaVersions
120OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsLoomAddOn/crossScalaVersions
121OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in logicJS/crossScalaVersions
122OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPluginTestsJVM/crossScalaVersions
123OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in logicJS/crossScalaVersions
124OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPluginTestsJVM/crossScalaVersions
125[info] set current project to root (in build file:/build/repo/)
126[info] Setting Scala version to 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY on 12 projects.
127[info] Switching Scala version on:
128[info] logicNative (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
129[info] cpsNative (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
130[info] cpsJS (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
131[info] cpsLoomTest (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
132[info] cpsLoomAddOn (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
133[info] logicJVM (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
134[info] compilerPluginTestsNative (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
135[info] compilerPluginTestsJVM (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
136[info] logicJS (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
137[info] compilerPlugin (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
138[info] cpsJVM (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
139[info] compilerPluginTestsJS (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
140[info] Excluding projects:
141[info] * root (2.12.19)
142[info] Reapplying settings...
143[info] set current project to root (in build file:/build/repo/)
144Execute mapScalacOptions: ,-source:3.7-migration,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
145[info] Reapplying settings...
146[info] set current project to root (in build file:/build/repo/)
147[info] Defining Global / credentials, credentials
148[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 52 others.
149[info] Run `last` for details.
150[info] Reapplying settings...
151[info] set current project to root (in build file:/build/repo/)
152Execute mapScalacOptions: -Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid
153[info] Reapplying settings...
154[info] set current project to root (in build file:/build/repo/)
155[success] Total time: 0 s, completed Jan 18, 2025, 1:06:45 AM
156Build config: {
157 "projects": {
158 "exclude": [],
159 "overrides": {}
160 },
161 "java": {
162 "version": "21"
163 },
164 "sbt": {
165 "commands": [
166 "mapScalacOptions \"\" \"-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid\" "
167 ],
168 "options": []
169 },
170 "mill": {
171 "options": []
172 },
173 "tests": "compile-only",
174 "migrationVersions": [],
175 "sourcePatches": []
176}
177Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
178Starting build...
179Module mapping missing:
180 id: com.github.rssh%dotty-cps-async-compiler-plugin-lts
181 testedIds: List(com.github.rssh%dotty-cps-async-compiler-plugin-lts, com.github.rssh%dotty-cps-async-compiler-plugin-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-compiler-plugin-lts_3, com.github.rssh%dotty-cps-async-compiler-plugin-ltsDotty)
182 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
183 scalaBinaryVersionSuffix: _3
184 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
185 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
186 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
187
188Module mapping missing:
189 id: com.github.rssh%dotty-cps-async-logic-lts
190 testedIds: List(com.github.rssh%dotty-cps-async-logic-lts, com.github.rssh%dotty-cps-async-logic-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-logic-lts_3, com.github.rssh%dotty-cps-async-logic-ltsDotty)
191 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
192 scalaBinaryVersionSuffix: _3
193 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
194 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
195 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
196
197Module mapping missing:
198 id: com.github.rssh%dotty-cps-async-loom-lts
199 testedIds: List(com.github.rssh%dotty-cps-async-loom-lts, com.github.rssh%dotty-cps-async-loom-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-loom-lts_3, com.github.rssh%dotty-cps-async-loom-ltsDotty)
200 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
201 scalaBinaryVersionSuffix: _3
202 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
203 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
204 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
205
206Module mapping missing:
207 id: com.github.rssh%dotty-cps-async-lts
208 testedIds: List(com.github.rssh%dotty-cps-async-lts, com.github.rssh%dotty-cps-async-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-lts_3, com.github.rssh%dotty-cps-async-ltsDotty)
209 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
210 scalaBinaryVersionSuffix: _3
211 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
212 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
213 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%root_2.12, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
214
215Failed to resolve mappings for 4:8 targets: com.github.rssh%dotty-cps-async-compiler-plugin-lts, com.github.rssh%dotty-cps-async-logic-lts, com.github.rssh%dotty-cps-async-loom-lts, com.github.rssh%dotty-cps-async-lts
216Projects: Set(cpsJS, cpsLoomAddOn, logicJVM, compilerPlugin, cpsJVM)
217Starting build for ProjectRef(file:/build/repo/,cpsJVM) (dotty-cps-async)...
218OpenCB::Exclude Scala3 specific scalacOption `-source:3.7-migration` in Scala 2.12.19 module Global
219OpenCB::Filter out '-Ydebug-trace', matches setting pattern '^-?-Ydebug-trace'
220OpenCB::Filter out '-Ydebug-names', matches setting pattern '^-?-Ydebug-names'
221OpenCB::Filter out '-Xprint-types', matches setting pattern '^-?-Xprint-types'
222OpenCB::Filter out '-Ydebug', matches setting pattern '^-?-Ydebug'
223OpenCB::Filter out '-uniqid', matches setting pattern '^-?-uniqid'
224OpenCB::Filter out '-Yprint-syms', matches setting pattern '^-?-Yprint-syms'
225OpenCB::Would not apply setting `-source:3.7-migration`: Project has predefined source version: Some(-source:3.7-migration)
226Compile scalacOptions: List(-unchecked, -Xcheck-macros, -Ycheck:macro, -Wsafe-init, -source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
227[info] compiling 106 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/classes ...
228[warn] there were 19 deprecation warnings; re-run with -deprecation for details
229[warn] one warning found
230[info] done compiling
231[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
232[warn] Flag -classpath set repeatedly
233[warn] one warning found
234[info] Main Scala API documentation successful.
235[info] compiling 187 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
236[warn] -- [E174] Syntax Warning: /build/repo/jvm/src/test/scala/cps/TestImplicitAwait.scala:19:4
237[warn] 19 | x => await[Future, T, G](x)
238[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
239[warn] |An inline given alias with a function value as right-hand side can significantly increase
240[warn] |generated code size. You should either drop the `inline` or rewrite the given with an
241[warn] |explicit `apply` method.
242[warn] |
243[warn] | longer explanation available when compiling with `-explain`
244[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftFunction.scala:36:36
245[warn] 36 | val c = async[ComputationBound]{
246[warn] | ^
247[warn] |Missing symbol position (defaulting to position 0): method andThen_async
248[warn] |This is a compiler bug. Please report it.
249[warn] 37 | def add1(x:Int):Int = x+1
250[warn] 38 | // less ()
251[warn] 39 | add1.andThen(x => x + await(T1.cbi(2))).andThen(x=>x+await(T1.cbi(1)))(3)
252[warn] 40 | }
253[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
254[error] 28 | Seq(1,2,3).map{ x =>
255[error] | ^
256[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
257[error] 29 | await(T1.cbi(3)) + x
258[error] 30 | }
259can't translate tree: {
260 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
261 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
262}
263et=scala.collection.immutable.Seq[scala.Int]
264[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
265[error] 37 | seq.map{ x =>
266[error] | ^
267[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
268[error] 38 | await(T1.cbi(3)) + x
269[error] 39 | }
270can't translate tree: {
271 var s: scala.Int = 0
272 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
273
274 (s: scala.Int)
275}
276et=scala.Int
277[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
278[error] 46 | Seq(1,2,3).foreach{ x =>
279[error] | ^
280[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
281[error] 47 | s += await(T1.cbi(3)) + x
282[error] 48 | }
283[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
284[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
285[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
286[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
287[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
288[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
289[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
290[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
291[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
292[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
293[error] | ^^^^^^^^^^^^^^^^^
294[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
295[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
296[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
297[error] | ^^^^^^^^^^^^^^^^^
298[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
299[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
300[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
301[error] | ^^^^^^^^^^^^
302[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
303can't translate tree: {
304 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
305 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
306}
307et=scala.Int
308[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
309[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
310[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
311[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
312can't translate tree: {
313 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
314 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
315}
316et=scala.Int
317[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
318[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
319[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
320[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
321can't translate tree: {
322 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
323 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
324}
325et=scala.collection.immutable.Seq[java.lang.String]
326[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
327[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
328[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
329[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
330[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
331[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
332[error] | ^
333[error] | Not found: s
334[error] |
335[error] | longer explanation available when compiling with `-explain`
336[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
337[error] 26 | assert( s.filter(_.length == 2).length == 1 )
338[error] | ^
339[error] | Not found: s
340[error] |
341[error] | longer explanation available when compiling with `-explain`
342[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
343[error] 27 | assert( s.filter(_.length == 4).length == 1 )
344[error] | ^
345[error] | Not found: s
346[error] |
347[error] | longer explanation available when compiling with `-explain`
348can't translate tree: {
349 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
350 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
351}
352et=scala.Int
353[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
354[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
355[error] | ^^^^^^^^^^^^^^
356[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
357can't translate tree: {
358 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
359 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
360}
361et=scala.Int
362[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
363[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
364[error] | ^^^^^^^^^^^^^^
365[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
366can't translate tree: {
367 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
368 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
369}
370et=scala.Int
371[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
372[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
373[error] | ^^^^^^^^^^^^^^^^^
374[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
375[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:15:36
376[warn] 15 | val c = async[ComputationBound]{
377[warn] | ^
378[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
379[warn] | This is a compiler bug. Please report it.
380[warn] 16 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){
381[warn] 17 | case Success(x) => x + await(T1.cbi(3))
382[warn] 18 | case Failure(ex) => 0
383[warn] 19 | }
384[warn] 20 | await(q)
385[warn] 21 | }
386[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:28:59
387[warn] 28 | val c: ComputationBound[Int] = async[ComputationBound]{
388[warn] | ^
389[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
390[warn] | This is a compiler bug. Please report it.
391[warn] 29 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){ v =>
392[warn] 30 | v match
393[warn] 31 | case Success(x) => x + await(T1.cbi(3))
394[warn] 32 | case Failure(ex) => 0
395[warn] 33 | }
396[warn] 34 | await(q)
397[warn] 35 | }
398[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:78:36
399[warn] 78 | val c = async[ComputationBound]{
400[warn] | ^
401[warn] |Missing symbol position (defaulting to position 0): method withActionAsync
402[warn] |This is a compiler bug. Please report it.
403[warn] 79 | var x = 0
404[warn] 80 | val fa = T1.cbs("fa")
405[warn] 81 | val q = summon[CpsTryMonad[ComputationBound]].withAction(fa)( {x = await(T1.cbi(1))} )
406[warn] 82 | await(q)
407[warn] 83 | x
408[warn] 84 | }
409[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:28:36
410[warn] 28 | val c = async[ComputationBound]{
411[warn] | ^
412[warn] | Missing symbol position (defaulting to position 0): method map_async
413[warn] | This is a compiler bug. Please report it.
414[warn] 29 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
415[warn] 30 | } yield (await(T1.cbi(x)))
416[warn] 31 | }
417[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:39:36
418[warn] 39 | val c = async[ComputationBound]{
419[warn] | ^
420[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
421[warn] |This is a compiler bug. Please report it.
422[warn] 40 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
423[warn] 41 | y <- 20 to 30 if (y%2) == await(T1.cbi(1))
424[warn] 42 | } yield x+y
425[warn] 43 | }
426[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:51:36
427[warn] 51 | val c = async[ComputationBound]{
428[warn] | ^
429[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
430[warn] |This is a compiler bug. Please report it.
431[warn] 52 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
432[warn] 53 | .flatMap( x =>
433[warn] 54 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
434[warn] 55 | .map(y => x+y)
435[warn] 56 | )
436[warn] 57 | }
437[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:67:36
438[warn] 67 | val c = async[ComputationBound]{
439[warn] | ^
440[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
441[warn] |This is a compiler bug. Please report it.
442[warn] 68 | (1 to 10).withFilter( x => x == await(T1.cbi(1)) )
443[warn] 69 | .flatMap( x =>
444[warn] 70 | (1 to 10).withFilter( y => y == await(T1.cbi(1)) )
445[warn] 71 | .map(_ => x)
446[warn] 72 | )
447[warn] 73 | }
448[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:84:36
449[warn] 84 | val c = async[ComputationBound]{
450[warn] | ^
451[warn] | Missing symbol position (defaulting to position 0): method map_async
452[warn] | This is a compiler bug. Please report it.
453[warn] 85 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
454[warn] 86 | .flatMap( x =>
455[warn] 87 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
456[warn] 88 | .map(y => x+ await(T1.cbi(y)))
457[warn] 89 | )
458[warn] 90 | }
459[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:45:28
460[warn] 45 | val f = async[Future] {
461[warn] | ^
462[warn] | Missing symbol position (defaulting to position 0): method mapAsync
463[warn] | This is a compiler bug. Please report it.
464[warn] 46 | val mappedIterator = iterator.map(x => await(Future successful x.toString))
465[warn] 47 | var i = 1
466[warn] 48 | while{
467[warn] 49 | await(mappedIterator.next) match
468[warn] 50 | case Some(x) =>
469[warn] 51 | assert(i.toString == x)
470[warn] 52 | i = i + 1
471[warn] 53 | true
472[warn] 54 | case None =>
473[warn] 55 | assert(i == 11)
474[warn] 56 | false
475[warn] 57 | } do ()
476[warn] 58 | }
477[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:84:28
478[warn] 84 | val f = async[Future] {
479[warn] | ^
480[warn] | Missing symbol position (defaulting to position 0): method filterAsync
481[warn] | This is a compiler bug. Please report it.
482[warn] 85 | val filtered = iterator.filter(_ % 2 == await(Future successful 0) )
483[warn] 86 | var i = 0
484[warn] 87 | while{
485[warn] 88 | val optValue = await(filtered.next)
486[warn] 89 | optValue.foreach{ x =>
487[warn] 90 | assert(x % 2 == 0)
488[warn] 91 | i = i + 1
489[warn] 92 | }
490[warn] 93 | optValue.isDefined
491[warn] 94 | } do ()
492[warn] 95 | assert(i == 5)
493[warn] 96 | }
494[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:125:28
495[warn] 125 | val f = async[Future] {
496[warn] | ^
497[warn] | Missing symbol position (defaulting to position 0): method findAsync
498[warn] | This is a compiler bug. Please report it.
499[warn] 126 | val x = await(iterator.find(_ > await(Future successful 8)))
500[warn] 127 | assert(x == Some(9))
501[warn] 128 | }
502[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:149:27
503[warn] 149 | val f = async[Future]{
504[warn] | ^
505[warn] | Missing symbol position (defaulting to position 0): method foldAsync
506[warn] | This is a compiler bug. Please report it.
507[warn] 150 | val fr = iterator.fold(0)(
508[warn] 151 | (x:Int,y:Int) => x + y + await(Future.successful(1))
509[warn] 152 | )
510[warn] 153 | val r = await(fr)
511[warn] 154 | assert(r == 9)
512[warn] 155 | }
513[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:186:28
514[warn] 186 | val ft = async[Future]{
515[warn] | ^
516[warn] | Missing symbol position (defaulting to position 0): method scanAsync
517[warn] | This is a compiler bug. Please report it.
518[warn] 187 | val fr = iterator.scan(0)( (x,y) => x + await(Future.successful(y)) )
519[warn] 188 | val r0 = await(fr.next)
520[warn] 189 | assert(r0.get == 0)
521[warn] 190 | val r1 = await(fr.next)
522[warn] 191 | assert(r1.get == 1)
523[warn] 192 | val r2 = await(fr.next)
524[warn] 193 | assert(r2.get == 3)
525[warn] 194 | val r3 = await(fr.next)
526[warn] 195 | assert(r3.get == 6)
527[warn] 196 | val r4 = await(fr.next)
528[warn] 197 | assert(r4.get == 10)
529[warn] 198 | val r5 = await(fr.next)
530[warn] 199 | assert(r5.get == 15)
531[warn] 200 | val r6 = await(fr.next)
532[warn] 201 | assert(r6 == None)
533[warn] 202 | }
534[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:290:29
535[warn] 290 | val ft = async[Future] {
536[warn] | ^
537[warn] |Missing symbol position (defaulting to position 0): method mapTryAsync
538[warn] |This is a compiler bug. Please report it.
539[warn] 291 | val mappedIterator = myIterator.mapTry{
540[warn] 292 | case Success(x) => x + await(delayedOne)
541[warn] 293 | case Failure(ex) => -1
542[warn] 294 | }
543[warn] 295 | val v1 = await(mappedIterator.next)
544[warn] 296 | assert(v1.get == 2)
545[warn] 297 | val v2 = await(mappedIterator.next)
546[warn] 298 | assert(v2.get == -1)
547[warn] 299 | }
548[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncListtOps.scala:49:27
549[warn] 49 | val ft = async[Future] {
550[warn] | ^
551[warn] | Missing symbol position (defaulting to position 0): method mapAsync
552[warn] | This is a compiler bug. Please report it.
553[warn] 50 | val mapped = stream.map{ x =>
554[warn] 51 | x + await(asyncSuccess(1))
555[warn] 52 | }
556[warn] 53 | val l = await(mapped.take[List](5))
557[warn] 54 | assert(l == List(2,3,4,5,6))
558[warn] 55 | }
559[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtAsyncListFilter.scala:51:26
560[warn] 51 | val r = async[Future] {
561[warn] | ^
562[warn] | Missing symbol position (defaulting to position 0): method filterAsync
563[warn] | This is a compiler bug. Please report it.
564[warn] 52 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
565[warn] 53 | for(i <- 1 to N)
566[warn] 54 | out.emit(i)
567[warn] 55 | }
568[warn] 56 | val filtered = stream.filter(x => await(asyncTest(_ % 2 == 0, x)))
569[warn] 57 | val firstTen = await(filtered.takeList(10))
570[warn] 58 | assert(firstTen(0)==2)
571[warn] 59 | assert(firstTen(1)==4)
572[warn] 60 | assert(firstTen(2)==6)
573[warn] 61 | assert(firstTen(3)==8)
574[warn] 62 | }
575[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:33:30
576[warn] 33 | val check = async[Future] {
577[warn] | ^
578[warn] | Missing symbol position (defaulting to position 0): method foldAsync
579[warn] | This is a compiler bug. Please report it.
580[warn] 34 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
581[warn] 35 | for(i <- 1 to 10)
582[warn] 36 | out.emit(i)
583[warn] 37 | }
584[warn] 38 | val sumFuture = stream.fold(0)((s,e)=>s+await(Future successful e))
585[warn] 39 | val sum = await(sumFuture)
586[warn] 40 | val sum1 = (1 to 10).sum
587[warn] 41 | assert(sum == sum1)
588[warn] 42 | }
589[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:65:30
590[warn] 65 | val check = async[Future] {
591[warn] | ^
592[warn] | Missing symbol position (defaulting to position 0): method scanAsync
593[warn] | This is a compiler bug. Please report it.
594[warn] 66 | val scan = stream.scan(0)((s,e) => s + await(Future successful e))
595[warn] 67 | val scanList = await(scan.takeListAll())
596[warn] 68 | val sampleScan = (1 to 10).scanLeft(0)((s,e)=>s+e)
597[warn] 69 | assert(scanList == sampleScan)
598[warn] 70 | }
599can't translate tree: {
600 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
601 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
602 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
603 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
604 case scala.util.control.NonFatal(ex) =>
605 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
606 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
607 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
608 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
609 case scala.util.control.NonFatal(ex) =>
610 ()
611 }
612 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
613 }
614 }))
615 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
616}
617et=scala.Unit
618[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
619[error] 24 | for(test <- tests) {
620[error] | ^
621[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
622[error] 25 | println(s"running ${test}")
623[error] 26 | try {
624[error] 27 | await(test.run(testContext))
625[error] 28 | }catch{
626[error] 29 | case NonFatal(ex) =>
627[error] 30 | if !(test eq ExtremeSize) then
628[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
629[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
630[error] 33 | //val traceContext = testContext.copy(trace=true)
631[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
632[error] 35 | try {
633[error] 36 | await(test.run(traceContext))
634[error] 37 | } catch {
635[error] 38 | case NonFatal(ex) =>
636[error] 39 | }
637[error] 40 | else
638[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
639[error] 42 | }
640[error] 43 | }
641[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
642[warn] 38 | if (false) then
643[warn] | ^
644[warn] | A pure expression does nothing in statement position
645[warn] 39 | println(s"ctx=${summon[Context]}")
646[warn] |
647[warn] | longer explanation available when compiling with `-explain`
648[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
649[warn] 56 | if (false) then
650[warn] | ^
651[warn] | A pure expression does nothing in statement position
652[warn] 57 | println(s"ctx=${summon[Context]}")
653[warn] |
654[warn] | longer explanation available when compiling with `-explain`
655can't translate tree: {
656 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
657 val config: TestReturningExamples.this.Config = api.config
658 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
659 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
660 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
661 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
662 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
663 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
664
665 (newBucket: TestReturningExamples.this.Bucket)
666 }
667 }))
668 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
669 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
670}
671et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
672[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
673[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
674[error] | ^
675[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
676[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
677[error] 84 | if (!itemInfo.available) then
678[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
679[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
680[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
681[error] 88 | else
682[error] 89 | val newBucket = bucket.withItem(itemInfo)
683[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
684[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
685[error] 92 | newBucket
686[error] 93 | }
687can't translate tree: {
688 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
689 val config: TestReturningExamples.this.Config = api.config
690 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
691 var remainingBudget: scala.Long = budget
692 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
693 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
694 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
695 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
696 bucket.addItem(itemInfo)
697 remainingBudget = remainingBudget.-(itemInfo.cost)
698 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
699 }
700 }))
701 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
702 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
703}
704et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
705[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
706[error] 158 | for(item <- items) {
707[error] | ^
708[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
709[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
710[error] 160 | if (!itemInfo.available) then
711[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
712[error] 162 | else if (itemInfo.cost > remainingBudget) then
713[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
714[error] 164 | else
715[error] 165 | bucket.addItem(itemInfo)
716[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
717[error] 167 | if (remainingBudget < config.minItemCost) then
718[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
719[error] 169 | }
720[warn] 22 warnings found
721[error] 20 errors found
722[error] (cpsJVM / Test / compileIncremental) Compilation failed
723[info] Wrote /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async_3-0.9.22.pom
724[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
725[warn] Flag -classpath set repeatedly
726[warn] one warning found
727[info] Main Scala API documentation successful.
728[info] :: delivering :: com.github.rssh#dotty-cps-async_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:07:42 CET 2025
729[info] delivering ivy file to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
730[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/poms/dotty-cps-async_3.pom
731[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/jars/dotty-cps-async_3.jar
732[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/srcs/dotty-cps-async_3-sources.jar
733[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/docs/dotty-cps-async_3-javadoc.jar
734[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/ivys/ivy.xml
735[info] compiling 187 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
736[warn] -- [E174] Syntax Warning: /build/repo/jvm/src/test/scala/cps/TestImplicitAwait.scala:19:4
737[warn] 19 | x => await[Future, T, G](x)
738[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
739[warn] |An inline given alias with a function value as right-hand side can significantly increase
740[warn] |generated code size. You should either drop the `inline` or rewrite the given with an
741[warn] |explicit `apply` method.
742[warn] |
743[warn] | longer explanation available when compiling with `-explain`
744[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftFunction.scala:36:36
745[warn] 36 | val c = async[ComputationBound]{
746[warn] | ^
747[warn] |Missing symbol position (defaulting to position 0): method andThen_async
748[warn] |This is a compiler bug. Please report it.
749[warn] 37 | def add1(x:Int):Int = x+1
750[warn] 38 | // less ()
751[warn] 39 | add1.andThen(x => x + await(T1.cbi(2))).andThen(x=>x+await(T1.cbi(1)))(3)
752[warn] 40 | }
753[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
754[error] 28 | Seq(1,2,3).map{ x =>
755[error] | ^
756[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
757[error] 29 | await(T1.cbi(3)) + x
758[error] 30 | }
759can't translate tree: {
760 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
761 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
762}
763et=scala.collection.immutable.Seq[scala.Int]
764[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
765[error] 37 | seq.map{ x =>
766[error] | ^
767[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
768[error] 38 | await(T1.cbi(3)) + x
769[error] 39 | }
770can't translate tree: {
771 var s: scala.Int = 0
772 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
773
774 (s: scala.Int)
775}
776et=scala.Int
777[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
778[error] 46 | Seq(1,2,3).foreach{ x =>
779[error] | ^
780[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
781[error] 47 | s += await(T1.cbi(3)) + x
782[error] 48 | }
783[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
784[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
785[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
786[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
787[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
788[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
789[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
790[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
791[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
792[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
793[error] | ^^^^^^^^^^^^^^^^^
794[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
795[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
796[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
797[error] | ^^^^^^^^^^^^^^^^^
798[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
799[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
800[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
801[error] | ^^^^^^^^^^^^
802[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
803can't translate tree: {
804 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
805 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
806}
807et=scala.Int
808[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
809[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
810[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
811[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
812can't translate tree: {
813 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
814 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
815}
816et=scala.Int
817[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
818[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
819[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
820[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
821can't translate tree: {
822 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
823 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
824}
825et=scala.collection.immutable.Seq[java.lang.String]
826[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
827[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
828[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
829[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
830[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
831[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
832[error] | ^
833[error] | Not found: s
834[error] |
835[error] | longer explanation available when compiling with `-explain`
836[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
837[error] 26 | assert( s.filter(_.length == 2).length == 1 )
838[error] | ^
839[error] | Not found: s
840[error] |
841[error] | longer explanation available when compiling with `-explain`
842[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
843[error] 27 | assert( s.filter(_.length == 4).length == 1 )
844[error] | ^
845[error] | Not found: s
846[error] |
847[error] | longer explanation available when compiling with `-explain`
848can't translate tree: {
849 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
850 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
851}
852et=scala.Int
853[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
854[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
855[error] | ^^^^^^^^^^^^^^
856[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
857can't translate tree: {
858 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
859 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
860}
861et=scala.Int
862[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
863[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
864[error] | ^^^^^^^^^^^^^^
865[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
866can't translate tree: {
867 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
868 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
869}
870et=scala.Int
871[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
872[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
873[error] | ^^^^^^^^^^^^^^^^^
874[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
875[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:15:36
876[warn] 15 | val c = async[ComputationBound]{
877[warn] | ^
878[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
879[warn] | This is a compiler bug. Please report it.
880[warn] 16 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){
881[warn] 17 | case Success(x) => x + await(T1.cbi(3))
882[warn] 18 | case Failure(ex) => 0
883[warn] 19 | }
884[warn] 20 | await(q)
885[warn] 21 | }
886[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:28:59
887[warn] 28 | val c: ComputationBound[Int] = async[ComputationBound]{
888[warn] | ^
889[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
890[warn] | This is a compiler bug. Please report it.
891[warn] 29 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){ v =>
892[warn] 30 | v match
893[warn] 31 | case Success(x) => x + await(T1.cbi(3))
894[warn] 32 | case Failure(ex) => 0
895[warn] 33 | }
896[warn] 34 | await(q)
897[warn] 35 | }
898[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:78:36
899[warn] 78 | val c = async[ComputationBound]{
900[warn] | ^
901[warn] |Missing symbol position (defaulting to position 0): method withActionAsync
902[warn] |This is a compiler bug. Please report it.
903[warn] 79 | var x = 0
904[warn] 80 | val fa = T1.cbs("fa")
905[warn] 81 | val q = summon[CpsTryMonad[ComputationBound]].withAction(fa)( {x = await(T1.cbi(1))} )
906[warn] 82 | await(q)
907[warn] 83 | x
908[warn] 84 | }
909[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:28:36
910[warn] 28 | val c = async[ComputationBound]{
911[warn] | ^
912[warn] | Missing symbol position (defaulting to position 0): method map_async
913[warn] | This is a compiler bug. Please report it.
914[warn] 29 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
915[warn] 30 | } yield (await(T1.cbi(x)))
916[warn] 31 | }
917[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:39:36
918[warn] 39 | val c = async[ComputationBound]{
919[warn] | ^
920[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
921[warn] |This is a compiler bug. Please report it.
922[warn] 40 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
923[warn] 41 | y <- 20 to 30 if (y%2) == await(T1.cbi(1))
924[warn] 42 | } yield x+y
925[warn] 43 | }
926[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:51:36
927[warn] 51 | val c = async[ComputationBound]{
928[warn] | ^
929[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
930[warn] |This is a compiler bug. Please report it.
931[warn] 52 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
932[warn] 53 | .flatMap( x =>
933[warn] 54 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
934[warn] 55 | .map(y => x+y)
935[warn] 56 | )
936[warn] 57 | }
937[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:67:36
938[warn] 67 | val c = async[ComputationBound]{
939[warn] | ^
940[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
941[warn] |This is a compiler bug. Please report it.
942[warn] 68 | (1 to 10).withFilter( x => x == await(T1.cbi(1)) )
943[warn] 69 | .flatMap( x =>
944[warn] 70 | (1 to 10).withFilter( y => y == await(T1.cbi(1)) )
945[warn] 71 | .map(_ => x)
946[warn] 72 | )
947[warn] 73 | }
948[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:84:36
949[warn] 84 | val c = async[ComputationBound]{
950[warn] | ^
951[warn] | Missing symbol position (defaulting to position 0): method map_async
952[warn] | This is a compiler bug. Please report it.
953[warn] 85 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
954[warn] 86 | .flatMap( x =>
955[warn] 87 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
956[warn] 88 | .map(y => x+ await(T1.cbi(y)))
957[warn] 89 | )
958[warn] 90 | }
959[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:45:28
960[warn] 45 | val f = async[Future] {
961[warn] | ^
962[warn] | Missing symbol position (defaulting to position 0): method mapAsync
963[warn] | This is a compiler bug. Please report it.
964[warn] 46 | val mappedIterator = iterator.map(x => await(Future successful x.toString))
965[warn] 47 | var i = 1
966[warn] 48 | while{
967[warn] 49 | await(mappedIterator.next) match
968[warn] 50 | case Some(x) =>
969[warn] 51 | assert(i.toString == x)
970[warn] 52 | i = i + 1
971[warn] 53 | true
972[warn] 54 | case None =>
973[warn] 55 | assert(i == 11)
974[warn] 56 | false
975[warn] 57 | } do ()
976[warn] 58 | }
977[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:84:28
978[warn] 84 | val f = async[Future] {
979[warn] | ^
980[warn] | Missing symbol position (defaulting to position 0): method filterAsync
981[warn] | This is a compiler bug. Please report it.
982[warn] 85 | val filtered = iterator.filter(_ % 2 == await(Future successful 0) )
983[warn] 86 | var i = 0
984[warn] 87 | while{
985[warn] 88 | val optValue = await(filtered.next)
986[warn] 89 | optValue.foreach{ x =>
987[warn] 90 | assert(x % 2 == 0)
988[warn] 91 | i = i + 1
989[warn] 92 | }
990[warn] 93 | optValue.isDefined
991[warn] 94 | } do ()
992[warn] 95 | assert(i == 5)
993[warn] 96 | }
994[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:125:28
995[warn] 125 | val f = async[Future] {
996[warn] | ^
997[warn] | Missing symbol position (defaulting to position 0): method findAsync
998[warn] | This is a compiler bug. Please report it.
999[warn] 126 | val x = await(iterator.find(_ > await(Future successful 8)))
1000[warn] 127 | assert(x == Some(9))
1001[warn] 128 | }
1002[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:149:27
1003[warn] 149 | val f = async[Future]{
1004[warn] | ^
1005[warn] | Missing symbol position (defaulting to position 0): method foldAsync
1006[warn] | This is a compiler bug. Please report it.
1007[warn] 150 | val fr = iterator.fold(0)(
1008[warn] 151 | (x:Int,y:Int) => x + y + await(Future.successful(1))
1009[warn] 152 | )
1010[warn] 153 | val r = await(fr)
1011[warn] 154 | assert(r == 9)
1012[warn] 155 | }
1013[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:186:28
1014[warn] 186 | val ft = async[Future]{
1015[warn] | ^
1016[warn] | Missing symbol position (defaulting to position 0): method scanAsync
1017[warn] | This is a compiler bug. Please report it.
1018[warn] 187 | val fr = iterator.scan(0)( (x,y) => x + await(Future.successful(y)) )
1019[warn] 188 | val r0 = await(fr.next)
1020[warn] 189 | assert(r0.get == 0)
1021[warn] 190 | val r1 = await(fr.next)
1022[warn] 191 | assert(r1.get == 1)
1023[warn] 192 | val r2 = await(fr.next)
1024[warn] 193 | assert(r2.get == 3)
1025[warn] 194 | val r3 = await(fr.next)
1026[warn] 195 | assert(r3.get == 6)
1027[warn] 196 | val r4 = await(fr.next)
1028[warn] 197 | assert(r4.get == 10)
1029[warn] 198 | val r5 = await(fr.next)
1030[warn] 199 | assert(r5.get == 15)
1031[warn] 200 | val r6 = await(fr.next)
1032[warn] 201 | assert(r6 == None)
1033[warn] 202 | }
1034[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:290:29
1035[warn] 290 | val ft = async[Future] {
1036[warn] | ^
1037[warn] |Missing symbol position (defaulting to position 0): method mapTryAsync
1038[warn] |This is a compiler bug. Please report it.
1039[warn] 291 | val mappedIterator = myIterator.mapTry{
1040[warn] 292 | case Success(x) => x + await(delayedOne)
1041[warn] 293 | case Failure(ex) => -1
1042[warn] 294 | }
1043[warn] 295 | val v1 = await(mappedIterator.next)
1044[warn] 296 | assert(v1.get == 2)
1045[warn] 297 | val v2 = await(mappedIterator.next)
1046[warn] 298 | assert(v2.get == -1)
1047[warn] 299 | }
1048[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncListtOps.scala:49:27
1049[warn] 49 | val ft = async[Future] {
1050[warn] | ^
1051[warn] | Missing symbol position (defaulting to position 0): method mapAsync
1052[warn] | This is a compiler bug. Please report it.
1053[warn] 50 | val mapped = stream.map{ x =>
1054[warn] 51 | x + await(asyncSuccess(1))
1055[warn] 52 | }
1056[warn] 53 | val l = await(mapped.take[List](5))
1057[warn] 54 | assert(l == List(2,3,4,5,6))
1058[warn] 55 | }
1059[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtAsyncListFilter.scala:51:26
1060[warn] 51 | val r = async[Future] {
1061[warn] | ^
1062[warn] | Missing symbol position (defaulting to position 0): method filterAsync
1063[warn] | This is a compiler bug. Please report it.
1064[warn] 52 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
1065[warn] 53 | for(i <- 1 to N)
1066[warn] 54 | out.emit(i)
1067[warn] 55 | }
1068[warn] 56 | val filtered = stream.filter(x => await(asyncTest(_ % 2 == 0, x)))
1069[warn] 57 | val firstTen = await(filtered.takeList(10))
1070[warn] 58 | assert(firstTen(0)==2)
1071[warn] 59 | assert(firstTen(1)==4)
1072[warn] 60 | assert(firstTen(2)==6)
1073[warn] 61 | assert(firstTen(3)==8)
1074[warn] 62 | }
1075[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:33:30
1076[warn] 33 | val check = async[Future] {
1077[warn] | ^
1078[warn] | Missing symbol position (defaulting to position 0): method foldAsync
1079[warn] | This is a compiler bug. Please report it.
1080[warn] 34 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
1081[warn] 35 | for(i <- 1 to 10)
1082[warn] 36 | out.emit(i)
1083[warn] 37 | }
1084[warn] 38 | val sumFuture = stream.fold(0)((s,e)=>s+await(Future successful e))
1085[warn] 39 | val sum = await(sumFuture)
1086[warn] 40 | val sum1 = (1 to 10).sum
1087[warn] 41 | assert(sum == sum1)
1088[warn] 42 | }
1089[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:65:30
1090[warn] 65 | val check = async[Future] {
1091[warn] | ^
1092[warn] | Missing symbol position (defaulting to position 0): method scanAsync
1093[warn] | This is a compiler bug. Please report it.
1094[warn] 66 | val scan = stream.scan(0)((s,e) => s + await(Future successful e))
1095[warn] 67 | val scanList = await(scan.takeListAll())
1096[warn] 68 | val sampleScan = (1 to 10).scanLeft(0)((s,e)=>s+e)
1097[warn] 69 | assert(scanList == sampleScan)
1098[warn] 70 | }
1099can't translate tree: {
1100 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
1101 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
1102 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
1103 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
1104 case scala.util.control.NonFatal(ex) =>
1105 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
1106 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
1107 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
1108 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
1109 case scala.util.control.NonFatal(ex) =>
1110 ()
1111 }
1112 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
1113 }
1114 }))
1115 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
1116}
1117et=scala.Unit
1118[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
1119[error] 24 | for(test <- tests) {
1120[error] | ^
1121[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
1122[error] 25 | println(s"running ${test}")
1123[error] 26 | try {
1124[error] 27 | await(test.run(testContext))
1125[error] 28 | }catch{
1126[error] 29 | case NonFatal(ex) =>
1127[error] 30 | if !(test eq ExtremeSize) then
1128[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
1129[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
1130[error] 33 | //val traceContext = testContext.copy(trace=true)
1131[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
1132[error] 35 | try {
1133[error] 36 | await(test.run(traceContext))
1134[error] 37 | } catch {
1135[error] 38 | case NonFatal(ex) =>
1136[error] 39 | }
1137[error] 40 | else
1138[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
1139[error] 42 | }
1140[error] 43 | }
1141[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
1142[warn] 38 | if (false) then
1143[warn] | ^
1144[warn] | A pure expression does nothing in statement position
1145[warn] 39 | println(s"ctx=${summon[Context]}")
1146[warn] |
1147[warn] | longer explanation available when compiling with `-explain`
1148[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
1149[warn] 56 | if (false) then
1150[warn] | ^
1151[warn] | A pure expression does nothing in statement position
1152[warn] 57 | println(s"ctx=${summon[Context]}")
1153[warn] |
1154[warn] | longer explanation available when compiling with `-explain`
1155can't translate tree: {
1156 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1157 val config: TestReturningExamples.this.Config = api.config
1158 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1159 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
1160 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1161 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
1162 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
1163 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1164
1165 (newBucket: TestReturningExamples.this.Bucket)
1166 }
1167 }))
1168 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1169 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
1170}
1171et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
1172[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
1173[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
1174[error] | ^
1175[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
1176[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
1177[error] 84 | if (!itemInfo.available) then
1178[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
1179[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
1180[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
1181[error] 88 | else
1182[error] 89 | val newBucket = bucket.withItem(itemInfo)
1183[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
1184[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
1185[error] 92 | newBucket
1186[error] 93 | }
1187can't translate tree: {
1188 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1189 val config: TestReturningExamples.this.Config = api.config
1190 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1191 var remainingBudget: scala.Long = budget
1192 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
1193 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
1194 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1195 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
1196 bucket.addItem(itemInfo)
1197 remainingBudget = remainingBudget.-(itemInfo.cost)
1198 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1199 }
1200 }))
1201 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1202 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
1203}
1204et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
1205[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
1206[error] 158 | for(item <- items) {
1207[error] | ^
1208[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
1209[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
1210[error] 160 | if (!itemInfo.available) then
1211[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
1212[error] 162 | else if (itemInfo.cost > remainingBudget) then
1213[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
1214[error] 164 | else
1215[error] 165 | bucket.addItem(itemInfo)
1216[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
1217[error] 167 | if (remainingBudget < config.minItemCost) then
1218[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
1219[error] 169 | }
1220[warn] 22 warnings found
1221[error] 20 errors found
1222[error] (cpsJVM / Test / compileIncremental) Compilation failed
1223[info] compiling 187 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
1224[warn] -- [E174] Syntax Warning: /build/repo/jvm/src/test/scala/cps/TestImplicitAwait.scala:19:4
1225[warn] 19 | x => await[Future, T, G](x)
1226[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1227[warn] |An inline given alias with a function value as right-hand side can significantly increase
1228[warn] |generated code size. You should either drop the `inline` or rewrite the given with an
1229[warn] |explicit `apply` method.
1230[warn] |
1231[warn] | longer explanation available when compiling with `-explain`
1232[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftFunction.scala:36:36
1233[warn] 36 | val c = async[ComputationBound]{
1234[warn] | ^
1235[warn] |Missing symbol position (defaulting to position 0): method andThen_async
1236[warn] |This is a compiler bug. Please report it.
1237[warn] 37 | def add1(x:Int):Int = x+1
1238[warn] 38 | // less ()
1239[warn] 39 | add1.andThen(x => x + await(T1.cbi(2))).andThen(x=>x+await(T1.cbi(1)))(3)
1240[warn] 40 | }
1241[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
1242[error] 28 | Seq(1,2,3).map{ x =>
1243[error] | ^
1244[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1245[error] 29 | await(T1.cbi(3)) + x
1246[error] 30 | }
1247can't translate tree: {
1248 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
1249 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
1250}
1251et=scala.collection.immutable.Seq[scala.Int]
1252[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
1253[error] 37 | seq.map{ x =>
1254[error] | ^
1255[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1256[error] 38 | await(T1.cbi(3)) + x
1257[error] 39 | }
1258can't translate tree: {
1259 var s: scala.Int = 0
1260 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
1261
1262 (s: scala.Int)
1263}
1264et=scala.Int
1265[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
1266[error] 46 | Seq(1,2,3).foreach{ x =>
1267[error] | ^
1268[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1269[error] 47 | s += await(T1.cbi(3)) + x
1270[error] 48 | }
1271[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
1272[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
1273[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1274[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1275[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
1276[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
1277[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1278[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1279[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
1280[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
1281[error] | ^^^^^^^^^^^^^^^^^
1282[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1283[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
1284[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
1285[error] | ^^^^^^^^^^^^^^^^^
1286[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1287[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
1288[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
1289[error] | ^^^^^^^^^^^^
1290[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
1291can't translate tree: {
1292 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
1293 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
1294}
1295et=scala.Int
1296[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
1297[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
1298[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1299[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1300can't translate tree: {
1301 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
1302 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
1303}
1304et=scala.Int
1305[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
1306[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
1307[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1308[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1309can't translate tree: {
1310 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
1311 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
1312}
1313et=scala.collection.immutable.Seq[java.lang.String]
1314[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
1315[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
1316[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1317[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
1318[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
1319[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
1320[error] | ^
1321[error] | Not found: s
1322[error] |
1323[error] | longer explanation available when compiling with `-explain`
1324[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
1325[error] 26 | assert( s.filter(_.length == 2).length == 1 )
1326[error] | ^
1327[error] | Not found: s
1328[error] |
1329[error] | longer explanation available when compiling with `-explain`
1330[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
1331[error] 27 | assert( s.filter(_.length == 4).length == 1 )
1332[error] | ^
1333[error] | Not found: s
1334[error] |
1335[error] | longer explanation available when compiling with `-explain`
1336can't translate tree: {
1337 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
1338 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
1339}
1340et=scala.Int
1341[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
1342[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
1343[error] | ^^^^^^^^^^^^^^
1344[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
1345can't translate tree: {
1346 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
1347 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
1348}
1349et=scala.Int
1350[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
1351[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
1352[error] | ^^^^^^^^^^^^^^
1353[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
1354can't translate tree: {
1355 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
1356 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
1357}
1358et=scala.Int
1359[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
1360[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
1361[error] | ^^^^^^^^^^^^^^^^^
1362[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1363[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:15:36
1364[warn] 15 | val c = async[ComputationBound]{
1365[warn] | ^
1366[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
1367[warn] | This is a compiler bug. Please report it.
1368[warn] 16 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){
1369[warn] 17 | case Success(x) => x + await(T1.cbi(3))
1370[warn] 18 | case Failure(ex) => 0
1371[warn] 19 | }
1372[warn] 20 | await(q)
1373[warn] 21 | }
1374[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:28:59
1375[warn] 28 | val c: ComputationBound[Int] = async[ComputationBound]{
1376[warn] | ^
1377[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
1378[warn] | This is a compiler bug. Please report it.
1379[warn] 29 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){ v =>
1380[warn] 30 | v match
1381[warn] 31 | case Success(x) => x + await(T1.cbi(3))
1382[warn] 32 | case Failure(ex) => 0
1383[warn] 33 | }
1384[warn] 34 | await(q)
1385[warn] 35 | }
1386[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:78:36
1387[warn] 78 | val c = async[ComputationBound]{
1388[warn] | ^
1389[warn] |Missing symbol position (defaulting to position 0): method withActionAsync
1390[warn] |This is a compiler bug. Please report it.
1391[warn] 79 | var x = 0
1392[warn] 80 | val fa = T1.cbs("fa")
1393[warn] 81 | val q = summon[CpsTryMonad[ComputationBound]].withAction(fa)( {x = await(T1.cbi(1))} )
1394[warn] 82 | await(q)
1395[warn] 83 | x
1396[warn] 84 | }
1397[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:28:36
1398[warn] 28 | val c = async[ComputationBound]{
1399[warn] | ^
1400[warn] | Missing symbol position (defaulting to position 0): method map_async
1401[warn] | This is a compiler bug. Please report it.
1402[warn] 29 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
1403[warn] 30 | } yield (await(T1.cbi(x)))
1404[warn] 31 | }
1405[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:39:36
1406[warn] 39 | val c = async[ComputationBound]{
1407[warn] | ^
1408[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
1409[warn] |This is a compiler bug. Please report it.
1410[warn] 40 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
1411[warn] 41 | y <- 20 to 30 if (y%2) == await(T1.cbi(1))
1412[warn] 42 | } yield x+y
1413[warn] 43 | }
1414[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:51:36
1415[warn] 51 | val c = async[ComputationBound]{
1416[warn] | ^
1417[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
1418[warn] |This is a compiler bug. Please report it.
1419[warn] 52 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
1420[warn] 53 | .flatMap( x =>
1421[warn] 54 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
1422[warn] 55 | .map(y => x+y)
1423[warn] 56 | )
1424[warn] 57 | }
1425[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:67:36
1426[warn] 67 | val c = async[ComputationBound]{
1427[warn] | ^
1428[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
1429[warn] |This is a compiler bug. Please report it.
1430[warn] 68 | (1 to 10).withFilter( x => x == await(T1.cbi(1)) )
1431[warn] 69 | .flatMap( x =>
1432[warn] 70 | (1 to 10).withFilter( y => y == await(T1.cbi(1)) )
1433[warn] 71 | .map(_ => x)
1434[warn] 72 | )
1435[warn] 73 | }
1436[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:84:36
1437[warn] 84 | val c = async[ComputationBound]{
1438[warn] | ^
1439[warn] | Missing symbol position (defaulting to position 0): method map_async
1440[warn] | This is a compiler bug. Please report it.
1441[warn] 85 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
1442[warn] 86 | .flatMap( x =>
1443[warn] 87 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
1444[warn] 88 | .map(y => x+ await(T1.cbi(y)))
1445[warn] 89 | )
1446[warn] 90 | }
1447[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:45:28
1448[warn] 45 | val f = async[Future] {
1449[warn] | ^
1450[warn] | Missing symbol position (defaulting to position 0): method mapAsync
1451[warn] | This is a compiler bug. Please report it.
1452[warn] 46 | val mappedIterator = iterator.map(x => await(Future successful x.toString))
1453[warn] 47 | var i = 1
1454[warn] 48 | while{
1455[warn] 49 | await(mappedIterator.next) match
1456[warn] 50 | case Some(x) =>
1457[warn] 51 | assert(i.toString == x)
1458[warn] 52 | i = i + 1
1459[warn] 53 | true
1460[warn] 54 | case None =>
1461[warn] 55 | assert(i == 11)
1462[warn] 56 | false
1463[warn] 57 | } do ()
1464[warn] 58 | }
1465[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:84:28
1466[warn] 84 | val f = async[Future] {
1467[warn] | ^
1468[warn] | Missing symbol position (defaulting to position 0): method filterAsync
1469[warn] | This is a compiler bug. Please report it.
1470[warn] 85 | val filtered = iterator.filter(_ % 2 == await(Future successful 0) )
1471[warn] 86 | var i = 0
1472[warn] 87 | while{
1473[warn] 88 | val optValue = await(filtered.next)
1474[warn] 89 | optValue.foreach{ x =>
1475[warn] 90 | assert(x % 2 == 0)
1476[warn] 91 | i = i + 1
1477[warn] 92 | }
1478[warn] 93 | optValue.isDefined
1479[warn] 94 | } do ()
1480[warn] 95 | assert(i == 5)
1481[warn] 96 | }
1482[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:125:28
1483[warn] 125 | val f = async[Future] {
1484[warn] | ^
1485[warn] | Missing symbol position (defaulting to position 0): method findAsync
1486[warn] | This is a compiler bug. Please report it.
1487[warn] 126 | val x = await(iterator.find(_ > await(Future successful 8)))
1488[warn] 127 | assert(x == Some(9))
1489[warn] 128 | }
1490[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:149:27
1491[warn] 149 | val f = async[Future]{
1492[warn] | ^
1493[warn] | Missing symbol position (defaulting to position 0): method foldAsync
1494[warn] | This is a compiler bug. Please report it.
1495[warn] 150 | val fr = iterator.fold(0)(
1496[warn] 151 | (x:Int,y:Int) => x + y + await(Future.successful(1))
1497[warn] 152 | )
1498[warn] 153 | val r = await(fr)
1499[warn] 154 | assert(r == 9)
1500[warn] 155 | }
1501[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:186:28
1502[warn] 186 | val ft = async[Future]{
1503[warn] | ^
1504[warn] | Missing symbol position (defaulting to position 0): method scanAsync
1505[warn] | This is a compiler bug. Please report it.
1506[warn] 187 | val fr = iterator.scan(0)( (x,y) => x + await(Future.successful(y)) )
1507[warn] 188 | val r0 = await(fr.next)
1508[warn] 189 | assert(r0.get == 0)
1509[warn] 190 | val r1 = await(fr.next)
1510[warn] 191 | assert(r1.get == 1)
1511[warn] 192 | val r2 = await(fr.next)
1512[warn] 193 | assert(r2.get == 3)
1513[warn] 194 | val r3 = await(fr.next)
1514[warn] 195 | assert(r3.get == 6)
1515[warn] 196 | val r4 = await(fr.next)
1516[warn] 197 | assert(r4.get == 10)
1517[warn] 198 | val r5 = await(fr.next)
1518[warn] 199 | assert(r5.get == 15)
1519[warn] 200 | val r6 = await(fr.next)
1520[warn] 201 | assert(r6 == None)
1521[warn] 202 | }
1522[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:290:29
1523[warn] 290 | val ft = async[Future] {
1524[warn] | ^
1525[warn] |Missing symbol position (defaulting to position 0): method mapTryAsync
1526[warn] |This is a compiler bug. Please report it.
1527[warn] 291 | val mappedIterator = myIterator.mapTry{
1528[warn] 292 | case Success(x) => x + await(delayedOne)
1529[warn] 293 | case Failure(ex) => -1
1530[warn] 294 | }
1531[warn] 295 | val v1 = await(mappedIterator.next)
1532[warn] 296 | assert(v1.get == 2)
1533[warn] 297 | val v2 = await(mappedIterator.next)
1534[warn] 298 | assert(v2.get == -1)
1535[warn] 299 | }
1536[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncListtOps.scala:49:27
1537[warn] 49 | val ft = async[Future] {
1538[warn] | ^
1539[warn] | Missing symbol position (defaulting to position 0): method mapAsync
1540[warn] | This is a compiler bug. Please report it.
1541[warn] 50 | val mapped = stream.map{ x =>
1542[warn] 51 | x + await(asyncSuccess(1))
1543[warn] 52 | }
1544[warn] 53 | val l = await(mapped.take[List](5))
1545[warn] 54 | assert(l == List(2,3,4,5,6))
1546[warn] 55 | }
1547[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtAsyncListFilter.scala:51:26
1548[warn] 51 | val r = async[Future] {
1549[warn] | ^
1550[warn] | Missing symbol position (defaulting to position 0): method filterAsync
1551[warn] | This is a compiler bug. Please report it.
1552[warn] 52 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
1553[warn] 53 | for(i <- 1 to N)
1554[warn] 54 | out.emit(i)
1555[warn] 55 | }
1556[warn] 56 | val filtered = stream.filter(x => await(asyncTest(_ % 2 == 0, x)))
1557[warn] 57 | val firstTen = await(filtered.takeList(10))
1558[warn] 58 | assert(firstTen(0)==2)
1559[warn] 59 | assert(firstTen(1)==4)
1560[warn] 60 | assert(firstTen(2)==6)
1561[warn] 61 | assert(firstTen(3)==8)
1562[warn] 62 | }
1563[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:33:30
1564[warn] 33 | val check = async[Future] {
1565[warn] | ^
1566[warn] | Missing symbol position (defaulting to position 0): method foldAsync
1567[warn] | This is a compiler bug. Please report it.
1568[warn] 34 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
1569[warn] 35 | for(i <- 1 to 10)
1570[warn] 36 | out.emit(i)
1571[warn] 37 | }
1572[warn] 38 | val sumFuture = stream.fold(0)((s,e)=>s+await(Future successful e))
1573[warn] 39 | val sum = await(sumFuture)
1574[warn] 40 | val sum1 = (1 to 10).sum
1575[warn] 41 | assert(sum == sum1)
1576[warn] 42 | }
1577[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:65:30
1578[warn] 65 | val check = async[Future] {
1579[warn] | ^
1580[warn] | Missing symbol position (defaulting to position 0): method scanAsync
1581[warn] | This is a compiler bug. Please report it.
1582[warn] 66 | val scan = stream.scan(0)((s,e) => s + await(Future successful e))
1583[warn] 67 | val scanList = await(scan.takeListAll())
1584[warn] 68 | val sampleScan = (1 to 10).scanLeft(0)((s,e)=>s+e)
1585[warn] 69 | assert(scanList == sampleScan)
1586[warn] 70 | }
1587can't translate tree: {
1588 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
1589 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
1590 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
1591 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
1592 case scala.util.control.NonFatal(ex) =>
1593 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
1594 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
1595 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
1596 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
1597 case scala.util.control.NonFatal(ex) =>
1598 ()
1599 }
1600 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
1601 }
1602 }))
1603 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
1604}
1605et=scala.Unit
1606[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
1607[error] 24 | for(test <- tests) {
1608[error] | ^
1609[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
1610[error] 25 | println(s"running ${test}")
1611[error] 26 | try {
1612[error] 27 | await(test.run(testContext))
1613[error] 28 | }catch{
1614[error] 29 | case NonFatal(ex) =>
1615[error] 30 | if !(test eq ExtremeSize) then
1616[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
1617[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
1618[error] 33 | //val traceContext = testContext.copy(trace=true)
1619[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
1620[error] 35 | try {
1621[error] 36 | await(test.run(traceContext))
1622[error] 37 | } catch {
1623[error] 38 | case NonFatal(ex) =>
1624[error] 39 | }
1625[error] 40 | else
1626[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
1627[error] 42 | }
1628[error] 43 | }
1629[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
1630[warn] 38 | if (false) then
1631[warn] | ^
1632[warn] | A pure expression does nothing in statement position
1633[warn] 39 | println(s"ctx=${summon[Context]}")
1634[warn] |
1635[warn] | longer explanation available when compiling with `-explain`
1636[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
1637[warn] 56 | if (false) then
1638[warn] | ^
1639[warn] | A pure expression does nothing in statement position
1640[warn] 57 | println(s"ctx=${summon[Context]}")
1641[warn] |
1642[warn] | longer explanation available when compiling with `-explain`
1643can't translate tree: {
1644 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1645 val config: TestReturningExamples.this.Config = api.config
1646 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1647 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
1648 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1649 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
1650 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
1651 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1652
1653 (newBucket: TestReturningExamples.this.Bucket)
1654 }
1655 }))
1656 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1657 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
1658}
1659et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
1660[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
1661[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
1662[error] | ^
1663[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
1664[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
1665[error] 84 | if (!itemInfo.available) then
1666[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
1667[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
1668[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
1669[error] 88 | else
1670[error] 89 | val newBucket = bucket.withItem(itemInfo)
1671[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
1672[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
1673[error] 92 | newBucket
1674[error] 93 | }
1675can't translate tree: {
1676 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1677 val config: TestReturningExamples.this.Config = api.config
1678 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1679 var remainingBudget: scala.Long = budget
1680 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
1681 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
1682 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1683 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
1684 bucket.addItem(itemInfo)
1685 remainingBudget = remainingBudget.-(itemInfo.cost)
1686 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1687 }
1688 }))
1689 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1690 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
1691}
1692et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
1693[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
1694[error] 158 | for(item <- items) {
1695[error] | ^
1696[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
1697[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
1698[error] 160 | if (!itemInfo.available) then
1699[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
1700[error] 162 | else if (itemInfo.cost > remainingBudget) then
1701[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
1702[error] 164 | else
1703[error] 165 | bucket.addItem(itemInfo)
1704[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
1705[error] 167 | if (remainingBudget < config.minItemCost) then
1706[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
1707[error] 169 | }
1708[warn] 22 warnings found
1709[error] 20 errors found
1710[error] (cpsJVM / Test / compileIncremental) Compilation failed
1711Starting build for ProjectRef(file:/build/repo/,cpsLoomAddOn) (dotty-cps-async-loom)...
1712Compile scalacOptions: List(-Xtarget:21, -explain, -source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
1713[info] compiling 4 Scala sources to /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/classes ...
1714[info] done compiling
1715[info] Main Scala API documentation to /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
1716[info] Skipping unused scalacOptions: -Wconf, -Xunchecked-java-output-version, -source
1717[warn] Flag -classpath set repeatedly
1718[warn] one warning found
1719[info] Main Scala API documentation successful.
1720[info] compiling 4 Scala sources to /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
1721[info] done compiling
1722[info] Wrote /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async-loom_3-0.9.22.pom
1723[info] Main Scala API documentation to /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
1724[info] Skipping unused scalacOptions: -Wconf, -Xunchecked-java-output-version, -source
1725[warn] Flag -classpath set repeatedly
1726[warn] one warning found
1727[info] Main Scala API documentation successful.
1728[info] :: delivering :: com.github.rssh#dotty-cps-async-loom_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:08:02 CET 2025
1729[info] delivering ivy file to /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
1730[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/poms/dotty-cps-async-loom_3.pom
1731[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/jars/dotty-cps-async-loom_3.jar
1732[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/srcs/dotty-cps-async-loom_3-sources.jar
1733[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/docs/dotty-cps-async-loom_3-javadoc.jar
1734[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/ivys/ivy.xml
1735Starting build for ProjectRef(file:/build/repo/,logicJVM) (dotty-cps-async-logic)...
1736Compile scalacOptions: List(-source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
1737[info] compiling 5 Scala sources to /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/classes ...
1738[info] done compiling
1739[info] Main Scala API documentation to /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
1740[info] Skipping unused scalacOptions: -Wconf, -source
1741[warn] Flag -classpath set repeatedly
1742Problem parsing logic/shared/src/main/scala/cps/monads/logic/CpsConcurrentLogicMonad.scala:[0..19..4634], documentation may not be generated.
1743[warn] one warning found
1744[info] Main Scala API documentation successful.
1745[info] compiling 8 Scala sources to /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
1746[info] done compiling
1747[info] Wrote /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async-logic_3-0.9.22.pom
1748[info] Main Scala API documentation to /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
1749[info] Skipping unused scalacOptions: -Wconf, -source
1750[warn] Flag -classpath set repeatedly
1751Problem parsing logic/shared/src/main/scala/cps/monads/logic/CpsConcurrentLogicMonad.scala:[0..19..4634], documentation may not be generated.
1752[warn] one warning found
1753[info] Main Scala API documentation successful.
1754[info] :: delivering :: com.github.rssh#dotty-cps-async-logic_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:08:08 CET 2025
1755[info] delivering ivy file to /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
1756[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/poms/dotty-cps-async-logic_3.pom
1757[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/jars/dotty-cps-async-logic_3.jar
1758[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/srcs/dotty-cps-async-logic_3-sources.jar
1759[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/docs/dotty-cps-async-logic_3-javadoc.jar
1760[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/ivys/ivy.xml
1761Starting build for ProjectRef(file:/build/repo/,cpsJS) (dotty-cps-async)...
1762Compile scalacOptions: List(-scalajs, -source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
1763[info] compiling 106 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/classes ...
1764[warn] -- [E029] Pattern Match Exhaustivity Warning: /build/repo/js/src/main/scala/cps/stream/BaseUnfoldCpsAsyncEmitAbsorber.scala:100:9
1765[warn] 100 | e match
1766[warn] | ^
1767[warn] | match may not be exhaustive.
1768[warn] |
1769[warn] | It would fail on pattern case: _: SupplyEventRecord
1770[warn] |
1771[warn] | longer explanation available when compiling with `-explain`
1772[warn] there were 19 deprecation warnings; re-run with -deprecation for details
1773[warn] two warnings found
1774[info] done compiling
1775[info] Main Scala API documentation to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
1776[warn] Flag -classpath set repeatedly
1777[warn] one warning found
1778[info] Main Scala API documentation successful.
1779[info] compiling 152 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
1780[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
1781[error] 28 | Seq(1,2,3).map{ x =>
1782[error] | ^
1783[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1784[error] 29 | await(T1.cbi(3)) + x
1785[error] 30 | }
1786can't translate tree: {
1787 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
1788 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
1789}
1790et=scala.collection.immutable.Seq[scala.Int]
1791[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
1792[error] 37 | seq.map{ x =>
1793[error] | ^
1794[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1795[error] 38 | await(T1.cbi(3)) + x
1796[error] 39 | }
1797can't translate tree: {
1798 var s: scala.Int = 0
1799 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
1800
1801 (s: scala.Int)
1802}
1803et=scala.Int
1804[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
1805[error] 46 | Seq(1,2,3).foreach{ x =>
1806[error] | ^
1807[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1808[error] 47 | s += await(T1.cbi(3)) + x
1809[error] 48 | }
1810[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
1811[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
1812[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1813[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1814[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
1815[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
1816[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1817[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1818[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
1819[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
1820[error] | ^^^^^^^^^^^^^^^^^
1821[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1822[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
1823[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
1824[error] | ^^^^^^^^^^^^^^^^^
1825[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1826[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
1827[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
1828[error] | ^^^^^^^^^^^^
1829[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
1830can't translate tree: {
1831 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
1832 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
1833}
1834et=scala.Int
1835[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
1836[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
1837[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1838[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1839can't translate tree: {
1840 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
1841 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
1842}
1843et=scala.Int
1844[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
1845[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
1846[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1847[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1848can't translate tree: {
1849 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
1850 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
1851}
1852et=scala.collection.immutable.Seq[java.lang.String]
1853[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
1854[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
1855[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1856[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
1857[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
1858[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
1859[error] | ^
1860[error] | Not found: s
1861[error] |
1862[error] | longer explanation available when compiling with `-explain`
1863[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
1864[error] 26 | assert( s.filter(_.length == 2).length == 1 )
1865[error] | ^
1866[error] | Not found: s
1867[error] |
1868[error] | longer explanation available when compiling with `-explain`
1869[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
1870[error] 27 | assert( s.filter(_.length == 4).length == 1 )
1871[error] | ^
1872[error] | Not found: s
1873[error] |
1874[error] | longer explanation available when compiling with `-explain`
1875can't translate tree: {
1876 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
1877 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
1878}
1879et=scala.Int
1880[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
1881[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
1882[error] | ^^^^^^^^^^^^^^
1883[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
1884can't translate tree: {
1885 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
1886 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
1887}
1888et=scala.Int
1889[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
1890[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
1891[error] | ^^^^^^^^^^^^^^
1892[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
1893can't translate tree: {
1894 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
1895 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
1896}
1897et=scala.Int
1898[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
1899[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
1900[error] | ^^^^^^^^^^^^^^^^^
1901[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
1902can't translate tree: {
1903 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
1904 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
1905 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
1906 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
1907 case scala.util.control.NonFatal(ex) =>
1908 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
1909 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
1910 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
1911 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
1912 case scala.util.control.NonFatal(ex) =>
1913 ()
1914 }
1915 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
1916 }
1917 }))
1918 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
1919}
1920et=scala.Unit
1921[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
1922[error] 24 | for(test <- tests) {
1923[error] | ^
1924[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
1925[error] 25 | println(s"running ${test}")
1926[error] 26 | try {
1927[error] 27 | await(test.run(testContext))
1928[error] 28 | }catch{
1929[error] 29 | case NonFatal(ex) =>
1930[error] 30 | if !(test eq ExtremeSize) then
1931[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
1932[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
1933[error] 33 | //val traceContext = testContext.copy(trace=true)
1934[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
1935[error] 35 | try {
1936[error] 36 | await(test.run(traceContext))
1937[error] 37 | } catch {
1938[error] 38 | case NonFatal(ex) =>
1939[error] 39 | }
1940[error] 40 | else
1941[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
1942[error] 42 | }
1943[error] 43 | }
1944[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
1945[warn] 38 | if (false) then
1946[warn] | ^
1947[warn] | A pure expression does nothing in statement position
1948[warn] 39 | println(s"ctx=${summon[Context]}")
1949[warn] |
1950[warn] | longer explanation available when compiling with `-explain`
1951[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
1952[warn] 56 | if (false) then
1953[warn] | ^
1954[warn] | A pure expression does nothing in statement position
1955[warn] 57 | println(s"ctx=${summon[Context]}")
1956[warn] |
1957[warn] | longer explanation available when compiling with `-explain`
1958can't translate tree: {
1959 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1960 val config: TestReturningExamples.this.Config = api.config
1961 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1962 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
1963 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1964 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
1965 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
1966 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1967
1968 (newBucket: TestReturningExamples.this.Bucket)
1969 }
1970 }))
1971 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
1972 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
1973}
1974et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
1975[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
1976[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
1977[error] | ^
1978[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
1979[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
1980[error] 84 | if (!itemInfo.available) then
1981[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
1982[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
1983[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
1984[error] 88 | else
1985[error] 89 | val newBucket = bucket.withItem(itemInfo)
1986[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
1987[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
1988[error] 92 | newBucket
1989[error] 93 | }
1990can't translate tree: {
1991 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1992 val config: TestReturningExamples.this.Config = api.config
1993 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
1994 var remainingBudget: scala.Long = budget
1995 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
1996 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
1997 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
1998 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
1999 bucket.addItem(itemInfo)
2000 remainingBudget = remainingBudget.-(itemInfo.cost)
2001 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2002 }
2003 }))
2004 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2005 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
2006}
2007et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
2008[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
2009[error] 158 | for(item <- items) {
2010[error] | ^
2011[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
2012[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
2013[error] 160 | if (!itemInfo.available) then
2014[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
2015[error] 162 | else if (itemInfo.cost > remainingBudget) then
2016[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
2017[error] 164 | else
2018[error] 165 | bucket.addItem(itemInfo)
2019[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
2020[error] 167 | if (remainingBudget < config.minItemCost) then
2021[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
2022[error] 169 | }
2023[warn] two warnings found
2024[error] 20 errors found
2025[error] (cpsJS / Test / compileIncremental) Compilation failed
2026[info] Wrote /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async_sjs1_3-0.9.22.pom
2027[info] Main Scala API documentation to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
2028[warn] Flag -classpath set repeatedly
2029[warn] one warning found
2030[info] Main Scala API documentation successful.
2031[info] :: delivering :: com.github.rssh#dotty-cps-async_sjs1_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:08:32 CET 2025
2032[info] delivering ivy file to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
2033[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/poms/dotty-cps-async_sjs1_3.pom
2034[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/jars/dotty-cps-async_sjs1_3.jar
2035[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/srcs/dotty-cps-async_sjs1_3-sources.jar
2036[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/docs/dotty-cps-async_sjs1_3-javadoc.jar
2037[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/ivys/ivy.xml
2038[info] compiling 152 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
2039[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
2040[error] 28 | Seq(1,2,3).map{ x =>
2041[error] | ^
2042[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2043[error] 29 | await(T1.cbi(3)) + x
2044[error] 30 | }
2045can't translate tree: {
2046 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
2047 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
2048}
2049et=scala.collection.immutable.Seq[scala.Int]
2050[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
2051[error] 37 | seq.map{ x =>
2052[error] | ^
2053[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2054[error] 38 | await(T1.cbi(3)) + x
2055[error] 39 | }
2056can't translate tree: {
2057 var s: scala.Int = 0
2058 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
2059
2060 (s: scala.Int)
2061}
2062et=scala.Int
2063[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
2064[error] 46 | Seq(1,2,3).foreach{ x =>
2065[error] | ^
2066[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2067[error] 47 | s += await(T1.cbi(3)) + x
2068[error] 48 | }
2069[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
2070[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
2071[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2072[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2073[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
2074[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
2075[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2076[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2077[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
2078[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
2079[error] | ^^^^^^^^^^^^^^^^^
2080[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2081[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
2082[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
2083[error] | ^^^^^^^^^^^^^^^^^
2084[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2085[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
2086[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
2087[error] | ^^^^^^^^^^^^
2088[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
2089can't translate tree: {
2090 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
2091 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
2092}
2093et=scala.Int
2094[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
2095[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
2096[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2097[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2098can't translate tree: {
2099 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
2100 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
2101}
2102et=scala.Int
2103[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
2104[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
2105[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2106[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2107can't translate tree: {
2108 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2109 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2110}
2111et=scala.collection.immutable.Seq[java.lang.String]
2112[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
2113[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
2114[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2115[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2116[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
2117[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
2118[error] | ^
2119[error] | Not found: s
2120[error] |
2121[error] | longer explanation available when compiling with `-explain`
2122[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
2123[error] 26 | assert( s.filter(_.length == 2).length == 1 )
2124[error] | ^
2125[error] | Not found: s
2126[error] |
2127[error] | longer explanation available when compiling with `-explain`
2128[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
2129[error] 27 | assert( s.filter(_.length == 4).length == 1 )
2130[error] | ^
2131[error] | Not found: s
2132[error] |
2133[error] | longer explanation available when compiling with `-explain`
2134can't translate tree: {
2135 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2136 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2137}
2138et=scala.Int
2139[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
2140[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
2141[error] | ^^^^^^^^^^^^^^
2142[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2143can't translate tree: {
2144 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2145 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2146}
2147et=scala.Int
2148[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
2149[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
2150[error] | ^^^^^^^^^^^^^^
2151[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2152can't translate tree: {
2153 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
2154 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
2155}
2156et=scala.Int
2157[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
2158[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
2159[error] | ^^^^^^^^^^^^^^^^^
2160[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2161can't translate tree: {
2162 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
2163 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
2164 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
2165 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
2166 case scala.util.control.NonFatal(ex) =>
2167 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
2168 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
2169 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
2170 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
2171 case scala.util.control.NonFatal(ex) =>
2172 ()
2173 }
2174 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
2175 }
2176 }))
2177 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
2178}
2179et=scala.Unit
2180[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
2181[error] 24 | for(test <- tests) {
2182[error] | ^
2183[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
2184[error] 25 | println(s"running ${test}")
2185[error] 26 | try {
2186[error] 27 | await(test.run(testContext))
2187[error] 28 | }catch{
2188[error] 29 | case NonFatal(ex) =>
2189[error] 30 | if !(test eq ExtremeSize) then
2190[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
2191[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
2192[error] 33 | //val traceContext = testContext.copy(trace=true)
2193[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
2194[error] 35 | try {
2195[error] 36 | await(test.run(traceContext))
2196[error] 37 | } catch {
2197[error] 38 | case NonFatal(ex) =>
2198[error] 39 | }
2199[error] 40 | else
2200[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
2201[error] 42 | }
2202[error] 43 | }
2203[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
2204[warn] 38 | if (false) then
2205[warn] | ^
2206[warn] | A pure expression does nothing in statement position
2207[warn] 39 | println(s"ctx=${summon[Context]}")
2208[warn] |
2209[warn] | longer explanation available when compiling with `-explain`
2210[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
2211[warn] 56 | if (false) then
2212[warn] | ^
2213[warn] | A pure expression does nothing in statement position
2214[warn] 57 | println(s"ctx=${summon[Context]}")
2215[warn] |
2216[warn] | longer explanation available when compiling with `-explain`
2217can't translate tree: {
2218 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2219 val config: TestReturningExamples.this.Config = api.config
2220 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
2221 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
2222 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2223 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
2224 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
2225 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
2226
2227 (newBucket: TestReturningExamples.this.Bucket)
2228 }
2229 }))
2230 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
2231 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
2232}
2233et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
2234[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
2235[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
2236[error] | ^
2237[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
2238[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
2239[error] 84 | if (!itemInfo.available) then
2240[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
2241[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
2242[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
2243[error] 88 | else
2244[error] 89 | val newBucket = bucket.withItem(itemInfo)
2245[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
2246[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
2247[error] 92 | newBucket
2248[error] 93 | }
2249can't translate tree: {
2250 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2251 val config: TestReturningExamples.this.Config = api.config
2252 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2253 var remainingBudget: scala.Long = budget
2254 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
2255 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
2256 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2257 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
2258 bucket.addItem(itemInfo)
2259 remainingBudget = remainingBudget.-(itemInfo.cost)
2260 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2261 }
2262 }))
2263 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2264 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
2265}
2266et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
2267[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
2268[error] 158 | for(item <- items) {
2269[error] | ^
2270[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
2271[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
2272[error] 160 | if (!itemInfo.available) then
2273[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
2274[error] 162 | else if (itemInfo.cost > remainingBudget) then
2275[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
2276[error] 164 | else
2277[error] 165 | bucket.addItem(itemInfo)
2278[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
2279[error] 167 | if (remainingBudget < config.minItemCost) then
2280[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
2281[error] 169 | }
2282[warn] two warnings found
2283[error] 20 errors found
2284[error] (cpsJS / Test / compileIncremental) Compilation failed
2285[info] compiling 152 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
2286[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
2287[error] 28 | Seq(1,2,3).map{ x =>
2288[error] | ^
2289[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2290[error] 29 | await(T1.cbi(3)) + x
2291[error] 30 | }
2292can't translate tree: {
2293 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
2294 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
2295}
2296et=scala.collection.immutable.Seq[scala.Int]
2297[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
2298[error] 37 | seq.map{ x =>
2299[error] | ^
2300[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2301[error] 38 | await(T1.cbi(3)) + x
2302[error] 39 | }
2303can't translate tree: {
2304 var s: scala.Int = 0
2305 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
2306
2307 (s: scala.Int)
2308}
2309et=scala.Int
2310[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
2311[error] 46 | Seq(1,2,3).foreach{ x =>
2312[error] | ^
2313[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2314[error] 47 | s += await(T1.cbi(3)) + x
2315[error] 48 | }
2316[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
2317[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
2318[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2319[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2320[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
2321[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
2322[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2323[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2324[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
2325[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
2326[error] | ^^^^^^^^^^^^^^^^^
2327[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2328[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
2329[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
2330[error] | ^^^^^^^^^^^^^^^^^
2331[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2332[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
2333[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
2334[error] | ^^^^^^^^^^^^
2335[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
2336can't translate tree: {
2337 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
2338 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
2339}
2340et=scala.Int
2341[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
2342[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
2343[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2344[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2345can't translate tree: {
2346 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
2347 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
2348}
2349et=scala.Int
2350[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
2351[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
2352[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2353[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2354can't translate tree: {
2355 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2356 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2357}
2358et=scala.collection.immutable.Seq[java.lang.String]
2359[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
2360[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
2361[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2362[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2363[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
2364[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
2365[error] | ^
2366[error] | Not found: s
2367[error] |
2368[error] | longer explanation available when compiling with `-explain`
2369[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
2370[error] 26 | assert( s.filter(_.length == 2).length == 1 )
2371[error] | ^
2372[error] | Not found: s
2373[error] |
2374[error] | longer explanation available when compiling with `-explain`
2375[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
2376[error] 27 | assert( s.filter(_.length == 4).length == 1 )
2377[error] | ^
2378[error] | Not found: s
2379[error] |
2380[error] | longer explanation available when compiling with `-explain`
2381can't translate tree: {
2382 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2383 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2384}
2385et=scala.Int
2386[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
2387[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
2388[error] | ^^^^^^^^^^^^^^
2389[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2390can't translate tree: {
2391 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2392 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2393}
2394et=scala.Int
2395[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
2396[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
2397[error] | ^^^^^^^^^^^^^^
2398[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2399can't translate tree: {
2400 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
2401 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
2402}
2403et=scala.Int
2404[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
2405[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
2406[error] | ^^^^^^^^^^^^^^^^^
2407[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2408can't translate tree: {
2409 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
2410 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
2411 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
2412 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
2413 case scala.util.control.NonFatal(ex) =>
2414 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
2415 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
2416 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
2417 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
2418 case scala.util.control.NonFatal(ex) =>
2419 ()
2420 }
2421 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
2422 }
2423 }))
2424 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
2425}
2426et=scala.Unit
2427[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
2428[error] 24 | for(test <- tests) {
2429[error] | ^
2430[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
2431[error] 25 | println(s"running ${test}")
2432[error] 26 | try {
2433[error] 27 | await(test.run(testContext))
2434[error] 28 | }catch{
2435[error] 29 | case NonFatal(ex) =>
2436[error] 30 | if !(test eq ExtremeSize) then
2437[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
2438[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
2439[error] 33 | //val traceContext = testContext.copy(trace=true)
2440[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
2441[error] 35 | try {
2442[error] 36 | await(test.run(traceContext))
2443[error] 37 | } catch {
2444[error] 38 | case NonFatal(ex) =>
2445[error] 39 | }
2446[error] 40 | else
2447[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
2448[error] 42 | }
2449[error] 43 | }
2450[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
2451[warn] 38 | if (false) then
2452[warn] | ^
2453[warn] | A pure expression does nothing in statement position
2454[warn] 39 | println(s"ctx=${summon[Context]}")
2455[warn] |
2456[warn] | longer explanation available when compiling with `-explain`
2457[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
2458[warn] 56 | if (false) then
2459[warn] | ^
2460[warn] | A pure expression does nothing in statement position
2461[warn] 57 | println(s"ctx=${summon[Context]}")
2462[warn] |
2463[warn] | longer explanation available when compiling with `-explain`
2464can't translate tree: {
2465 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2466 val config: TestReturningExamples.this.Config = api.config
2467 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
2468 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
2469 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2470 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
2471 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
2472 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
2473
2474 (newBucket: TestReturningExamples.this.Bucket)
2475 }
2476 }))
2477 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
2478 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
2479}
2480et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
2481[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
2482[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
2483[error] | ^
2484[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
2485[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
2486[error] 84 | if (!itemInfo.available) then
2487[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
2488[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
2489[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
2490[error] 88 | else
2491[error] 89 | val newBucket = bucket.withItem(itemInfo)
2492[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
2493[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
2494[error] 92 | newBucket
2495[error] 93 | }
2496can't translate tree: {
2497 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2498 val config: TestReturningExamples.this.Config = api.config
2499 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2500 var remainingBudget: scala.Long = budget
2501 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
2502 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
2503 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
2504 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
2505 bucket.addItem(itemInfo)
2506 remainingBudget = remainingBudget.-(itemInfo.cost)
2507 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2508 }
2509 }))
2510 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
2511 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
2512}
2513et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
2514[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
2515[error] 158 | for(item <- items) {
2516[error] | ^
2517[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
2518[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
2519[error] 160 | if (!itemInfo.available) then
2520[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
2521[error] 162 | else if (itemInfo.cost > remainingBudget) then
2522[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
2523[error] 164 | else
2524[error] 165 | bucket.addItem(itemInfo)
2525[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
2526[error] 167 | if (remainingBudget < config.minItemCost) then
2527[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
2528[error] 169 | }
2529[warn] two warnings found
2530[error] 20 errors found
2531[error] (cpsJS / Test / compileIncremental) Compilation failed
2532Starting build for ProjectRef(file:/build/repo/,compilerPlugin) (dotty-cps-async-compiler-plugin)...
2533Compile scalacOptions: List(-source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
2534[info] compiling 52 Scala sources to /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/classes ...
2535[warn] there were 3 feature warnings; re-run with -feature for details
2536[warn] there were 4 deprecation warnings; re-run with -deprecation for details
2537[warn] two warnings found
2538[info] done compiling
2539[info] Main Scala API documentation to /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
2540[info] Skipping unused scalacOptions: -Wconf, -source
2541[warn] Flag -classpath set repeatedly
2542[warn] one warning found
2543[info] Main Scala API documentation successful.
2544[info] compiling 27 Scala sources to /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
2545[warn] there were 5 deprecation warnings; re-run with -deprecation for details
2546[warn] one warning found
2547[info] done compiling
2548[info] Wrote /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async-compiler-plugin_3-0.9.22.pom
2549[info] Main Scala API documentation to /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/api...
2550[info] Skipping unused scalacOptions: -Wconf, -source
2551[warn] Flag -classpath set repeatedly
2552[warn] one warning found
2553[info] Main Scala API documentation successful.
2554[info] :: delivering :: com.github.rssh#dotty-cps-async-compiler-plugin_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:08:52 CET 2025
2555[info] delivering ivy file to /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
2556[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/poms/dotty-cps-async-compiler-plugin_3.pom
2557[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/jars/dotty-cps-async-compiler-plugin_3.jar
2558[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/srcs/dotty-cps-async-compiler-plugin_3-sources.jar
2559[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/docs/dotty-cps-async-compiler-plugin_3-javadoc.jar
2560[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/ivys/ivy.xml
2561
2562************************
2563Build summary:
2564[{
2565 "module": "dotty-cps-async",
2566 "compile": {"status": "ok", "tookMs": 22792, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2567 "doc": {"status": "ok", "tookMs": 9676, "files": 631, "totalSizeKb": 30632},
2568 "test-compile": {"status": "failed", "failureContext": {"type": "buildError", "reasons": ["Compilation failed"]}, "tookMs": 14752, "warnings": 22, "errors": 20, "sourceVersion": "3.7-migration"},
2569 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
2570 "publish": {"status": "ok", "tookMs": 5792},
2571 "metadata": {
2572 "crossScalaVersions": ["2.12.19"]
2573}
2574},{
2575 "module": "dotty-cps-async-loom",
2576 "compile": {"status": "ok", "tookMs": 706, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2577 "doc": {"status": "ok", "tookMs": 492, "files": 340, "totalSizeKb": 6329},
2578 "test-compile": {"status": "ok", "tookMs": 1132, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2579 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
2580 "publish": {"status": "ok", "tookMs": 864},
2581 "metadata": {
2582 "crossScalaVersions": ["2.12.19"]
2583}
2584},{
2585 "module": "dotty-cps-async-logic",
2586 "compile": {"status": "ok", "tookMs": 1170, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2587 "doc": {"status": "ok", "tookMs": 1227, "files": 361, "totalSizeKb": 7816},
2588 "test-compile": {"status": "ok", "tookMs": 1366, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2589 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
2590 "publish": {"status": "ok", "tookMs": 1978},
2591 "metadata": {
2592 "crossScalaVersions": ["2.12.19"]
2593}
2594},{
2595 "module": "dotty-cps-async",
2596 "compile": {"status": "ok", "tookMs": 8081, "warnings": 1, "errors": 0, "sourceVersion": "3.7-migration"},
2597 "doc": {"status": "ok", "tookMs": 3589, "files": 639, "totalSizeKb": 31595},
2598 "test-compile": {"status": "failed", "failureContext": {"type": "buildError", "reasons": ["Compilation failed"]}, "tookMs": 4958, "warnings": 2, "errors": 20, "sourceVersion": "3.7-migration"},
2599 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
2600 "publish": {"status": "ok", "tookMs": 4669},
2601 "metadata": {
2602 "crossScalaVersions": ["2.12.19"]
2603}
2604},{
2605 "module": "dotty-cps-async-compiler-plugin",
2606 "compile": {"status": "ok", "tookMs": 3503, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2607 "doc": {"status": "ok", "tookMs": 1843, "files": 479, "totalSizeKb": 13115},
2608 "test-compile": {"status": "ok", "tookMs": 926, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
2609 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
2610 "publish": {"status": "ok", "tookMs": 2073},
2611 "metadata": {
2612 "crossScalaVersions": ["2.12.19"]
2613}
2614}]
2615************************
2616[error] Scala3CommunityBuild$ProjectBuildFailureException: 2 module(s) finished with failures: dotty-cps-async, dotty-cps-async
2617[error] (Global / runBuild) Scala3CommunityBuild$ProjectBuildFailureException: 2 module(s) finished with failures: dotty-cps-async, dotty-cps-async
2618[error] Total time: 127 s (02:07), completed Jan 18, 2025, 1:08:53 AM
2619Retrying build, retry 01/1, force Scala version:true, enable migration:
2620Would force Scala version 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2621[sbt_options] declare -a sbt_options=()
2622[process_args] java_version = '21'
2623[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_21/rt.jar'
2624# Executing command line:
2625java
2626-Dfile.encoding=UTF-8
2627-Dcommunitybuild.scala=3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2628-Dcommunitybuild.project.dependencies.add=
2629-Xmx7G
2630-Xms4G
2631-Xss8M
2632-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
2633-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_21
2634-jar
2635/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
2636"setCrossScalaVersions 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY"
2637"++3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY! -v"
2638"mapScalacOptions ",-source:3.7-migration,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,""
2639"set every credentials := Nil"
2640"mapScalacOptions "" "-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid" "
2641moduleMappings
2642"runBuild 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY """{
2643 "projects": {
2644 "exclude": [],
2645 "overrides": {}
2646 },
2647 "java": {
2648 "version": "21"
2649 },
2650 "sbt": {
2651 "commands": [
2652 "mapScalacOptions \"\" \"-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid\" "
2653 ],
2654 "options": []
2655 },
2656 "mill": {
2657 "options": []
2658 },
2659 "tests": "compile-only",
2660 "migrationVersions": [],
2661 "sourcePatches": []
2662}""" com.github.rssh%dotty-cps-async com.github.rssh%dotty-cps-async-compiler-plugin com.github.rssh%dotty-cps-async-compiler-plugin-lts com.github.rssh%dotty-cps-async-logic com.github.rssh%dotty-cps-async-logic-lts com.github.rssh%dotty-cps-async-loom com.github.rssh%dotty-cps-async-loom-lts com.github.rssh%dotty-cps-async-lts"
2663
2664[info] welcome to sbt 1.10.0 (Eclipse Adoptium Java 21)
2665[info] loading settings for project repo-build from plugins.sbt ...
2666[info] loading project definition from /build/repo/project
2667[info] loading settings for project root from build.sbt,publish.sbt ...
2668[info] resolving key references (11791 settings) ...
2669[info] set current project to root (in build file:/build/repo/)
2670Execute setCrossScalaVersions: 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2671OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPluginTestsJVM/crossScalaVersions
2672OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPluginTestsJVM/crossScalaVersions
2673OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPlugin/crossScalaVersions
2674OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPlugin/crossScalaVersions
2675OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsLoomAddOn/crossScalaVersions
2676OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsLoomAddOn/crossScalaVersions
2677OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in logicJVM/crossScalaVersions
2678OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in logicJVM/crossScalaVersions
2679OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in logicJS/crossScalaVersions
2680OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in logicJS/crossScalaVersions
2681OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsLoomTest/crossScalaVersions
2682OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsLoomTest/crossScalaVersions
2683OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in logicNative/crossScalaVersions
2684OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in logicNative/crossScalaVersions
2685OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsNative/crossScalaVersions
2686OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsNative/crossScalaVersions
2687OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsJVM/crossScalaVersions
2688OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsJVM/crossScalaVersions
2689OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPluginTestsNative/crossScalaVersions
2690OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in cpsJS/crossScalaVersions
2691OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in cpsJS/crossScalaVersions
2692OpenCB::Changing crossVersion 3.5.0 -> 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY in compilerPluginTestsJS/crossScalaVersions
2693OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPluginTestsJS/crossScalaVersions
2694OpenCB::Limitting incorrect crossVersions List(2.12.19) -> List(3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY) in compilerPluginTestsNative/crossScalaVersions
2695[info] set current project to root (in build file:/build/repo/)
2696[info] Forcing Scala version to 3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY on all projects.
2697[info] Switching Scala version on:
2698[info] logicNative (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2699[info] cpsNative (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2700[info] cpsJS (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2701[info] cpsLoomTest (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2702[info] * root (2.12.19)
2703[info] cpsLoomAddOn (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2704[info] logicJVM (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2705[info] compilerPluginTestsNative (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2706[info] compilerPluginTestsJVM (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2707[info] logicJS (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2708[info] compilerPlugin (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2709[info] cpsJVM (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2710[info] compilerPluginTestsJS (3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY)
2711[info] Excluding projects:
2712[info] Reapplying settings...
2713[info] set current project to root (in build file:/build/repo/)
2714Execute mapScalacOptions: ,-source:3.7-migration,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
2715[info] Reapplying settings...
2716[info] set current project to root (in build file:/build/repo/)
2717[info] Defining Global / credentials, credentials
2718[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 52 others.
2719[info] Run `last` for details.
2720[info] Reapplying settings...
2721[info] set current project to root (in build file:/build/repo/)
2722Execute mapScalacOptions: -Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid
2723[info] Reapplying settings...
2724[info] set current project to root (in build file:/build/repo/)
2725[success] Total time: 0 s, completed Jan 18, 2025, 1:09:05 AM
2726Build config: {
2727 "projects": {
2728 "exclude": [],
2729 "overrides": {}
2730 },
2731 "java": {
2732 "version": "21"
2733 },
2734 "sbt": {
2735 "commands": [
2736 "mapScalacOptions \"\" \"-Ydebug,-Ydebug-trace,-Ydebug-names,-Xprint-types,-Yprint-syms,-uniqid\" "
2737 ],
2738 "options": []
2739 },
2740 "mill": {
2741 "options": []
2742 },
2743 "tests": "compile-only",
2744 "migrationVersions": [],
2745 "sourcePatches": []
2746}
2747Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
2748Starting build...
2749Module mapping missing:
2750 id: com.github.rssh%dotty-cps-async-compiler-plugin-lts
2751 testedIds: List(com.github.rssh%dotty-cps-async-compiler-plugin-lts, com.github.rssh%dotty-cps-async-compiler-plugin-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-compiler-plugin-lts_3, com.github.rssh%dotty-cps-async-compiler-plugin-ltsDotty)
2752 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2753 scalaBinaryVersionSuffix: _3
2754 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
2755 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2756 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2757
2758Module mapping missing:
2759 id: com.github.rssh%dotty-cps-async-logic-lts
2760 testedIds: List(com.github.rssh%dotty-cps-async-logic-lts, com.github.rssh%dotty-cps-async-logic-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-logic-lts_3, com.github.rssh%dotty-cps-async-logic-ltsDotty)
2761 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2762 scalaBinaryVersionSuffix: _3
2763 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
2764 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2765 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2766
2767Module mapping missing:
2768 id: com.github.rssh%dotty-cps-async-loom-lts
2769 testedIds: List(com.github.rssh%dotty-cps-async-loom-lts, com.github.rssh%dotty-cps-async-loom-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-loom-lts_3, com.github.rssh%dotty-cps-async-loom-ltsDotty)
2770 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2771 scalaBinaryVersionSuffix: _3
2772 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
2773 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2774 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2775
2776Module mapping missing:
2777 id: com.github.rssh%dotty-cps-async-lts
2778 testedIds: List(com.github.rssh%dotty-cps-async-lts, com.github.rssh%dotty-cps-async-lts_3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY, com.github.rssh%dotty-cps-async-lts_3, com.github.rssh%dotty-cps-async-ltsDotty)
2779 scalaVersionSuffix: _3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY
2780 scalaBinaryVersionSuffix: _3
2781 refsByName: Set(logicNative, cpsNative, cpsJS, cpsLoomTest, root, cpsLoomAddOn, logicJVM, compilerPluginTestsNative, compilerPluginTestsJVM, logicJS, compilerPlugin, cpsJVM, compilerPluginTestsJS)
2782 originalModuleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2783 moduleIds: Set(com.github.rssh%dotty-cps-async_sjs1, com.github.rssh%dotty-cps-async-compiler-plugin, com.github.rssh%dotty-cps-async-logic_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_sjs1, com.github.rssh%dotty-cps-compiler-plugin-tests_native0.5, com.github.rssh%dotty-cps-async-logic, com.github.rssh%dotty-cps-compiler-plugin-tests, com.github.rssh%dotty-cps-async-loom-test, com.github.rssh%dotty-cps-async-loom, com.github.rssh%root, com.github.rssh%dotty-cps-async-logic_native0.5, com.github.rssh%dotty-cps-async_native0.5, com.github.rssh%dotty-cps-async)
2784
2785Failed to resolve mappings for 4:8 targets: com.github.rssh%dotty-cps-async-compiler-plugin-lts, com.github.rssh%dotty-cps-async-logic-lts, com.github.rssh%dotty-cps-async-loom-lts, com.github.rssh%dotty-cps-async-lts
2786Projects: Set(cpsJS, cpsLoomAddOn, logicJVM, compilerPlugin, cpsJVM)
2787Starting build for ProjectRef(file:/build/repo/,cpsJVM) (dotty-cps-async)...
2788OpenCB::Exclude Scala3 specific scalacOption `-source:3.7-migration` in Scala 2.12.19 module Global
2789OpenCB::Filter out '-Ydebug-trace', matches setting pattern '^-?-Ydebug-trace'
2790OpenCB::Filter out '-Ydebug-names', matches setting pattern '^-?-Ydebug-names'
2791OpenCB::Filter out '-Xprint-types', matches setting pattern '^-?-Xprint-types'
2792OpenCB::Filter out '-Ydebug', matches setting pattern '^-?-Ydebug'
2793OpenCB::Filter out '-uniqid', matches setting pattern '^-?-uniqid'
2794OpenCB::Filter out '-Yprint-syms', matches setting pattern '^-?-Yprint-syms'
2795OpenCB::Would not apply setting `-source:3.7-migration`: Project has predefined source version: Some(-source:3.7-migration)
2796Compile scalacOptions: List(-unchecked, -Xcheck-macros, -Ycheck:macro, -Wsafe-init, -source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
2797[info] compiling 187 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
2798[warn] -- [E174] Syntax Warning: /build/repo/jvm/src/test/scala/cps/TestImplicitAwait.scala:19:4
2799[warn] 19 | x => await[Future, T, G](x)
2800[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2801[warn] |An inline given alias with a function value as right-hand side can significantly increase
2802[warn] |generated code size. You should either drop the `inline` or rewrite the given with an
2803[warn] |explicit `apply` method.
2804[warn] |
2805[warn] | longer explanation available when compiling with `-explain`
2806[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftFunction.scala:36:36
2807[warn] 36 | val c = async[ComputationBound]{
2808[warn] | ^
2809[warn] |Missing symbol position (defaulting to position 0): method andThen_async
2810[warn] |This is a compiler bug. Please report it.
2811[warn] 37 | def add1(x:Int):Int = x+1
2812[warn] 38 | // less ()
2813[warn] 39 | add1.andThen(x => x + await(T1.cbi(2))).andThen(x=>x+await(T1.cbi(1)))(3)
2814[warn] 40 | }
2815[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
2816[error] 28 | Seq(1,2,3).map{ x =>
2817[error] | ^
2818[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2819[error] 29 | await(T1.cbi(3)) + x
2820[error] 30 | }
2821can't translate tree: {
2822 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
2823 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
2824}
2825et=scala.collection.immutable.Seq[scala.Int]
2826[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
2827[error] 37 | seq.map{ x =>
2828[error] | ^
2829[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2830[error] 38 | await(T1.cbi(3)) + x
2831[error] 39 | }
2832can't translate tree: {
2833 var s: scala.Int = 0
2834 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
2835
2836 (s: scala.Int)
2837}
2838et=scala.Int
2839[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
2840[error] 46 | Seq(1,2,3).foreach{ x =>
2841[error] | ^
2842[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2843[error] 47 | s += await(T1.cbi(3)) + x
2844[error] 48 | }
2845[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
2846[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
2847[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2848[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2849[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
2850[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
2851[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2852[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2853[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
2854[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
2855[error] | ^^^^^^^^^^^^^^^^^
2856[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2857[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
2858[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
2859[error] | ^^^^^^^^^^^^^^^^^
2860[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2861[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
2862[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
2863[error] | ^^^^^^^^^^^^
2864[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
2865can't translate tree: {
2866 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
2867 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
2868}
2869et=scala.Int
2870[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
2871[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
2872[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2873[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2874can't translate tree: {
2875 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
2876 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
2877}
2878et=scala.Int
2879[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
2880[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
2881[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2882[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2883can't translate tree: {
2884 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2885 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2886}
2887et=scala.collection.immutable.Seq[java.lang.String]
2888[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
2889[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
2890[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2891[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2892[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
2893[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
2894[error] | ^
2895[error] | Not found: s
2896[error] |
2897[error] | longer explanation available when compiling with `-explain`
2898[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
2899[error] 26 | assert( s.filter(_.length == 2).length == 1 )
2900[error] | ^
2901[error] | Not found: s
2902[error] |
2903[error] | longer explanation available when compiling with `-explain`
2904[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
2905[error] 27 | assert( s.filter(_.length == 4).length == 1 )
2906[error] | ^
2907[error] | Not found: s
2908[error] |
2909[error] | longer explanation available when compiling with `-explain`
2910can't translate tree: {
2911 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2912 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2913}
2914et=scala.Int
2915[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
2916[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
2917[error] | ^^^^^^^^^^^^^^
2918[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2919can't translate tree: {
2920 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
2921 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
2922}
2923et=scala.Int
2924[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
2925[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
2926[error] | ^^^^^^^^^^^^^^
2927[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
2928can't translate tree: {
2929 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
2930 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
2931}
2932et=scala.Int
2933[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
2934[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
2935[error] | ^^^^^^^^^^^^^^^^^
2936[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
2937[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:15:36
2938[warn] 15 | val c = async[ComputationBound]{
2939[warn] | ^
2940[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
2941[warn] | This is a compiler bug. Please report it.
2942[warn] 16 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){
2943[warn] 17 | case Success(x) => x + await(T1.cbi(3))
2944[warn] 18 | case Failure(ex) => 0
2945[warn] 19 | }
2946[warn] 20 | await(q)
2947[warn] 21 | }
2948[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:28:59
2949[warn] 28 | val c: ComputationBound[Int] = async[ComputationBound]{
2950[warn] | ^
2951[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
2952[warn] | This is a compiler bug. Please report it.
2953[warn] 29 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){ v =>
2954[warn] 30 | v match
2955[warn] 31 | case Success(x) => x + await(T1.cbi(3))
2956[warn] 32 | case Failure(ex) => 0
2957[warn] 33 | }
2958[warn] 34 | await(q)
2959[warn] 35 | }
2960[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:78:36
2961[warn] 78 | val c = async[ComputationBound]{
2962[warn] | ^
2963[warn] |Missing symbol position (defaulting to position 0): method withActionAsync
2964[warn] |This is a compiler bug. Please report it.
2965[warn] 79 | var x = 0
2966[warn] 80 | val fa = T1.cbs("fa")
2967[warn] 81 | val q = summon[CpsTryMonad[ComputationBound]].withAction(fa)( {x = await(T1.cbi(1))} )
2968[warn] 82 | await(q)
2969[warn] 83 | x
2970[warn] 84 | }
2971[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:28:36
2972[warn] 28 | val c = async[ComputationBound]{
2973[warn] | ^
2974[warn] | Missing symbol position (defaulting to position 0): method map_async
2975[warn] | This is a compiler bug. Please report it.
2976[warn] 29 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
2977[warn] 30 | } yield (await(T1.cbi(x)))
2978[warn] 31 | }
2979[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:39:36
2980[warn] 39 | val c = async[ComputationBound]{
2981[warn] | ^
2982[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
2983[warn] |This is a compiler bug. Please report it.
2984[warn] 40 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
2985[warn] 41 | y <- 20 to 30 if (y%2) == await(T1.cbi(1))
2986[warn] 42 | } yield x+y
2987[warn] 43 | }
2988[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:51:36
2989[warn] 51 | val c = async[ComputationBound]{
2990[warn] | ^
2991[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
2992[warn] |This is a compiler bug. Please report it.
2993[warn] 52 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
2994[warn] 53 | .flatMap( x =>
2995[warn] 54 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
2996[warn] 55 | .map(y => x+y)
2997[warn] 56 | )
2998[warn] 57 | }
2999[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:67:36
3000[warn] 67 | val c = async[ComputationBound]{
3001[warn] | ^
3002[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
3003[warn] |This is a compiler bug. Please report it.
3004[warn] 68 | (1 to 10).withFilter( x => x == await(T1.cbi(1)) )
3005[warn] 69 | .flatMap( x =>
3006[warn] 70 | (1 to 10).withFilter( y => y == await(T1.cbi(1)) )
3007[warn] 71 | .map(_ => x)
3008[warn] 72 | )
3009[warn] 73 | }
3010[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:84:36
3011[warn] 84 | val c = async[ComputationBound]{
3012[warn] | ^
3013[warn] | Missing symbol position (defaulting to position 0): method map_async
3014[warn] | This is a compiler bug. Please report it.
3015[warn] 85 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
3016[warn] 86 | .flatMap( x =>
3017[warn] 87 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
3018[warn] 88 | .map(y => x+ await(T1.cbi(y)))
3019[warn] 89 | )
3020[warn] 90 | }
3021[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:45:28
3022[warn] 45 | val f = async[Future] {
3023[warn] | ^
3024[warn] | Missing symbol position (defaulting to position 0): method mapAsync
3025[warn] | This is a compiler bug. Please report it.
3026[warn] 46 | val mappedIterator = iterator.map(x => await(Future successful x.toString))
3027[warn] 47 | var i = 1
3028[warn] 48 | while{
3029[warn] 49 | await(mappedIterator.next) match
3030[warn] 50 | case Some(x) =>
3031[warn] 51 | assert(i.toString == x)
3032[warn] 52 | i = i + 1
3033[warn] 53 | true
3034[warn] 54 | case None =>
3035[warn] 55 | assert(i == 11)
3036[warn] 56 | false
3037[warn] 57 | } do ()
3038[warn] 58 | }
3039[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:84:28
3040[warn] 84 | val f = async[Future] {
3041[warn] | ^
3042[warn] | Missing symbol position (defaulting to position 0): method filterAsync
3043[warn] | This is a compiler bug. Please report it.
3044[warn] 85 | val filtered = iterator.filter(_ % 2 == await(Future successful 0) )
3045[warn] 86 | var i = 0
3046[warn] 87 | while{
3047[warn] 88 | val optValue = await(filtered.next)
3048[warn] 89 | optValue.foreach{ x =>
3049[warn] 90 | assert(x % 2 == 0)
3050[warn] 91 | i = i + 1
3051[warn] 92 | }
3052[warn] 93 | optValue.isDefined
3053[warn] 94 | } do ()
3054[warn] 95 | assert(i == 5)
3055[warn] 96 | }
3056[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:125:28
3057[warn] 125 | val f = async[Future] {
3058[warn] | ^
3059[warn] | Missing symbol position (defaulting to position 0): method findAsync
3060[warn] | This is a compiler bug. Please report it.
3061[warn] 126 | val x = await(iterator.find(_ > await(Future successful 8)))
3062[warn] 127 | assert(x == Some(9))
3063[warn] 128 | }
3064[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:149:27
3065[warn] 149 | val f = async[Future]{
3066[warn] | ^
3067[warn] | Missing symbol position (defaulting to position 0): method foldAsync
3068[warn] | This is a compiler bug. Please report it.
3069[warn] 150 | val fr = iterator.fold(0)(
3070[warn] 151 | (x:Int,y:Int) => x + y + await(Future.successful(1))
3071[warn] 152 | )
3072[warn] 153 | val r = await(fr)
3073[warn] 154 | assert(r == 9)
3074[warn] 155 | }
3075[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:186:28
3076[warn] 186 | val ft = async[Future]{
3077[warn] | ^
3078[warn] | Missing symbol position (defaulting to position 0): method scanAsync
3079[warn] | This is a compiler bug. Please report it.
3080[warn] 187 | val fr = iterator.scan(0)( (x,y) => x + await(Future.successful(y)) )
3081[warn] 188 | val r0 = await(fr.next)
3082[warn] 189 | assert(r0.get == 0)
3083[warn] 190 | val r1 = await(fr.next)
3084[warn] 191 | assert(r1.get == 1)
3085[warn] 192 | val r2 = await(fr.next)
3086[warn] 193 | assert(r2.get == 3)
3087[warn] 194 | val r3 = await(fr.next)
3088[warn] 195 | assert(r3.get == 6)
3089[warn] 196 | val r4 = await(fr.next)
3090[warn] 197 | assert(r4.get == 10)
3091[warn] 198 | val r5 = await(fr.next)
3092[warn] 199 | assert(r5.get == 15)
3093[warn] 200 | val r6 = await(fr.next)
3094[warn] 201 | assert(r6 == None)
3095[warn] 202 | }
3096[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:290:29
3097[warn] 290 | val ft = async[Future] {
3098[warn] | ^
3099[warn] |Missing symbol position (defaulting to position 0): method mapTryAsync
3100[warn] |This is a compiler bug. Please report it.
3101[warn] 291 | val mappedIterator = myIterator.mapTry{
3102[warn] 292 | case Success(x) => x + await(delayedOne)
3103[warn] 293 | case Failure(ex) => -1
3104[warn] 294 | }
3105[warn] 295 | val v1 = await(mappedIterator.next)
3106[warn] 296 | assert(v1.get == 2)
3107[warn] 297 | val v2 = await(mappedIterator.next)
3108[warn] 298 | assert(v2.get == -1)
3109[warn] 299 | }
3110[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncListtOps.scala:49:27
3111[warn] 49 | val ft = async[Future] {
3112[warn] | ^
3113[warn] | Missing symbol position (defaulting to position 0): method mapAsync
3114[warn] | This is a compiler bug. Please report it.
3115[warn] 50 | val mapped = stream.map{ x =>
3116[warn] 51 | x + await(asyncSuccess(1))
3117[warn] 52 | }
3118[warn] 53 | val l = await(mapped.take[List](5))
3119[warn] 54 | assert(l == List(2,3,4,5,6))
3120[warn] 55 | }
3121[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtAsyncListFilter.scala:51:26
3122[warn] 51 | val r = async[Future] {
3123[warn] | ^
3124[warn] | Missing symbol position (defaulting to position 0): method filterAsync
3125[warn] | This is a compiler bug. Please report it.
3126[warn] 52 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
3127[warn] 53 | for(i <- 1 to N)
3128[warn] 54 | out.emit(i)
3129[warn] 55 | }
3130[warn] 56 | val filtered = stream.filter(x => await(asyncTest(_ % 2 == 0, x)))
3131[warn] 57 | val firstTen = await(filtered.takeList(10))
3132[warn] 58 | assert(firstTen(0)==2)
3133[warn] 59 | assert(firstTen(1)==4)
3134[warn] 60 | assert(firstTen(2)==6)
3135[warn] 61 | assert(firstTen(3)==8)
3136[warn] 62 | }
3137[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:33:30
3138[warn] 33 | val check = async[Future] {
3139[warn] | ^
3140[warn] | Missing symbol position (defaulting to position 0): method foldAsync
3141[warn] | This is a compiler bug. Please report it.
3142[warn] 34 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
3143[warn] 35 | for(i <- 1 to 10)
3144[warn] 36 | out.emit(i)
3145[warn] 37 | }
3146[warn] 38 | val sumFuture = stream.fold(0)((s,e)=>s+await(Future successful e))
3147[warn] 39 | val sum = await(sumFuture)
3148[warn] 40 | val sum1 = (1 to 10).sum
3149[warn] 41 | assert(sum == sum1)
3150[warn] 42 | }
3151[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:65:30
3152[warn] 65 | val check = async[Future] {
3153[warn] | ^
3154[warn] | Missing symbol position (defaulting to position 0): method scanAsync
3155[warn] | This is a compiler bug. Please report it.
3156[warn] 66 | val scan = stream.scan(0)((s,e) => s + await(Future successful e))
3157[warn] 67 | val scanList = await(scan.takeListAll())
3158[warn] 68 | val sampleScan = (1 to 10).scanLeft(0)((s,e)=>s+e)
3159[warn] 69 | assert(scanList == sampleScan)
3160[warn] 70 | }
3161can't translate tree: {
3162 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
3163 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
3164 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
3165 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
3166 case scala.util.control.NonFatal(ex) =>
3167 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
3168 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
3169 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
3170 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
3171 case scala.util.control.NonFatal(ex) =>
3172 ()
3173 }
3174 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
3175 }
3176 }))
3177 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
3178}
3179et=scala.Unit
3180[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
3181[error] 24 | for(test <- tests) {
3182[error] | ^
3183[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
3184[error] 25 | println(s"running ${test}")
3185[error] 26 | try {
3186[error] 27 | await(test.run(testContext))
3187[error] 28 | }catch{
3188[error] 29 | case NonFatal(ex) =>
3189[error] 30 | if !(test eq ExtremeSize) then
3190[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
3191[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
3192[error] 33 | //val traceContext = testContext.copy(trace=true)
3193[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
3194[error] 35 | try {
3195[error] 36 | await(test.run(traceContext))
3196[error] 37 | } catch {
3197[error] 38 | case NonFatal(ex) =>
3198[error] 39 | }
3199[error] 40 | else
3200[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
3201[error] 42 | }
3202[error] 43 | }
3203[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
3204[warn] 38 | if (false) then
3205[warn] | ^
3206[warn] | A pure expression does nothing in statement position
3207[warn] 39 | println(s"ctx=${summon[Context]}")
3208[warn] |
3209[warn] | longer explanation available when compiling with `-explain`
3210[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
3211[warn] 56 | if (false) then
3212[warn] | ^
3213[warn] | A pure expression does nothing in statement position
3214[warn] 57 | println(s"ctx=${summon[Context]}")
3215[warn] |
3216[warn] | longer explanation available when compiling with `-explain`
3217can't translate tree: {
3218 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3219 val config: TestReturningExamples.this.Config = api.config
3220 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
3221 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
3222 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3223 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
3224 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
3225 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
3226
3227 (newBucket: TestReturningExamples.this.Bucket)
3228 }
3229 }))
3230 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
3231 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
3232}
3233et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
3234[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
3235[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
3236[error] | ^
3237[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
3238[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
3239[error] 84 | if (!itemInfo.available) then
3240[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
3241[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
3242[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
3243[error] 88 | else
3244[error] 89 | val newBucket = bucket.withItem(itemInfo)
3245[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
3246[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
3247[error] 92 | newBucket
3248[error] 93 | }
3249can't translate tree: {
3250 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3251 val config: TestReturningExamples.this.Config = api.config
3252 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
3253 var remainingBudget: scala.Long = budget
3254 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
3255 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
3256 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3257 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
3258 bucket.addItem(itemInfo)
3259 remainingBudget = remainingBudget.-(itemInfo.cost)
3260 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
3261 }
3262 }))
3263 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
3264 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
3265}
3266et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
3267[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
3268[error] 158 | for(item <- items) {
3269[error] | ^
3270[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
3271[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
3272[error] 160 | if (!itemInfo.available) then
3273[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
3274[error] 162 | else if (itemInfo.cost > remainingBudget) then
3275[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
3276[error] 164 | else
3277[error] 165 | bucket.addItem(itemInfo)
3278[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
3279[error] 167 | if (remainingBudget < config.minItemCost) then
3280[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
3281[error] 169 | }
3282[warn] 22 warnings found
3283[error] 20 errors found
3284[error] (cpsJVM / Test / compileIncremental) Compilation failed
3285[info] Wrote /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async_3-0.9.22.pom
3286[info] :: delivering :: com.github.rssh#dotty-cps-async_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:09:28 CET 2025
3287[info] delivering ivy file to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
3288[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/poms/dotty-cps-async_3.pom (non-SNAPSHOT)
3289[warn] You need to remove it from the cache manually to take effect.
3290[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/poms/dotty-cps-async_3.pom.sha1 (non-SNAPSHOT)
3291[warn] You need to remove it from the cache manually to take effect.
3292[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/poms/dotty-cps-async_3.pom.md5 (non-SNAPSHOT)
3293[warn] You need to remove it from the cache manually to take effect.
3294[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/poms/dotty-cps-async_3.pom
3295[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/jars/dotty-cps-async_3.jar (non-SNAPSHOT)
3296[warn] You need to remove it from the cache manually to take effect.
3297[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/jars/dotty-cps-async_3.jar.sha1 (non-SNAPSHOT)
3298[warn] You need to remove it from the cache manually to take effect.
3299[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/jars/dotty-cps-async_3.jar.md5 (non-SNAPSHOT)
3300[warn] You need to remove it from the cache manually to take effect.
3301[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/jars/dotty-cps-async_3.jar
3302[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/srcs/dotty-cps-async_3-sources.jar (non-SNAPSHOT)
3303[warn] You need to remove it from the cache manually to take effect.
3304[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/srcs/dotty-cps-async_3-sources.jar.sha1 (non-SNAPSHOT)
3305[warn] You need to remove it from the cache manually to take effect.
3306[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/srcs/dotty-cps-async_3-sources.jar.md5 (non-SNAPSHOT)
3307[warn] You need to remove it from the cache manually to take effect.
3308[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/srcs/dotty-cps-async_3-sources.jar
3309[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/docs/dotty-cps-async_3-javadoc.jar (non-SNAPSHOT)
3310[warn] You need to remove it from the cache manually to take effect.
3311[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/docs/dotty-cps-async_3-javadoc.jar.sha1 (non-SNAPSHOT)
3312[warn] You need to remove it from the cache manually to take effect.
3313[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/docs/dotty-cps-async_3-javadoc.jar.md5 (non-SNAPSHOT)
3314[warn] You need to remove it from the cache manually to take effect.
3315[info] published dotty-cps-async_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/docs/dotty-cps-async_3-javadoc.jar
3316[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/ivys/ivy.xml (non-SNAPSHOT)
3317[warn] You need to remove it from the cache manually to take effect.
3318[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/ivys/ivy.xml.sha1 (non-SNAPSHOT)
3319[warn] You need to remove it from the cache manually to take effect.
3320[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/ivys/ivy.xml.md5 (non-SNAPSHOT)
3321[warn] You need to remove it from the cache manually to take effect.
3322[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async_3/0.9.22/ivys/ivy.xml
3323[info] compiling 187 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
3324[warn] -- [E174] Syntax Warning: /build/repo/jvm/src/test/scala/cps/TestImplicitAwait.scala:19:4
3325[warn] 19 | x => await[Future, T, G](x)
3326[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3327[warn] |An inline given alias with a function value as right-hand side can significantly increase
3328[warn] |generated code size. You should either drop the `inline` or rewrite the given with an
3329[warn] |explicit `apply` method.
3330[warn] |
3331[warn] | longer explanation available when compiling with `-explain`
3332[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftFunction.scala:36:36
3333[warn] 36 | val c = async[ComputationBound]{
3334[warn] | ^
3335[warn] |Missing symbol position (defaulting to position 0): method andThen_async
3336[warn] |This is a compiler bug. Please report it.
3337[warn] 37 | def add1(x:Int):Int = x+1
3338[warn] 38 | // less ()
3339[warn] 39 | add1.andThen(x => x + await(T1.cbi(2))).andThen(x=>x+await(T1.cbi(1)))(3)
3340[warn] 40 | }
3341[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
3342[error] 28 | Seq(1,2,3).map{ x =>
3343[error] | ^
3344[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3345[error] 29 | await(T1.cbi(3)) + x
3346[error] 30 | }
3347can't translate tree: {
3348 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
3349 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
3350}
3351et=scala.collection.immutable.Seq[scala.Int]
3352[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
3353[error] 37 | seq.map{ x =>
3354[error] | ^
3355[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3356[error] 38 | await(T1.cbi(3)) + x
3357[error] 39 | }
3358can't translate tree: {
3359 var s: scala.Int = 0
3360 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
3361
3362 (s: scala.Int)
3363}
3364et=scala.Int
3365[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
3366[error] 46 | Seq(1,2,3).foreach{ x =>
3367[error] | ^
3368[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3369[error] 47 | s += await(T1.cbi(3)) + x
3370[error] 48 | }
3371[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
3372[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
3373[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3374[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3375[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
3376[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
3377[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3378[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3379[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
3380[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
3381[error] | ^^^^^^^^^^^^^^^^^
3382[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3383[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
3384[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
3385[error] | ^^^^^^^^^^^^^^^^^
3386[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3387[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
3388[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
3389[error] | ^^^^^^^^^^^^
3390[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
3391can't translate tree: {
3392 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
3393 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
3394}
3395et=scala.Int
3396[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
3397[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
3398[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3399[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3400can't translate tree: {
3401 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
3402 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
3403}
3404et=scala.Int
3405[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
3406[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
3407[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3408[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3409can't translate tree: {
3410 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
3411 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
3412}
3413et=scala.collection.immutable.Seq[java.lang.String]
3414[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
3415[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
3416[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3417[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
3418[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
3419[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
3420[error] | ^
3421[error] | Not found: s
3422[error] |
3423[error] | longer explanation available when compiling with `-explain`
3424[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
3425[error] 26 | assert( s.filter(_.length == 2).length == 1 )
3426[error] | ^
3427[error] | Not found: s
3428[error] |
3429[error] | longer explanation available when compiling with `-explain`
3430[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
3431[error] 27 | assert( s.filter(_.length == 4).length == 1 )
3432[error] | ^
3433[error] | Not found: s
3434[error] |
3435[error] | longer explanation available when compiling with `-explain`
3436can't translate tree: {
3437 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
3438 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
3439}
3440et=scala.Int
3441[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
3442[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
3443[error] | ^^^^^^^^^^^^^^
3444[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
3445can't translate tree: {
3446 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
3447 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
3448}
3449et=scala.Int
3450[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
3451[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
3452[error] | ^^^^^^^^^^^^^^
3453[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
3454can't translate tree: {
3455 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
3456 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
3457}
3458et=scala.Int
3459[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
3460[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
3461[error] | ^^^^^^^^^^^^^^^^^
3462[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3463[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:15:36
3464[warn] 15 | val c = async[ComputationBound]{
3465[warn] | ^
3466[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
3467[warn] | This is a compiler bug. Please report it.
3468[warn] 16 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){
3469[warn] 17 | case Success(x) => x + await(T1.cbi(3))
3470[warn] 18 | case Failure(ex) => 0
3471[warn] 19 | }
3472[warn] 20 | await(q)
3473[warn] 21 | }
3474[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:28:59
3475[warn] 28 | val c: ComputationBound[Int] = async[ComputationBound]{
3476[warn] | ^
3477[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
3478[warn] | This is a compiler bug. Please report it.
3479[warn] 29 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){ v =>
3480[warn] 30 | v match
3481[warn] 31 | case Success(x) => x + await(T1.cbi(3))
3482[warn] 32 | case Failure(ex) => 0
3483[warn] 33 | }
3484[warn] 34 | await(q)
3485[warn] 35 | }
3486[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:78:36
3487[warn] 78 | val c = async[ComputationBound]{
3488[warn] | ^
3489[warn] |Missing symbol position (defaulting to position 0): method withActionAsync
3490[warn] |This is a compiler bug. Please report it.
3491[warn] 79 | var x = 0
3492[warn] 80 | val fa = T1.cbs("fa")
3493[warn] 81 | val q = summon[CpsTryMonad[ComputationBound]].withAction(fa)( {x = await(T1.cbi(1))} )
3494[warn] 82 | await(q)
3495[warn] 83 | x
3496[warn] 84 | }
3497[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:28:36
3498[warn] 28 | val c = async[ComputationBound]{
3499[warn] | ^
3500[warn] | Missing symbol position (defaulting to position 0): method map_async
3501[warn] | This is a compiler bug. Please report it.
3502[warn] 29 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
3503[warn] 30 | } yield (await(T1.cbi(x)))
3504[warn] 31 | }
3505[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:39:36
3506[warn] 39 | val c = async[ComputationBound]{
3507[warn] | ^
3508[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
3509[warn] |This is a compiler bug. Please report it.
3510[warn] 40 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
3511[warn] 41 | y <- 20 to 30 if (y%2) == await(T1.cbi(1))
3512[warn] 42 | } yield x+y
3513[warn] 43 | }
3514[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:51:36
3515[warn] 51 | val c = async[ComputationBound]{
3516[warn] | ^
3517[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
3518[warn] |This is a compiler bug. Please report it.
3519[warn] 52 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
3520[warn] 53 | .flatMap( x =>
3521[warn] 54 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
3522[warn] 55 | .map(y => x+y)
3523[warn] 56 | )
3524[warn] 57 | }
3525[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:67:36
3526[warn] 67 | val c = async[ComputationBound]{
3527[warn] | ^
3528[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
3529[warn] |This is a compiler bug. Please report it.
3530[warn] 68 | (1 to 10).withFilter( x => x == await(T1.cbi(1)) )
3531[warn] 69 | .flatMap( x =>
3532[warn] 70 | (1 to 10).withFilter( y => y == await(T1.cbi(1)) )
3533[warn] 71 | .map(_ => x)
3534[warn] 72 | )
3535[warn] 73 | }
3536[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:84:36
3537[warn] 84 | val c = async[ComputationBound]{
3538[warn] | ^
3539[warn] | Missing symbol position (defaulting to position 0): method map_async
3540[warn] | This is a compiler bug. Please report it.
3541[warn] 85 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
3542[warn] 86 | .flatMap( x =>
3543[warn] 87 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
3544[warn] 88 | .map(y => x+ await(T1.cbi(y)))
3545[warn] 89 | )
3546[warn] 90 | }
3547[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:45:28
3548[warn] 45 | val f = async[Future] {
3549[warn] | ^
3550[warn] | Missing symbol position (defaulting to position 0): method mapAsync
3551[warn] | This is a compiler bug. Please report it.
3552[warn] 46 | val mappedIterator = iterator.map(x => await(Future successful x.toString))
3553[warn] 47 | var i = 1
3554[warn] 48 | while{
3555[warn] 49 | await(mappedIterator.next) match
3556[warn] 50 | case Some(x) =>
3557[warn] 51 | assert(i.toString == x)
3558[warn] 52 | i = i + 1
3559[warn] 53 | true
3560[warn] 54 | case None =>
3561[warn] 55 | assert(i == 11)
3562[warn] 56 | false
3563[warn] 57 | } do ()
3564[warn] 58 | }
3565[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:84:28
3566[warn] 84 | val f = async[Future] {
3567[warn] | ^
3568[warn] | Missing symbol position (defaulting to position 0): method filterAsync
3569[warn] | This is a compiler bug. Please report it.
3570[warn] 85 | val filtered = iterator.filter(_ % 2 == await(Future successful 0) )
3571[warn] 86 | var i = 0
3572[warn] 87 | while{
3573[warn] 88 | val optValue = await(filtered.next)
3574[warn] 89 | optValue.foreach{ x =>
3575[warn] 90 | assert(x % 2 == 0)
3576[warn] 91 | i = i + 1
3577[warn] 92 | }
3578[warn] 93 | optValue.isDefined
3579[warn] 94 | } do ()
3580[warn] 95 | assert(i == 5)
3581[warn] 96 | }
3582[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:125:28
3583[warn] 125 | val f = async[Future] {
3584[warn] | ^
3585[warn] | Missing symbol position (defaulting to position 0): method findAsync
3586[warn] | This is a compiler bug. Please report it.
3587[warn] 126 | val x = await(iterator.find(_ > await(Future successful 8)))
3588[warn] 127 | assert(x == Some(9))
3589[warn] 128 | }
3590[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:149:27
3591[warn] 149 | val f = async[Future]{
3592[warn] | ^
3593[warn] | Missing symbol position (defaulting to position 0): method foldAsync
3594[warn] | This is a compiler bug. Please report it.
3595[warn] 150 | val fr = iterator.fold(0)(
3596[warn] 151 | (x:Int,y:Int) => x + y + await(Future.successful(1))
3597[warn] 152 | )
3598[warn] 153 | val r = await(fr)
3599[warn] 154 | assert(r == 9)
3600[warn] 155 | }
3601[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:186:28
3602[warn] 186 | val ft = async[Future]{
3603[warn] | ^
3604[warn] | Missing symbol position (defaulting to position 0): method scanAsync
3605[warn] | This is a compiler bug. Please report it.
3606[warn] 187 | val fr = iterator.scan(0)( (x,y) => x + await(Future.successful(y)) )
3607[warn] 188 | val r0 = await(fr.next)
3608[warn] 189 | assert(r0.get == 0)
3609[warn] 190 | val r1 = await(fr.next)
3610[warn] 191 | assert(r1.get == 1)
3611[warn] 192 | val r2 = await(fr.next)
3612[warn] 193 | assert(r2.get == 3)
3613[warn] 194 | val r3 = await(fr.next)
3614[warn] 195 | assert(r3.get == 6)
3615[warn] 196 | val r4 = await(fr.next)
3616[warn] 197 | assert(r4.get == 10)
3617[warn] 198 | val r5 = await(fr.next)
3618[warn] 199 | assert(r5.get == 15)
3619[warn] 200 | val r6 = await(fr.next)
3620[warn] 201 | assert(r6 == None)
3621[warn] 202 | }
3622[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:290:29
3623[warn] 290 | val ft = async[Future] {
3624[warn] | ^
3625[warn] |Missing symbol position (defaulting to position 0): method mapTryAsync
3626[warn] |This is a compiler bug. Please report it.
3627[warn] 291 | val mappedIterator = myIterator.mapTry{
3628[warn] 292 | case Success(x) => x + await(delayedOne)
3629[warn] 293 | case Failure(ex) => -1
3630[warn] 294 | }
3631[warn] 295 | val v1 = await(mappedIterator.next)
3632[warn] 296 | assert(v1.get == 2)
3633[warn] 297 | val v2 = await(mappedIterator.next)
3634[warn] 298 | assert(v2.get == -1)
3635[warn] 299 | }
3636[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncListtOps.scala:49:27
3637[warn] 49 | val ft = async[Future] {
3638[warn] | ^
3639[warn] | Missing symbol position (defaulting to position 0): method mapAsync
3640[warn] | This is a compiler bug. Please report it.
3641[warn] 50 | val mapped = stream.map{ x =>
3642[warn] 51 | x + await(asyncSuccess(1))
3643[warn] 52 | }
3644[warn] 53 | val l = await(mapped.take[List](5))
3645[warn] 54 | assert(l == List(2,3,4,5,6))
3646[warn] 55 | }
3647[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtAsyncListFilter.scala:51:26
3648[warn] 51 | val r = async[Future] {
3649[warn] | ^
3650[warn] | Missing symbol position (defaulting to position 0): method filterAsync
3651[warn] | This is a compiler bug. Please report it.
3652[warn] 52 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
3653[warn] 53 | for(i <- 1 to N)
3654[warn] 54 | out.emit(i)
3655[warn] 55 | }
3656[warn] 56 | val filtered = stream.filter(x => await(asyncTest(_ % 2 == 0, x)))
3657[warn] 57 | val firstTen = await(filtered.takeList(10))
3658[warn] 58 | assert(firstTen(0)==2)
3659[warn] 59 | assert(firstTen(1)==4)
3660[warn] 60 | assert(firstTen(2)==6)
3661[warn] 61 | assert(firstTen(3)==8)
3662[warn] 62 | }
3663[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:33:30
3664[warn] 33 | val check = async[Future] {
3665[warn] | ^
3666[warn] | Missing symbol position (defaulting to position 0): method foldAsync
3667[warn] | This is a compiler bug. Please report it.
3668[warn] 34 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
3669[warn] 35 | for(i <- 1 to 10)
3670[warn] 36 | out.emit(i)
3671[warn] 37 | }
3672[warn] 38 | val sumFuture = stream.fold(0)((s,e)=>s+await(Future successful e))
3673[warn] 39 | val sum = await(sumFuture)
3674[warn] 40 | val sum1 = (1 to 10).sum
3675[warn] 41 | assert(sum == sum1)
3676[warn] 42 | }
3677[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:65:30
3678[warn] 65 | val check = async[Future] {
3679[warn] | ^
3680[warn] | Missing symbol position (defaulting to position 0): method scanAsync
3681[warn] | This is a compiler bug. Please report it.
3682[warn] 66 | val scan = stream.scan(0)((s,e) => s + await(Future successful e))
3683[warn] 67 | val scanList = await(scan.takeListAll())
3684[warn] 68 | val sampleScan = (1 to 10).scanLeft(0)((s,e)=>s+e)
3685[warn] 69 | assert(scanList == sampleScan)
3686[warn] 70 | }
3687can't translate tree: {
3688 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
3689 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
3690 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
3691 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
3692 case scala.util.control.NonFatal(ex) =>
3693 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
3694 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
3695 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
3696 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
3697 case scala.util.control.NonFatal(ex) =>
3698 ()
3699 }
3700 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
3701 }
3702 }))
3703 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
3704}
3705et=scala.Unit
3706[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
3707[error] 24 | for(test <- tests) {
3708[error] | ^
3709[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
3710[error] 25 | println(s"running ${test}")
3711[error] 26 | try {
3712[error] 27 | await(test.run(testContext))
3713[error] 28 | }catch{
3714[error] 29 | case NonFatal(ex) =>
3715[error] 30 | if !(test eq ExtremeSize) then
3716[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
3717[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
3718[error] 33 | //val traceContext = testContext.copy(trace=true)
3719[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
3720[error] 35 | try {
3721[error] 36 | await(test.run(traceContext))
3722[error] 37 | } catch {
3723[error] 38 | case NonFatal(ex) =>
3724[error] 39 | }
3725[error] 40 | else
3726[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
3727[error] 42 | }
3728[error] 43 | }
3729[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
3730[warn] 38 | if (false) then
3731[warn] | ^
3732[warn] | A pure expression does nothing in statement position
3733[warn] 39 | println(s"ctx=${summon[Context]}")
3734[warn] |
3735[warn] | longer explanation available when compiling with `-explain`
3736[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
3737[warn] 56 | if (false) then
3738[warn] | ^
3739[warn] | A pure expression does nothing in statement position
3740[warn] 57 | println(s"ctx=${summon[Context]}")
3741[warn] |
3742[warn] | longer explanation available when compiling with `-explain`
3743can't translate tree: {
3744 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3745 val config: TestReturningExamples.this.Config = api.config
3746 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
3747 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
3748 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3749 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
3750 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
3751 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
3752
3753 (newBucket: TestReturningExamples.this.Bucket)
3754 }
3755 }))
3756 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
3757 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
3758}
3759et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
3760[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
3761[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
3762[error] | ^
3763[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
3764[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
3765[error] 84 | if (!itemInfo.available) then
3766[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
3767[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
3768[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
3769[error] 88 | else
3770[error] 89 | val newBucket = bucket.withItem(itemInfo)
3771[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
3772[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
3773[error] 92 | newBucket
3774[error] 93 | }
3775can't translate tree: {
3776 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3777 val config: TestReturningExamples.this.Config = api.config
3778 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
3779 var remainingBudget: scala.Long = budget
3780 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
3781 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
3782 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
3783 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
3784 bucket.addItem(itemInfo)
3785 remainingBudget = remainingBudget.-(itemInfo.cost)
3786 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
3787 }
3788 }))
3789 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
3790 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
3791}
3792et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
3793[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
3794[error] 158 | for(item <- items) {
3795[error] | ^
3796[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
3797[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
3798[error] 160 | if (!itemInfo.available) then
3799[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
3800[error] 162 | else if (itemInfo.cost > remainingBudget) then
3801[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
3802[error] 164 | else
3803[error] 165 | bucket.addItem(itemInfo)
3804[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
3805[error] 167 | if (remainingBudget < config.minItemCost) then
3806[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
3807[error] 169 | }
3808[warn] 22 warnings found
3809[error] 20 errors found
3810[error] (cpsJVM / Test / compileIncremental) Compilation failed
3811[info] compiling 187 Scala sources to /build/repo/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
3812[warn] -- [E174] Syntax Warning: /build/repo/jvm/src/test/scala/cps/TestImplicitAwait.scala:19:4
3813[warn] 19 | x => await[Future, T, G](x)
3814[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3815[warn] |An inline given alias with a function value as right-hand side can significantly increase
3816[warn] |generated code size. You should either drop the `inline` or rewrite the given with an
3817[warn] |explicit `apply` method.
3818[warn] |
3819[warn] | longer explanation available when compiling with `-explain`
3820[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftFunction.scala:36:36
3821[warn] 36 | val c = async[ComputationBound]{
3822[warn] | ^
3823[warn] |Missing symbol position (defaulting to position 0): method andThen_async
3824[warn] |This is a compiler bug. Please report it.
3825[warn] 37 | def add1(x:Int):Int = x+1
3826[warn] 38 | // less ()
3827[warn] 39 | add1.andThen(x => x + await(T1.cbi(2))).andThen(x=>x+await(T1.cbi(1)))(3)
3828[warn] 40 | }
3829[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
3830[error] 28 | Seq(1,2,3).map{ x =>
3831[error] | ^
3832[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3833[error] 29 | await(T1.cbi(3)) + x
3834[error] 30 | }
3835can't translate tree: {
3836 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
3837 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
3838}
3839et=scala.collection.immutable.Seq[scala.Int]
3840[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
3841[error] 37 | seq.map{ x =>
3842[error] | ^
3843[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3844[error] 38 | await(T1.cbi(3)) + x
3845[error] 39 | }
3846can't translate tree: {
3847 var s: scala.Int = 0
3848 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
3849
3850 (s: scala.Int)
3851}
3852et=scala.Int
3853[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
3854[error] 46 | Seq(1,2,3).foreach{ x =>
3855[error] | ^
3856[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3857[error] 47 | s += await(T1.cbi(3)) + x
3858[error] 48 | }
3859[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
3860[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
3861[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3862[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3863[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
3864[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
3865[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3866[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3867[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
3868[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
3869[error] | ^^^^^^^^^^^^^^^^^
3870[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3871[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
3872[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
3873[error] | ^^^^^^^^^^^^^^^^^
3874[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3875[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
3876[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
3877[error] | ^^^^^^^^^^^^
3878[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
3879can't translate tree: {
3880 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
3881 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
3882}
3883et=scala.Int
3884[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
3885[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
3886[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3887[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3888can't translate tree: {
3889 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
3890 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
3891}
3892et=scala.Int
3893[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
3894[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
3895[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3896[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3897can't translate tree: {
3898 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
3899 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
3900}
3901et=scala.collection.immutable.Seq[java.lang.String]
3902[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
3903[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
3904[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3905[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
3906[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
3907[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
3908[error] | ^
3909[error] | Not found: s
3910[error] |
3911[error] | longer explanation available when compiling with `-explain`
3912[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
3913[error] 26 | assert( s.filter(_.length == 2).length == 1 )
3914[error] | ^
3915[error] | Not found: s
3916[error] |
3917[error] | longer explanation available when compiling with `-explain`
3918[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
3919[error] 27 | assert( s.filter(_.length == 4).length == 1 )
3920[error] | ^
3921[error] | Not found: s
3922[error] |
3923[error] | longer explanation available when compiling with `-explain`
3924can't translate tree: {
3925 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
3926 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
3927}
3928et=scala.Int
3929[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
3930[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
3931[error] | ^^^^^^^^^^^^^^
3932[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
3933can't translate tree: {
3934 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
3935 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
3936}
3937et=scala.Int
3938[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
3939[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
3940[error] | ^^^^^^^^^^^^^^
3941[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
3942can't translate tree: {
3943 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
3944 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
3945}
3946et=scala.Int
3947[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
3948[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
3949[error] | ^^^^^^^^^^^^^^^^^
3950[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
3951[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:15:36
3952[warn] 15 | val c = async[ComputationBound]{
3953[warn] | ^
3954[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
3955[warn] | This is a compiler bug. Please report it.
3956[warn] 16 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){
3957[warn] 17 | case Success(x) => x + await(T1.cbi(3))
3958[warn] 18 | case Failure(ex) => 0
3959[warn] 19 | }
3960[warn] 20 | await(q)
3961[warn] 21 | }
3962[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:28:59
3963[warn] 28 | val c: ComputationBound[Int] = async[ComputationBound]{
3964[warn] | ^
3965[warn] | Missing symbol position (defaulting to position 0): method mapTryAsync
3966[warn] | This is a compiler bug. Please report it.
3967[warn] 29 | val q = summon[CpsTryMonad[ComputationBound]].mapTry(T1.cbi(2)){ v =>
3968[warn] 30 | v match
3969[warn] 31 | case Success(x) => x + await(T1.cbi(3))
3970[warn] 32 | case Failure(ex) => 0
3971[warn] 33 | }
3972[warn] 34 | await(q)
3973[warn] 35 | }
3974[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftTryMonad.scala:78:36
3975[warn] 78 | val c = async[ComputationBound]{
3976[warn] | ^
3977[warn] |Missing symbol position (defaulting to position 0): method withActionAsync
3978[warn] |This is a compiler bug. Please report it.
3979[warn] 79 | var x = 0
3980[warn] 80 | val fa = T1.cbs("fa")
3981[warn] 81 | val q = summon[CpsTryMonad[ComputationBound]].withAction(fa)( {x = await(T1.cbi(1))} )
3982[warn] 82 | await(q)
3983[warn] 83 | x
3984[warn] 84 | }
3985[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:28:36
3986[warn] 28 | val c = async[ComputationBound]{
3987[warn] | ^
3988[warn] | Missing symbol position (defaulting to position 0): method map_async
3989[warn] | This is a compiler bug. Please report it.
3990[warn] 29 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
3991[warn] 30 | } yield (await(T1.cbi(x)))
3992[warn] 31 | }
3993[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:39:36
3994[warn] 39 | val c = async[ComputationBound]{
3995[warn] | ^
3996[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
3997[warn] |This is a compiler bug. Please report it.
3998[warn] 40 | for{ x <- 1 to 10 if (x%2) == await(T1.cbi(0))
3999[warn] 41 | y <- 20 to 30 if (y%2) == await(T1.cbi(1))
4000[warn] 42 | } yield x+y
4001[warn] 43 | }
4002[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:51:36
4003[warn] 51 | val c = async[ComputationBound]{
4004[warn] | ^
4005[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
4006[warn] |This is a compiler bug. Please report it.
4007[warn] 52 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
4008[warn] 53 | .flatMap( x =>
4009[warn] 54 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
4010[warn] 55 | .map(y => x+y)
4011[warn] 56 | )
4012[warn] 57 | }
4013[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:67:36
4014[warn] 67 | val c = async[ComputationBound]{
4015[warn] | ^
4016[warn] |Missing symbol position (defaulting to position 0): method flatMap_async
4017[warn] |This is a compiler bug. Please report it.
4018[warn] 68 | (1 to 10).withFilter( x => x == await(T1.cbi(1)) )
4019[warn] 69 | .flatMap( x =>
4020[warn] 70 | (1 to 10).withFilter( y => y == await(T1.cbi(1)) )
4021[warn] 71 | .map(_ => x)
4022[warn] 72 | )
4023[warn] 73 | }
4024[warn] -- Warning: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftWithFilter.scala:84:36
4025[warn] 84 | val c = async[ComputationBound]{
4026[warn] | ^
4027[warn] | Missing symbol position (defaulting to position 0): method map_async
4028[warn] | This is a compiler bug. Please report it.
4029[warn] 85 | (1 to 10).withFilter( x => (x%2 == await(T1.cbi(0))) )
4030[warn] 86 | .flatMap( x =>
4031[warn] 87 | (20 to 30).withFilter( y => y % 2 == await(T1.cbi(1)) )
4032[warn] 88 | .map(y => x+ await(T1.cbi(y)))
4033[warn] 89 | )
4034[warn] 90 | }
4035[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:45:28
4036[warn] 45 | val f = async[Future] {
4037[warn] | ^
4038[warn] | Missing symbol position (defaulting to position 0): method mapAsync
4039[warn] | This is a compiler bug. Please report it.
4040[warn] 46 | val mappedIterator = iterator.map(x => await(Future successful x.toString))
4041[warn] 47 | var i = 1
4042[warn] 48 | while{
4043[warn] 49 | await(mappedIterator.next) match
4044[warn] 50 | case Some(x) =>
4045[warn] 51 | assert(i.toString == x)
4046[warn] 52 | i = i + 1
4047[warn] 53 | true
4048[warn] 54 | case None =>
4049[warn] 55 | assert(i == 11)
4050[warn] 56 | false
4051[warn] 57 | } do ()
4052[warn] 58 | }
4053[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:84:28
4054[warn] 84 | val f = async[Future] {
4055[warn] | ^
4056[warn] | Missing symbol position (defaulting to position 0): method filterAsync
4057[warn] | This is a compiler bug. Please report it.
4058[warn] 85 | val filtered = iterator.filter(_ % 2 == await(Future successful 0) )
4059[warn] 86 | var i = 0
4060[warn] 87 | while{
4061[warn] 88 | val optValue = await(filtered.next)
4062[warn] 89 | optValue.foreach{ x =>
4063[warn] 90 | assert(x % 2 == 0)
4064[warn] 91 | i = i + 1
4065[warn] 92 | }
4066[warn] 93 | optValue.isDefined
4067[warn] 94 | } do ()
4068[warn] 95 | assert(i == 5)
4069[warn] 96 | }
4070[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:125:28
4071[warn] 125 | val f = async[Future] {
4072[warn] | ^
4073[warn] | Missing symbol position (defaulting to position 0): method findAsync
4074[warn] | This is a compiler bug. Please report it.
4075[warn] 126 | val x = await(iterator.find(_ > await(Future successful 8)))
4076[warn] 127 | assert(x == Some(9))
4077[warn] 128 | }
4078[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:149:27
4079[warn] 149 | val f = async[Future]{
4080[warn] | ^
4081[warn] | Missing symbol position (defaulting to position 0): method foldAsync
4082[warn] | This is a compiler bug. Please report it.
4083[warn] 150 | val fr = iterator.fold(0)(
4084[warn] 151 | (x:Int,y:Int) => x + y + await(Future.successful(1))
4085[warn] 152 | )
4086[warn] 153 | val r = await(fr)
4087[warn] 154 | assert(r == 9)
4088[warn] 155 | }
4089[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:186:28
4090[warn] 186 | val ft = async[Future]{
4091[warn] | ^
4092[warn] | Missing symbol position (defaulting to position 0): method scanAsync
4093[warn] | This is a compiler bug. Please report it.
4094[warn] 187 | val fr = iterator.scan(0)( (x,y) => x + await(Future.successful(y)) )
4095[warn] 188 | val r0 = await(fr.next)
4096[warn] 189 | assert(r0.get == 0)
4097[warn] 190 | val r1 = await(fr.next)
4098[warn] 191 | assert(r1.get == 1)
4099[warn] 192 | val r2 = await(fr.next)
4100[warn] 193 | assert(r2.get == 3)
4101[warn] 194 | val r3 = await(fr.next)
4102[warn] 195 | assert(r3.get == 6)
4103[warn] 196 | val r4 = await(fr.next)
4104[warn] 197 | assert(r4.get == 10)
4105[warn] 198 | val r5 = await(fr.next)
4106[warn] 199 | assert(r5.get == 15)
4107[warn] 200 | val r6 = await(fr.next)
4108[warn] 201 | assert(r6 == None)
4109[warn] 202 | }
4110[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncIteratorOps.scala:290:29
4111[warn] 290 | val ft = async[Future] {
4112[warn] | ^
4113[warn] |Missing symbol position (defaulting to position 0): method mapTryAsync
4114[warn] |This is a compiler bug. Please report it.
4115[warn] 291 | val mappedIterator = myIterator.mapTry{
4116[warn] 292 | case Success(x) => x + await(delayedOne)
4117[warn] 293 | case Failure(ex) => -1
4118[warn] 294 | }
4119[warn] 295 | val v1 = await(mappedIterator.next)
4120[warn] 296 | assert(v1.get == 2)
4121[warn] 297 | val v2 = await(mappedIterator.next)
4122[warn] 298 | assert(v2.get == -1)
4123[warn] 299 | }
4124[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestAsyncListtOps.scala:49:27
4125[warn] 49 | val ft = async[Future] {
4126[warn] | ^
4127[warn] | Missing symbol position (defaulting to position 0): method mapAsync
4128[warn] | This is a compiler bug. Please report it.
4129[warn] 50 | val mapped = stream.map{ x =>
4130[warn] 51 | x + await(asyncSuccess(1))
4131[warn] 52 | }
4132[warn] 53 | val l = await(mapped.take[List](5))
4133[warn] 54 | assert(l == List(2,3,4,5,6))
4134[warn] 55 | }
4135[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtAsyncListFilter.scala:51:26
4136[warn] 51 | val r = async[Future] {
4137[warn] | ^
4138[warn] | Missing symbol position (defaulting to position 0): method filterAsync
4139[warn] | This is a compiler bug. Please report it.
4140[warn] 52 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
4141[warn] 53 | for(i <- 1 to N)
4142[warn] 54 | out.emit(i)
4143[warn] 55 | }
4144[warn] 56 | val filtered = stream.filter(x => await(asyncTest(_ % 2 == 0, x)))
4145[warn] 57 | val firstTen = await(filtered.takeList(10))
4146[warn] 58 | assert(firstTen(0)==2)
4147[warn] 59 | assert(firstTen(1)==4)
4148[warn] 60 | assert(firstTen(2)==6)
4149[warn] 61 | assert(firstTen(3)==8)
4150[warn] 62 | }
4151[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:33:30
4152[warn] 33 | val check = async[Future] {
4153[warn] | ^
4154[warn] | Missing symbol position (defaulting to position 0): method foldAsync
4155[warn] | This is a compiler bug. Please report it.
4156[warn] 34 | val stream = asyncStream[AsyncList[Future, Int]]{ out =>
4157[warn] 35 | for(i <- 1 to 10)
4158[warn] 36 | out.emit(i)
4159[warn] 37 | }
4160[warn] 38 | val sumFuture = stream.fold(0)((s,e)=>s+await(Future successful e))
4161[warn] 39 | val sum = await(sumFuture)
4162[warn] 40 | val sum1 = (1 to 10).sum
4163[warn] 41 | assert(sum == sum1)
4164[warn] 42 | }
4165[warn] -- Warning: /build/repo/shared/src/test/scala/cps/stream/TestFtFoldScan.scala:65:30
4166[warn] 65 | val check = async[Future] {
4167[warn] | ^
4168[warn] | Missing symbol position (defaulting to position 0): method scanAsync
4169[warn] | This is a compiler bug. Please report it.
4170[warn] 66 | val scan = stream.scan(0)((s,e) => s + await(Future successful e))
4171[warn] 67 | val scanList = await(scan.takeListAll())
4172[warn] 68 | val sampleScan = (1 to 10).scanLeft(0)((s,e)=>s+e)
4173[warn] 69 | assert(scanList == sampleScan)
4174[warn] 70 | }
4175can't translate tree: {
4176 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
4177 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
4178 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
4179 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
4180 case scala.util.control.NonFatal(ex) =>
4181 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
4182 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
4183 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
4184 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
4185 case scala.util.control.NonFatal(ex) =>
4186 ()
4187 }
4188 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
4189 }
4190 }))
4191 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
4192}
4193et=scala.Unit
4194[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
4195[error] 24 | for(test <- tests) {
4196[error] | ^
4197[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
4198[error] 25 | println(s"running ${test}")
4199[error] 26 | try {
4200[error] 27 | await(test.run(testContext))
4201[error] 28 | }catch{
4202[error] 29 | case NonFatal(ex) =>
4203[error] 30 | if !(test eq ExtremeSize) then
4204[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
4205[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
4206[error] 33 | //val traceContext = testContext.copy(trace=true)
4207[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
4208[error] 35 | try {
4209[error] 36 | await(test.run(traceContext))
4210[error] 37 | } catch {
4211[error] 38 | case NonFatal(ex) =>
4212[error] 39 | }
4213[error] 40 | else
4214[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
4215[error] 42 | }
4216[error] 43 | }
4217[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
4218[warn] 38 | if (false) then
4219[warn] | ^
4220[warn] | A pure expression does nothing in statement position
4221[warn] 39 | println(s"ctx=${summon[Context]}")
4222[warn] |
4223[warn] | longer explanation available when compiling with `-explain`
4224[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
4225[warn] 56 | if (false) then
4226[warn] | ^
4227[warn] | A pure expression does nothing in statement position
4228[warn] 57 | println(s"ctx=${summon[Context]}")
4229[warn] |
4230[warn] | longer explanation available when compiling with `-explain`
4231can't translate tree: {
4232 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4233 val config: TestReturningExamples.this.Config = api.config
4234 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4235 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
4236 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4237 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
4238 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
4239 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4240
4241 (newBucket: TestReturningExamples.this.Bucket)
4242 }
4243 }))
4244 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4245 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
4246}
4247et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
4248[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
4249[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
4250[error] | ^
4251[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
4252[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
4253[error] 84 | if (!itemInfo.available) then
4254[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
4255[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
4256[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
4257[error] 88 | else
4258[error] 89 | val newBucket = bucket.withItem(itemInfo)
4259[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
4260[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
4261[error] 92 | newBucket
4262[error] 93 | }
4263can't translate tree: {
4264 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4265 val config: TestReturningExamples.this.Config = api.config
4266 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4267 var remainingBudget: scala.Long = budget
4268 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
4269 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
4270 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4271 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
4272 bucket.addItem(itemInfo)
4273 remainingBudget = remainingBudget.-(itemInfo.cost)
4274 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4275 }
4276 }))
4277 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4278 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
4279}
4280et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
4281[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
4282[error] 158 | for(item <- items) {
4283[error] | ^
4284[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
4285[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
4286[error] 160 | if (!itemInfo.available) then
4287[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
4288[error] 162 | else if (itemInfo.cost > remainingBudget) then
4289[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
4290[error] 164 | else
4291[error] 165 | bucket.addItem(itemInfo)
4292[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
4293[error] 167 | if (remainingBudget < config.minItemCost) then
4294[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
4295[error] 169 | }
4296[warn] 22 warnings found
4297[error] 20 errors found
4298[error] (cpsJVM / Test / compileIncremental) Compilation failed
4299Starting build for ProjectRef(file:/build/repo/,cpsLoomAddOn) (dotty-cps-async-loom)...
4300Compile scalacOptions: List(-Xtarget:21, -explain, -source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
4301[info] Wrote /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async-loom_3-0.9.22.pom
4302[info] :: delivering :: com.github.rssh#dotty-cps-async-loom_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:09:47 CET 2025
4303[info] delivering ivy file to /build/repo/jvm-loom-addon/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
4304[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/poms/dotty-cps-async-loom_3.pom (non-SNAPSHOT)
4305[warn] You need to remove it from the cache manually to take effect.
4306[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/poms/dotty-cps-async-loom_3.pom.sha1 (non-SNAPSHOT)
4307[warn] You need to remove it from the cache manually to take effect.
4308[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/poms/dotty-cps-async-loom_3.pom.md5 (non-SNAPSHOT)
4309[warn] You need to remove it from the cache manually to take effect.
4310[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/poms/dotty-cps-async-loom_3.pom
4311[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/jars/dotty-cps-async-loom_3.jar (non-SNAPSHOT)
4312[warn] You need to remove it from the cache manually to take effect.
4313[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/jars/dotty-cps-async-loom_3.jar.sha1 (non-SNAPSHOT)
4314[warn] You need to remove it from the cache manually to take effect.
4315[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/jars/dotty-cps-async-loom_3.jar.md5 (non-SNAPSHOT)
4316[warn] You need to remove it from the cache manually to take effect.
4317[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/jars/dotty-cps-async-loom_3.jar
4318[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/srcs/dotty-cps-async-loom_3-sources.jar (non-SNAPSHOT)
4319[warn] You need to remove it from the cache manually to take effect.
4320[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/srcs/dotty-cps-async-loom_3-sources.jar.sha1 (non-SNAPSHOT)
4321[warn] You need to remove it from the cache manually to take effect.
4322[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/srcs/dotty-cps-async-loom_3-sources.jar.md5 (non-SNAPSHOT)
4323[warn] You need to remove it from the cache manually to take effect.
4324[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/srcs/dotty-cps-async-loom_3-sources.jar
4325[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/docs/dotty-cps-async-loom_3-javadoc.jar (non-SNAPSHOT)
4326[warn] You need to remove it from the cache manually to take effect.
4327[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/docs/dotty-cps-async-loom_3-javadoc.jar.sha1 (non-SNAPSHOT)
4328[warn] You need to remove it from the cache manually to take effect.
4329[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/docs/dotty-cps-async-loom_3-javadoc.jar.md5 (non-SNAPSHOT)
4330[warn] You need to remove it from the cache manually to take effect.
4331[info] published dotty-cps-async-loom_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/docs/dotty-cps-async-loom_3-javadoc.jar
4332[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/ivys/ivy.xml (non-SNAPSHOT)
4333[warn] You need to remove it from the cache manually to take effect.
4334[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/ivys/ivy.xml.sha1 (non-SNAPSHOT)
4335[warn] You need to remove it from the cache manually to take effect.
4336[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/ivys/ivy.xml.md5 (non-SNAPSHOT)
4337[warn] You need to remove it from the cache manually to take effect.
4338[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async-loom_3/0.9.22/ivys/ivy.xml
4339Starting build for ProjectRef(file:/build/repo/,logicJVM) (dotty-cps-async-logic)...
4340Compile scalacOptions: List(-source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
4341[info] Wrote /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async-logic_3-0.9.22.pom
4342[info] :: delivering :: com.github.rssh#dotty-cps-async-logic_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:09:47 CET 2025
4343[info] delivering ivy file to /build/repo/logic/jvm/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
4344[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/poms/dotty-cps-async-logic_3.pom (non-SNAPSHOT)
4345[warn] You need to remove it from the cache manually to take effect.
4346[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/poms/dotty-cps-async-logic_3.pom.sha1 (non-SNAPSHOT)
4347[warn] You need to remove it from the cache manually to take effect.
4348[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/poms/dotty-cps-async-logic_3.pom.md5 (non-SNAPSHOT)
4349[warn] You need to remove it from the cache manually to take effect.
4350[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/poms/dotty-cps-async-logic_3.pom
4351[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/jars/dotty-cps-async-logic_3.jar (non-SNAPSHOT)
4352[warn] You need to remove it from the cache manually to take effect.
4353[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/jars/dotty-cps-async-logic_3.jar.sha1 (non-SNAPSHOT)
4354[warn] You need to remove it from the cache manually to take effect.
4355[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/jars/dotty-cps-async-logic_3.jar.md5 (non-SNAPSHOT)
4356[warn] You need to remove it from the cache manually to take effect.
4357[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/jars/dotty-cps-async-logic_3.jar
4358[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/srcs/dotty-cps-async-logic_3-sources.jar (non-SNAPSHOT)
4359[warn] You need to remove it from the cache manually to take effect.
4360[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/srcs/dotty-cps-async-logic_3-sources.jar.sha1 (non-SNAPSHOT)
4361[warn] You need to remove it from the cache manually to take effect.
4362[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/srcs/dotty-cps-async-logic_3-sources.jar.md5 (non-SNAPSHOT)
4363[warn] You need to remove it from the cache manually to take effect.
4364[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/srcs/dotty-cps-async-logic_3-sources.jar
4365[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/docs/dotty-cps-async-logic_3-javadoc.jar (non-SNAPSHOT)
4366[warn] You need to remove it from the cache manually to take effect.
4367[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/docs/dotty-cps-async-logic_3-javadoc.jar.sha1 (non-SNAPSHOT)
4368[warn] You need to remove it from the cache manually to take effect.
4369[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/docs/dotty-cps-async-logic_3-javadoc.jar.md5 (non-SNAPSHOT)
4370[warn] You need to remove it from the cache manually to take effect.
4371[info] published dotty-cps-async-logic_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/docs/dotty-cps-async-logic_3-javadoc.jar
4372[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/ivys/ivy.xml (non-SNAPSHOT)
4373[warn] You need to remove it from the cache manually to take effect.
4374[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/ivys/ivy.xml.sha1 (non-SNAPSHOT)
4375[warn] You need to remove it from the cache manually to take effect.
4376[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/ivys/ivy.xml.md5 (non-SNAPSHOT)
4377[warn] You need to remove it from the cache manually to take effect.
4378[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async-logic_3/0.9.22/ivys/ivy.xml
4379Starting build for ProjectRef(file:/build/repo/,cpsJS) (dotty-cps-async)...
4380Compile scalacOptions: List(-scalajs, -source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
4381[info] compiling 152 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
4382[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
4383[error] 28 | Seq(1,2,3).map{ x =>
4384[error] | ^
4385[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4386[error] 29 | await(T1.cbi(3)) + x
4387[error] 30 | }
4388can't translate tree: {
4389 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
4390 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
4391}
4392et=scala.collection.immutable.Seq[scala.Int]
4393[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
4394[error] 37 | seq.map{ x =>
4395[error] | ^
4396[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4397[error] 38 | await(T1.cbi(3)) + x
4398[error] 39 | }
4399can't translate tree: {
4400 var s: scala.Int = 0
4401 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
4402
4403 (s: scala.Int)
4404}
4405et=scala.Int
4406[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
4407[error] 46 | Seq(1,2,3).foreach{ x =>
4408[error] | ^
4409[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4410[error] 47 | s += await(T1.cbi(3)) + x
4411[error] 48 | }
4412[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
4413[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
4414[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4415[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4416[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
4417[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
4418[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4419[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4420[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
4421[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
4422[error] | ^^^^^^^^^^^^^^^^^
4423[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4424[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
4425[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
4426[error] | ^^^^^^^^^^^^^^^^^
4427[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4428[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
4429[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
4430[error] | ^^^^^^^^^^^^
4431[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
4432can't translate tree: {
4433 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
4434 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
4435}
4436et=scala.Int
4437[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
4438[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
4439[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4440[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4441can't translate tree: {
4442 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
4443 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
4444}
4445et=scala.Int
4446[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
4447[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
4448[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4449[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4450can't translate tree: {
4451 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4452 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4453}
4454et=scala.collection.immutable.Seq[java.lang.String]
4455[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
4456[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
4457[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4458[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4459[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
4460[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
4461[error] | ^
4462[error] | Not found: s
4463[error] |
4464[error] | longer explanation available when compiling with `-explain`
4465[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
4466[error] 26 | assert( s.filter(_.length == 2).length == 1 )
4467[error] | ^
4468[error] | Not found: s
4469[error] |
4470[error] | longer explanation available when compiling with `-explain`
4471[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
4472[error] 27 | assert( s.filter(_.length == 4).length == 1 )
4473[error] | ^
4474[error] | Not found: s
4475[error] |
4476[error] | longer explanation available when compiling with `-explain`
4477can't translate tree: {
4478 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4479 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4480}
4481et=scala.Int
4482[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
4483[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
4484[error] | ^^^^^^^^^^^^^^
4485[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4486can't translate tree: {
4487 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4488 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4489}
4490et=scala.Int
4491[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
4492[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
4493[error] | ^^^^^^^^^^^^^^
4494[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4495can't translate tree: {
4496 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
4497 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
4498}
4499et=scala.Int
4500[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
4501[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
4502[error] | ^^^^^^^^^^^^^^^^^
4503[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4504can't translate tree: {
4505 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
4506 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
4507 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
4508 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
4509 case scala.util.control.NonFatal(ex) =>
4510 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
4511 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
4512 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
4513 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
4514 case scala.util.control.NonFatal(ex) =>
4515 ()
4516 }
4517 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
4518 }
4519 }))
4520 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
4521}
4522et=scala.Unit
4523[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
4524[error] 24 | for(test <- tests) {
4525[error] | ^
4526[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
4527[error] 25 | println(s"running ${test}")
4528[error] 26 | try {
4529[error] 27 | await(test.run(testContext))
4530[error] 28 | }catch{
4531[error] 29 | case NonFatal(ex) =>
4532[error] 30 | if !(test eq ExtremeSize) then
4533[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
4534[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
4535[error] 33 | //val traceContext = testContext.copy(trace=true)
4536[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
4537[error] 35 | try {
4538[error] 36 | await(test.run(traceContext))
4539[error] 37 | } catch {
4540[error] 38 | case NonFatal(ex) =>
4541[error] 39 | }
4542[error] 40 | else
4543[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
4544[error] 42 | }
4545[error] 43 | }
4546[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
4547[warn] 38 | if (false) then
4548[warn] | ^
4549[warn] | A pure expression does nothing in statement position
4550[warn] 39 | println(s"ctx=${summon[Context]}")
4551[warn] |
4552[warn] | longer explanation available when compiling with `-explain`
4553[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
4554[warn] 56 | if (false) then
4555[warn] | ^
4556[warn] | A pure expression does nothing in statement position
4557[warn] 57 | println(s"ctx=${summon[Context]}")
4558[warn] |
4559[warn] | longer explanation available when compiling with `-explain`
4560can't translate tree: {
4561 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4562 val config: TestReturningExamples.this.Config = api.config
4563 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4564 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
4565 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4566 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
4567 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
4568 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4569
4570 (newBucket: TestReturningExamples.this.Bucket)
4571 }
4572 }))
4573 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4574 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
4575}
4576et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
4577[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
4578[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
4579[error] | ^
4580[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
4581[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
4582[error] 84 | if (!itemInfo.available) then
4583[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
4584[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
4585[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
4586[error] 88 | else
4587[error] 89 | val newBucket = bucket.withItem(itemInfo)
4588[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
4589[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
4590[error] 92 | newBucket
4591[error] 93 | }
4592can't translate tree: {
4593 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4594 val config: TestReturningExamples.this.Config = api.config
4595 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4596 var remainingBudget: scala.Long = budget
4597 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
4598 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
4599 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4600 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
4601 bucket.addItem(itemInfo)
4602 remainingBudget = remainingBudget.-(itemInfo.cost)
4603 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4604 }
4605 }))
4606 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4607 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
4608}
4609et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
4610[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
4611[error] 158 | for(item <- items) {
4612[error] | ^
4613[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
4614[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
4615[error] 160 | if (!itemInfo.available) then
4616[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
4617[error] 162 | else if (itemInfo.cost > remainingBudget) then
4618[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
4619[error] 164 | else
4620[error] 165 | bucket.addItem(itemInfo)
4621[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
4622[error] 167 | if (remainingBudget < config.minItemCost) then
4623[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
4624[error] 169 | }
4625[warn] two warnings found
4626[error] 20 errors found
4627[error] (cpsJS / Test / compileIncremental) Compilation failed
4628[info] Wrote /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async_sjs1_3-0.9.22.pom
4629[info] :: delivering :: com.github.rssh#dotty-cps-async_sjs1_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:09:54 CET 2025
4630[info] delivering ivy file to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
4631[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/poms/dotty-cps-async_sjs1_3.pom (non-SNAPSHOT)
4632[warn] You need to remove it from the cache manually to take effect.
4633[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/poms/dotty-cps-async_sjs1_3.pom.sha1 (non-SNAPSHOT)
4634[warn] You need to remove it from the cache manually to take effect.
4635[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/poms/dotty-cps-async_sjs1_3.pom.md5 (non-SNAPSHOT)
4636[warn] You need to remove it from the cache manually to take effect.
4637[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/poms/dotty-cps-async_sjs1_3.pom
4638[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/jars/dotty-cps-async_sjs1_3.jar (non-SNAPSHOT)
4639[warn] You need to remove it from the cache manually to take effect.
4640[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/jars/dotty-cps-async_sjs1_3.jar.sha1 (non-SNAPSHOT)
4641[warn] You need to remove it from the cache manually to take effect.
4642[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/jars/dotty-cps-async_sjs1_3.jar.md5 (non-SNAPSHOT)
4643[warn] You need to remove it from the cache manually to take effect.
4644[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/jars/dotty-cps-async_sjs1_3.jar
4645[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/srcs/dotty-cps-async_sjs1_3-sources.jar (non-SNAPSHOT)
4646[warn] You need to remove it from the cache manually to take effect.
4647[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/srcs/dotty-cps-async_sjs1_3-sources.jar.sha1 (non-SNAPSHOT)
4648[warn] You need to remove it from the cache manually to take effect.
4649[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/srcs/dotty-cps-async_sjs1_3-sources.jar.md5 (non-SNAPSHOT)
4650[warn] You need to remove it from the cache manually to take effect.
4651[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/srcs/dotty-cps-async_sjs1_3-sources.jar
4652[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/docs/dotty-cps-async_sjs1_3-javadoc.jar (non-SNAPSHOT)
4653[warn] You need to remove it from the cache manually to take effect.
4654[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/docs/dotty-cps-async_sjs1_3-javadoc.jar.sha1 (non-SNAPSHOT)
4655[warn] You need to remove it from the cache manually to take effect.
4656[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/docs/dotty-cps-async_sjs1_3-javadoc.jar.md5 (non-SNAPSHOT)
4657[warn] You need to remove it from the cache manually to take effect.
4658[info] published dotty-cps-async_sjs1_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/docs/dotty-cps-async_sjs1_3-javadoc.jar
4659[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/ivys/ivy.xml (non-SNAPSHOT)
4660[warn] You need to remove it from the cache manually to take effect.
4661[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/ivys/ivy.xml.sha1 (non-SNAPSHOT)
4662[warn] You need to remove it from the cache manually to take effect.
4663[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/ivys/ivy.xml.md5 (non-SNAPSHOT)
4664[warn] You need to remove it from the cache manually to take effect.
4665[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async_sjs1_3/0.9.22/ivys/ivy.xml
4666[info] compiling 152 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
4667[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
4668[error] 28 | Seq(1,2,3).map{ x =>
4669[error] | ^
4670[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4671[error] 29 | await(T1.cbi(3)) + x
4672[error] 30 | }
4673can't translate tree: {
4674 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
4675 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
4676}
4677et=scala.collection.immutable.Seq[scala.Int]
4678[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
4679[error] 37 | seq.map{ x =>
4680[error] | ^
4681[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4682[error] 38 | await(T1.cbi(3)) + x
4683[error] 39 | }
4684can't translate tree: {
4685 var s: scala.Int = 0
4686 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
4687
4688 (s: scala.Int)
4689}
4690et=scala.Int
4691[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
4692[error] 46 | Seq(1,2,3).foreach{ x =>
4693[error] | ^
4694[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4695[error] 47 | s += await(T1.cbi(3)) + x
4696[error] 48 | }
4697[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
4698[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
4699[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4700[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4701[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
4702[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
4703[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4704[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4705[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
4706[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
4707[error] | ^^^^^^^^^^^^^^^^^
4708[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4709[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
4710[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
4711[error] | ^^^^^^^^^^^^^^^^^
4712[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4713[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
4714[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
4715[error] | ^^^^^^^^^^^^
4716[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
4717can't translate tree: {
4718 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
4719 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
4720}
4721et=scala.Int
4722[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
4723[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
4724[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4725[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4726can't translate tree: {
4727 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
4728 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
4729}
4730et=scala.Int
4731[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
4732[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
4733[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4734[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4735can't translate tree: {
4736 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4737 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4738}
4739et=scala.collection.immutable.Seq[java.lang.String]
4740[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
4741[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
4742[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4743[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4744[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
4745[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
4746[error] | ^
4747[error] | Not found: s
4748[error] |
4749[error] | longer explanation available when compiling with `-explain`
4750[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
4751[error] 26 | assert( s.filter(_.length == 2).length == 1 )
4752[error] | ^
4753[error] | Not found: s
4754[error] |
4755[error] | longer explanation available when compiling with `-explain`
4756[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
4757[error] 27 | assert( s.filter(_.length == 4).length == 1 )
4758[error] | ^
4759[error] | Not found: s
4760[error] |
4761[error] | longer explanation available when compiling with `-explain`
4762can't translate tree: {
4763 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4764 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4765}
4766et=scala.Int
4767[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
4768[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
4769[error] | ^^^^^^^^^^^^^^
4770[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4771can't translate tree: {
4772 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4773 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4774}
4775et=scala.Int
4776[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
4777[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
4778[error] | ^^^^^^^^^^^^^^
4779[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4780can't translate tree: {
4781 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
4782 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
4783}
4784et=scala.Int
4785[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
4786[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
4787[error] | ^^^^^^^^^^^^^^^^^
4788[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4789can't translate tree: {
4790 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
4791 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
4792 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
4793 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
4794 case scala.util.control.NonFatal(ex) =>
4795 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
4796 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
4797 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
4798 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
4799 case scala.util.control.NonFatal(ex) =>
4800 ()
4801 }
4802 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
4803 }
4804 }))
4805 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
4806}
4807et=scala.Unit
4808[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
4809[error] 24 | for(test <- tests) {
4810[error] | ^
4811[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
4812[error] 25 | println(s"running ${test}")
4813[error] 26 | try {
4814[error] 27 | await(test.run(testContext))
4815[error] 28 | }catch{
4816[error] 29 | case NonFatal(ex) =>
4817[error] 30 | if !(test eq ExtremeSize) then
4818[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
4819[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
4820[error] 33 | //val traceContext = testContext.copy(trace=true)
4821[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
4822[error] 35 | try {
4823[error] 36 | await(test.run(traceContext))
4824[error] 37 | } catch {
4825[error] 38 | case NonFatal(ex) =>
4826[error] 39 | }
4827[error] 40 | else
4828[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
4829[error] 42 | }
4830[error] 43 | }
4831[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
4832[warn] 38 | if (false) then
4833[warn] | ^
4834[warn] | A pure expression does nothing in statement position
4835[warn] 39 | println(s"ctx=${summon[Context]}")
4836[warn] |
4837[warn] | longer explanation available when compiling with `-explain`
4838[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
4839[warn] 56 | if (false) then
4840[warn] | ^
4841[warn] | A pure expression does nothing in statement position
4842[warn] 57 | println(s"ctx=${summon[Context]}")
4843[warn] |
4844[warn] | longer explanation available when compiling with `-explain`
4845can't translate tree: {
4846 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4847 val config: TestReturningExamples.this.Config = api.config
4848 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4849 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
4850 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4851 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
4852 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
4853 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4854
4855 (newBucket: TestReturningExamples.this.Bucket)
4856 }
4857 }))
4858 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
4859 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
4860}
4861et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
4862[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
4863[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
4864[error] | ^
4865[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
4866[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
4867[error] 84 | if (!itemInfo.available) then
4868[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
4869[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
4870[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
4871[error] 88 | else
4872[error] 89 | val newBucket = bucket.withItem(itemInfo)
4873[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
4874[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
4875[error] 92 | newBucket
4876[error] 93 | }
4877can't translate tree: {
4878 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4879 val config: TestReturningExamples.this.Config = api.config
4880 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4881 var remainingBudget: scala.Long = budget
4882 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
4883 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
4884 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
4885 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
4886 bucket.addItem(itemInfo)
4887 remainingBudget = remainingBudget.-(itemInfo.cost)
4888 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4889 }
4890 }))
4891 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
4892 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
4893}
4894et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
4895[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
4896[error] 158 | for(item <- items) {
4897[error] | ^
4898[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
4899[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
4900[error] 160 | if (!itemInfo.available) then
4901[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
4902[error] 162 | else if (itemInfo.cost > remainingBudget) then
4903[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
4904[error] 164 | else
4905[error] 165 | bucket.addItem(itemInfo)
4906[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
4907[error] 167 | if (remainingBudget < config.minItemCost) then
4908[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
4909[error] 169 | }
4910[warn] two warnings found
4911[error] 20 errors found
4912[error] (cpsJS / Test / compileIncremental) Compilation failed
4913[info] compiling 152 Scala sources to /build/repo/js/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/test-classes ...
4914[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:28:22
4915[error] 28 | Seq(1,2,3).map{ x =>
4916[error] | ^
4917[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4918[error] 29 | await(T1.cbi(3)) + x
4919[error] 30 | }
4920can't translate tree: {
4921 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3)
4922 seq.map[scala.Int](((x: scala.Int) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x)))
4923}
4924et=scala.collection.immutable.Seq[scala.Int]
4925[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:37:15
4926[error] 37 | seq.map{ x =>
4927[error] | ^
4928[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = map, shiftedName=map_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4929[error] 38 | await(T1.cbi(3)) + x
4930[error] 39 | }
4931can't translate tree: {
4932 var s: scala.Int = 0
4933 scala.Seq.apply[scala.Int](1, 2, 3).foreach[scala.Unit](((x: scala.Int) => s = s.+(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(3))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]).+(x))))
4934
4935 (s: scala.Int)
4936}
4937et=scala.Int
4938[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:46:26
4939[error] 46 | Seq(1,2,3).foreach{ x =>
4940[error] | ^
4941[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4942[error] 47 | s += await(T1.cbi(3)) + x
4943[error] 48 | }
4944[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:229:33
4945[error] 229 | Seq(1,2,3).foldLeft("")((s,e) => "(" + s + "," + await(T1.cbi(e)).toString + ")" )
4946[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4947[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4948[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:235:34
4949[error] 235 | Seq(1,2,3).foldRight("")((e,s) => "(" + await(T1.cbs(e.toString)) + "," + s + ")" )
4950[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4951[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = foldRight, shiftedName=foldRight_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4952[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:242:10
4953[error] 242 | Seq(1,2,3).forall(_ == await(T1.cbi(3)))
4954[error] | ^^^^^^^^^^^^^^^^^
4955[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4956[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:248:10
4957[error] 248 | Seq(1,2,3).forall(_ > await(T1.cbi(0)))
4958[error] | ^^^^^^^^^^^^^^^^^
4959[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)])),List(Typed(SeqLiteral(List(Literal(Constant(1)), Literal(Constant(2)), Literal(Constant(3))),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Int)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4960[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:254:10
4961[error] 254 | Seq().forall(_ == await(T1.cbi(0)))
4962[error] | ^^^^^^^^^^^^
4963[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Nothing]]) or async functions) for qual=Apply(TypeApply(Select(Ident(Seq),apply),List(TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)])),List(Typed(SeqLiteral(List(),TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing)))]))) name = forall, shiftedName=forall_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Nothing]]
4964can't translate tree: {
4965 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
4966 x.maxBy[scala.Int](((_$6: scala.Int) => _$6.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
4967}
4968et=scala.Int
4969[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:316:10
4970[error] 316 | x maxBy ( _ % await(T1.cbi(77)) )
4971[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4972[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = maxBy, shiftedName=maxBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4973can't translate tree: {
4974 val x: scala.Seq[scala.Int] = scala.Predef.intWrapper(1).to(100).toSeq
4975 x.minBy[scala.Int](((_$7: scala.Int) => _$7.%(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(77))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))(scala.math.Ordering.Int)
4976}
4977et=scala.Int
4978[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftIterableOps.scala:324:10
4979[error] 324 | x minBy ( _ % await(T1.cbi(77)) )
4980[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4981[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(x) name = minBy, shiftedName=minBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
4982can't translate tree: {
4983 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
4984 seq.distinctBy[scala.Int](((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(x.length()))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
4985}
4986et=scala.collection.immutable.Seq[java.lang.String]
4987[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:22:22 ---
4988[error] 22 | seq.distinctBy{ x => await(T1.cbi(x.length)) }
4989[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4990[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = distinctBy, shiftedName=distinctBy_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
4991[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:25:48
4992[error] 25 | case Success(s@Seq(a,b,c,d)) => assert( s.filter(_.length == 1).length == 1 )
4993[error] | ^
4994[error] | Not found: s
4995[error] |
4996[error] | longer explanation available when compiling with `-explain`
4997[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:26:39
4998[error] 26 | assert( s.filter(_.length == 2).length == 1 )
4999[error] | ^
5000[error] | Not found: s
5001[error] |
5002[error] | longer explanation available when compiling with `-explain`
5003[error] -- [E006] Not Found Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:27:39
5004[error] 27 | assert( s.filter(_.length == 4).length == 1 )
5005[error] | ^
5006[error] | Not found: s
5007[error] |
5008[error] | longer explanation available when compiling with `-explain`
5009can't translate tree: {
5010 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
5011 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('7')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
5012}
5013et=scala.Int
5014[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:34:8 ----
5015[error] 34 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='7')) }
5016[error] | ^^^^^^^^^^^^^^
5017[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
5018can't translate tree: {
5019 val seq: scala.collection.immutable.Seq[java.lang.String] = scala.Seq.apply[java.lang.String]("1234", "3452", "1", "12", "21", "777777777")
5020 seq.indexWhere(((x: java.lang.String) => cps.Async$package.await[cps.ComputationBound, scala.Boolean, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbt[scala.Boolean](x.charAt(0).==('8')))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound])))
5021}
5022et=scala.Int
5023[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:41:8 ----
5024[error] 41 | seq.indexWhere{ x => await(T1.cbt(x.charAt(0)=='8')) }
5025[error] | ^^^^^^^^^^^^^^
5026[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[String]]) or async functions) for qual=Ident(seq) name = indexWhere, shiftedName=indexWhere_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[java.lang.String]]
5027can't translate tree: {
5028 val seq: scala.collection.immutable.Seq[scala.Int] = scala.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8)
5029 seq.segmentLength(((x: scala.Int) => x.<(cps.Async$package.await[cps.ComputationBound, scala.Int, [T >: scala.Nothing <: scala.Any] =>> cps.ComputationBound[T]](cps.T1.cbi(6))(contextual$2, cps.CpsMonadConversion.identityConversion[cps.ComputationBound]))))
5030}
5031et=scala.Int
5032[error] -- Error: /build/repo/shared/src/test/scala/cps/TestCBS1ShiftSeq.scala:72:8 ----
5033[error] 72 | seq.segmentLength( x => x < await(T1.cbi(6)) )
5034[error] | ^^^^^^^^^^^^^^^^^
5035[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[Int]]) or async functions) for qual=Ident(seq) name = segmentLength, shiftedName=segmentLength_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[scala.Int]]
5036can't translate tree: {
5037 val testContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(clientId, url, cps.vp.VP2.TestContext.$lessinit$greater$default$3)
5038 cps.vp.VP2.tests.foreach[scala.Unit](((test: cps.vp.VP2.Test) => {
5039 scala.Predef.println(_root_.scala.StringContext.apply("running ", "").s(test))
5040 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(testContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
5041 case scala.util.control.NonFatal(ex) =>
5042 if (test.eq(cps.vp.VP2.ExtremeSize).unary_!) {
5043 scala.Predef.println(_root_.scala.StringContext.apply("exception during test: ", " rerunning with trace").s(ex.getMessage()))
5044 val traceContext: cps.vp.VP2.TestContext = cps.vp.VP2.TestContext.apply(testContext.clientId, testContext.url, true)
5045 try cps.Async$package.await[scala.concurrent.Future, scala.Unit, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](test.run(traceContext))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global))) catch {
5046 case scala.util.control.NonFatal(ex) =>
5047 ()
5048 }
5049 } else scala.Predef.println(_root_.scala.StringContext.apply("exception during test ", ", ", "").s(test, ex.getMessage()))
5050 }
5051 }))
5052 scala.Predef.println(_root_.scala.StringContext.apply("summary metrics: ", "").s(testContext))
5053}
5054et=scala.Unit
5055[error] -- Error: /build/repo/shared/src/test/scala/cps/vp/VP2.scala:24:4 --------------
5056[error] 24 | for(test <- tests) {
5057[error] | ^
5058[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[cps.vp.VP2.Test]]) or async functions) for qual=Ident(tests) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[cps.vp.VP2.Test]]
5059[error] 25 | println(s"running ${test}")
5060[error] 26 | try {
5061[error] 27 | await(test.run(testContext))
5062[error] 28 | }catch{
5063[error] 29 | case NonFatal(ex) =>
5064[error] 30 | if !(test eq ExtremeSize) then
5065[error] 31 | println(s"exception during test: ${ex.getMessage} rerunning with trace")
5066[error] 32 | //bug in dotty: https://github.com/lampepfl/dotty/issues/17445
5067[error] 33 | //val traceContext = testContext.copy(trace=true)
5068[error] 34 | val traceContext = TestContext(testContext.clientId, testContext.url, true)
5069[error] 35 | try {
5070[error] 36 | await(test.run(traceContext))
5071[error] 37 | } catch {
5072[error] 38 | case NonFatal(ex) =>
5073[error] 39 | }
5074[error] 40 | else
5075[error] 41 | println(s"exception during test ${test}, ${ex.getMessage}")
5076[error] 42 | }
5077[error] 43 | }
5078[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:38:12
5079[warn] 38 | if (false) then
5080[warn] | ^
5081[warn] | A pure expression does nothing in statement position
5082[warn] 39 | println(s"ctx=${summon[Context]}")
5083[warn] |
5084[warn] | longer explanation available when compiling with `-explain`
5085[warn] -- [E129] Potential Issue Warning: /build/repo/shared/src/test/scala/cpstest/TestNonShiftedContextFunction.scala:56:8
5086[warn] 56 | if (false) then
5087[warn] | ^
5088[warn] | A pure expression does nothing in statement position
5089[warn] 57 | println(s"ctx=${summon[Context]}")
5090[warn] |
5091[warn] | longer explanation available when compiling with `-explain`
5092can't translate tree: {
5093 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
5094 val config: TestReturningExamples.this.Config = api.config
5095 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
5096 val bucket: TestReturningExamples.this.Bucket = items.foldLeft[TestReturningExamples.this.Bucket](TestReturningExamples.this.Bucket.empty)(((`bucketâ‚‚`: TestReturningExamples.this.Bucket, item: TestReturningExamples.this.Item) => {
5097 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
5098 if (itemInfo.available.unary_!) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.+(`bucketâ‚‚`.cost).>(budget)) `bucketâ‚‚`.withMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
5099 val newBucket: TestReturningExamples.this.Bucket = `bucketâ‚‚`.withItem(itemInfo)
5100 if (newBucket.cost.+(config.minItemCost).>(budget)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](newBucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
5101
5102 (newBucket: TestReturningExamples.this.Bucket)
5103 }
5104 }))
5105 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing](_root_.scala.StringContext.apply("No items available: ", "").s(bucket.messages.mkString)): scala.util.Either[scala.Predef.String, TestReturningExamples.this.Bucket]))(`contextual$2â‚‚`) else ()
5106 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.Bucket](bucket)
5107}
5108et=scala.util.Right[scala.Nothing, TestReturningExamples.this.Bucket]
5109[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:82:49
5110[error] 82 | val bucket = items.foldLeft(Bucket.empty){ (bucket, item) =>
5111[error] | ^
5112[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foldLeft, shiftedName=foldLeft_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
5113[error] 83 | val itemInfo = await(api.fetchItemInfo(item))
5114[error] 84 | if (!itemInfo.available) then
5115[error] 85 | bucket.withMessage(s"item ${item.name} is not available")
5116[error] 86 | else if (itemInfo.cost + bucket.cost > budget) then
5117[error] 87 | bucket.withMessage(s"item ${item.name} is out of budget")
5118[error] 88 | else
5119[error] 89 | val newBucket = bucket.withItem(itemInfo)
5120[error] 90 | if (newBucket.cost + config.minItemCost > budget) then
5121[error] 91 | throwReturn(Right(newBucket):Either[String,Bucket])
5122[error] 92 | newBucket
5123[error] 93 | }
5124can't translate tree: {
5125 val userInfo: TestReturningExamples.this.UserInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.UserInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchUserInfo(userId))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
5126 val config: TestReturningExamples.this.Config = api.config
5127 if (userInfo.blacklisted) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("User is blacklisted"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
5128 var remainingBudget: scala.Long = budget
5129 val bucket: TestReturningExamples.this.MutableBucket = TestReturningExamples.this.MutableBucket.empty
5130 items.foreach[scala.Unit](((item: TestReturningExamples.this.Item) => {
5131 val itemInfo: TestReturningExamples.this.ItemInfo = cps.Async$package.await[scala.concurrent.Future, TestReturningExamples.this.ItemInfo, [T >: scala.Nothing <: scala.Any] =>> scala.concurrent.Future[T]](api.fetchItemInfo(item))(contextual$2, cps.monads.toFutureConversion[scala.concurrent.Future, scala.Any](scala.concurrent.ExecutionContext.Implicits.global, cps.monads.FutureAsyncMonad(scala.concurrent.ExecutionContext.Implicits.global)))
5132 if (itemInfo.available.unary_!) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is not available").s(item.name)) else if (itemInfo.cost.>(remainingBudget)) bucket.addMessage(_root_.scala.StringContext.apply("item ", " is out of budget").s(item.name)) else {
5133 bucket.addItem(itemInfo)
5134 remainingBudget = remainingBudget.-(itemInfo.cost)
5135 if (remainingBudget.<(config.minItemCost)) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
5136 }
5137 }))
5138 if (bucket.isEmpty) scala.util.control.NonLocalReturns.throwReturn[scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]]((scala.util.Left.apply[java.lang.String, scala.Nothing]("No items available"): scala.util.Either[scala.Predef.String, TestReturningExamples.this.MutableBucket]))(contextual$5) else ()
5139 scala.util.Right.apply[scala.Nothing, TestReturningExamples.this.MutableBucket](bucket)
5140}
5141et=scala.util.Right[scala.Nothing, TestReturningExamples.this.MutableBucket]
5142[error] -- Error: /build/repo/shared/src/test/scala/cpstest/TestReturningExamples.scala:158:10
5143[error] 158 | for(item <- items) {
5144[error] | ^
5145[error] |Can't find AsyncShift (both given instance shiftedIterableOps in trait AsyncShiftLowPriority1 and given instance shiftedSeqOps in trait AsyncShiftLowPriority1 match type cps.AsyncShift[Seq[TestReturningExamples.this.Item]]) or async functions) for qual=Ident(items) name = foreach, shiftedName=foreach_async, askedShiftedType=cps.AsyncShift[scala.collection.immutable.Seq[TestReturningExamples.this.Item]]
5146[error] 159 | val itemInfo = await(api.fetchItemInfo(item))
5147[error] 160 | if (!itemInfo.available) then
5148[error] 161 | bucket.addMessage(s"item ${item.name} is not available")
5149[error] 162 | else if (itemInfo.cost > remainingBudget) then
5150[error] 163 | bucket.addMessage(s"item ${item.name} is out of budget")
5151[error] 164 | else
5152[error] 165 | bucket.addItem(itemInfo)
5153[error] 166 | remainingBudget = remainingBudget - itemInfo.cost
5154[error] 167 | if (remainingBudget < config.minItemCost) then
5155[error] 168 | throwReturn(Right(bucket):Either[String,MutableBucket])
5156[error] 169 | }
5157[warn] two warnings found
5158[error] 20 errors found
5159[error] (cpsJS / Test / compileIncremental) Compilation failed
5160Starting build for ProjectRef(file:/build/repo/,compilerPlugin) (dotty-cps-async-compiler-plugin)...
5161Compile scalacOptions: List(-source:3.7-migration, -Wconf:msg=can be rewritten automatically under:s)
5162[info] Wrote /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/dotty-cps-async-compiler-plugin_3-0.9.22.pom
5163[info] :: delivering :: com.github.rssh#dotty-cps-async-compiler-plugin_3;0.9.22 :: 0.9.22 :: release :: Sat Jan 18 01:10:04 CET 2025
5164[info] delivering ivy file to /build/repo/compiler-plugin/target/scala-3.7.0-RC1-bin-20250116-8b27ecb-NIGHTLY/ivy-0.9.22.xml
5165[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/poms/dotty-cps-async-compiler-plugin_3.pom (non-SNAPSHOT)
5166[warn] You need to remove it from the cache manually to take effect.
5167[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/poms/dotty-cps-async-compiler-plugin_3.pom.sha1 (non-SNAPSHOT)
5168[warn] You need to remove it from the cache manually to take effect.
5169[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/poms/dotty-cps-async-compiler-plugin_3.pom.md5 (non-SNAPSHOT)
5170[warn] You need to remove it from the cache manually to take effect.
5171[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/poms/dotty-cps-async-compiler-plugin_3.pom
5172[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/jars/dotty-cps-async-compiler-plugin_3.jar (non-SNAPSHOT)
5173[warn] You need to remove it from the cache manually to take effect.
5174[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/jars/dotty-cps-async-compiler-plugin_3.jar.sha1 (non-SNAPSHOT)
5175[warn] You need to remove it from the cache manually to take effect.
5176[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/jars/dotty-cps-async-compiler-plugin_3.jar.md5 (non-SNAPSHOT)
5177[warn] You need to remove it from the cache manually to take effect.
5178[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/jars/dotty-cps-async-compiler-plugin_3.jar
5179[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/srcs/dotty-cps-async-compiler-plugin_3-sources.jar (non-SNAPSHOT)
5180[warn] You need to remove it from the cache manually to take effect.
5181[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/srcs/dotty-cps-async-compiler-plugin_3-sources.jar.sha1 (non-SNAPSHOT)
5182[warn] You need to remove it from the cache manually to take effect.
5183[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/srcs/dotty-cps-async-compiler-plugin_3-sources.jar.md5 (non-SNAPSHOT)
5184[warn] You need to remove it from the cache manually to take effect.
5185[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/srcs/dotty-cps-async-compiler-plugin_3-sources.jar
5186[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/docs/dotty-cps-async-compiler-plugin_3-javadoc.jar (non-SNAPSHOT)
5187[warn] You need to remove it from the cache manually to take effect.
5188[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/docs/dotty-cps-async-compiler-plugin_3-javadoc.jar.sha1 (non-SNAPSHOT)
5189[warn] You need to remove it from the cache manually to take effect.
5190[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/docs/dotty-cps-async-compiler-plugin_3-javadoc.jar.md5 (non-SNAPSHOT)
5191[warn] You need to remove it from the cache manually to take effect.
5192[info] published dotty-cps-async-compiler-plugin_3 to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/docs/dotty-cps-async-compiler-plugin_3-javadoc.jar
5193[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/ivys/ivy.xml (non-SNAPSHOT)
5194[warn] You need to remove it from the cache manually to take effect.
5195[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/ivys/ivy.xml.sha1 (non-SNAPSHOT)
5196[warn] You need to remove it from the cache manually to take effect.
5197[warn] Attempting to overwrite /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/ivys/ivy.xml.md5 (non-SNAPSHOT)
5198[warn] You need to remove it from the cache manually to take effect.
5199[info] published ivy to /root/.ivy2/local/com.github.rssh/dotty-cps-async-compiler-plugin_3/0.9.22/ivys/ivy.xml
5200
5201************************
5202Build summary:
5203[{
5204 "module": "dotty-cps-async",
5205 "compile": {"status": "ok", "tookMs": 686, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5206 "doc": {"status": "ok", "tookMs": 123, "files": 631, "totalSizeKb": 30632},
5207 "test-compile": {"status": "failed", "failureContext": {"type": "buildError", "reasons": ["Compilation failed"]}, "tookMs": 21722, "warnings": 22, "errors": 20, "sourceVersion": "3.7-migration"},
5208 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
5209 "publish": {"status": "ok", "tookMs": 595},
5210 "metadata": {
5211 "crossScalaVersions": ["2.12.19"]
5212}
5213},{
5214 "module": "dotty-cps-async-loom",
5215 "compile": {"status": "ok", "tookMs": 114, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5216 "doc": {"status": "ok", "tookMs": 128, "files": 340, "totalSizeKb": 6329},
5217 "test-compile": {"status": "ok", "tookMs": 165, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5218 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
5219 "publish": {"status": "ok", "tookMs": 193},
5220 "metadata": {
5221 "crossScalaVersions": ["2.12.19"]
5222}
5223},{
5224 "module": "dotty-cps-async-logic",
5225 "compile": {"status": "ok", "tookMs": 115, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5226 "doc": {"status": "ok", "tookMs": 115, "files": 361, "totalSizeKb": 7816},
5227 "test-compile": {"status": "ok", "tookMs": 139, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5228 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
5229 "publish": {"status": "ok", "tookMs": 192},
5230 "metadata": {
5231 "crossScalaVersions": ["2.12.19"]
5232}
5233},{
5234 "module": "dotty-cps-async",
5235 "compile": {"status": "ok", "tookMs": 133, "warnings": 1, "errors": 0, "sourceVersion": "3.7-migration"},
5236 "doc": {"status": "ok", "tookMs": 90, "files": 639, "totalSizeKb": 31595},
5237 "test-compile": {"status": "failed", "failureContext": {"type": "buildError", "reasons": ["Compilation failed"]}, "tookMs": 5716, "warnings": 2, "errors": 20, "sourceVersion": "3.7-migration"},
5238 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
5239 "publish": {"status": "ok", "tookMs": 225},
5240 "metadata": {
5241 "crossScalaVersions": ["2.12.19"]
5242}
5243},{
5244 "module": "dotty-cps-async-compiler-plugin",
5245 "compile": {"status": "ok", "tookMs": 225, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5246 "doc": {"status": "ok", "tookMs": 202, "files": 479, "totalSizeKb": 13115},
5247 "test-compile": {"status": "ok", "tookMs": 228, "warnings": 0, "errors": 0, "sourceVersion": "3.7-migration"},
5248 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
5249 "publish": {"status": "ok", "tookMs": 270},
5250 "metadata": {
5251 "crossScalaVersions": ["2.12.19"]
5252}
5253}]
5254************************
5255[error] Scala3CommunityBuild$ProjectBuildFailureException: 2 module(s) finished with failures: dotty-cps-async, dotty-cps-async
5256[error] (Global / runBuild) Scala3CommunityBuild$ProjectBuildFailureException: 2 module(s) finished with failures: dotty-cps-async, dotty-cps-async
5257[error] Total time: 59 s, completed Jan 18, 2025, 1:10:04 AM
5258Exhausted retries limit