Open philwalk opened 11 months ago
@odersky It is failing on object caps does not have a member type Cap
did something change there recently?
We might be trying to read caps.Cap
on a version that still has caps.Root
(see https://github.com/lampepfl/dotty/pull/18463/commits/803e06a1aa1ef8b56102b0aabdfba60efa5c2503).
In general, we should not be using the 3.3
library with 3.4
compiler. We should check this when we load the compiler.
Compiler version
Minimized code
The scala script below crashes the compiler if called as described. Name the script
./vsortBug.sc
and attempt to run it with this bash script:I have a classpath
@file
with dozens of entries, and I eventually discovered a compiler lib file from an incompatible version,scala3-library_3-3.3.1.jar
towards the end, so this is not a compiler bug, although it might be worthwhile to immunize against this category of bug somehow.It's not surprising that launching the script with
scala3-3.4.0-RC1
leads to a crash, although it took awhile to figure out root cause.Possible fixes: when incompatible compiler jars appear in the classpath:
If the runtime version
scala3-library_3-3.4.0-RC1.jar
appears earlier in theclasspath
, no crash.Output (click arrow to expand)