Open som-snytt opened 2 years ago
I'm able to reproduce the problem on MacOS by starting with a clean checkout and then doing sbt dist/pack
followed by chmod +x dist/bin/scalac
and finally ./dist/bin/scalac -version
if I edit dist/bin/scalac
and add -v
so I can see what it's doing, then I see
"/usr/bin/java" -Xmx768m -Xms768m -classpath ":::::::::::::" -Dscala.usejavacp=true -Dscala.home="/Users/tisue/scala3/dist" dotty.tools.MainGenericCompiler '-version'
all those colons seem like the culprit
somewhat related: https://github.com/scala/scala3/pull/19894 provides alternative scripts
perhaps dist/bin/scalac
has bitrotted since compiler developers probably normally use the scalac
task in sbt?
Not a Scala 3 contributor, but I use bin/scalac
, which is slow but effective for occasional use.
~/projects/dotty/bin/scalac
Compiler version
Latest
Minimized code
Scala 2 repo:
Output
Scala 3 repo:
However, release versions work
Expectation
Just work.
Also we need to pun on
dist/bin
anddust/bin
.