-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
SIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.bugSomething isn't workingSomething isn't working
Description
Version(s)
0.1.18
Describe the bug
Scala-cli tries to read classfiles from the current directory when not asked for it
To Reproduce
mkdir xyz
cd xyz
echo '@main def run() = println("Hello!")' > Hello.scala
scala-cli compile -d out -S 3.2.1 Hello.scala
cp out/* .
scala-cli repl -S 3.1.3scala> println()Output:
error while loading Hello$package$,
class file Hello$package.class is broken, reading aborted with class dotty.tools.tasty.UnpickleException
TASTy signature has wrong version.
expected: {majorVersion: 28, minorVersion: 1}
found : {majorVersion: 28, minorVersion: 2}
This TASTy file was produced by a more recent, forwards incompatible release.
To read this TASTy file, please upgrade your tooling.
The TASTy file was produced by Scala 3.2.1.
1 error found
Expected behaviour
Scala-cli should ignore classfiles in the current directory unless they are explicitly added to the classpath. scala command itself doesn't have this problem.
Metadata
Metadata
Assignees
Labels
SIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done