Skip to content

"Could not find TASTY file" error when tasty/class files already exist #11644

Closed
@griggt

Description

@griggt

Compiler version

3.0.0-RC1 and 3.0.0-RC2-bin-SNAPSHOT-git-086d1a8
(no issue with 3.0.0-M3)

Minimized code

// hello.scala
@main def hello = println("hello, world")

Output

$ ls -l
total 4
-rw-r--r-- 1 tgrigg tgrigg 43 Mar  7 15:34 hello.scala

$ scalac -version
Scala compiler version 3.0.0-RC1 -- Copyright 2002-2021, LAMP/EPFL

$ scalac hello.scala

$ ls -l
total 24
-rw-r--r-- 1 tgrigg tgrigg 757 Mar  7 15:35 'hello$package$.class'
-rw-r--r-- 1 tgrigg tgrigg 267 Mar  7 15:35 'hello$package.class'
-rw-r--r-- 1 tgrigg tgrigg 554 Mar  7 15:35 'hello$package.tasty'
-rw-r--r-- 1 tgrigg tgrigg 882 Mar  7 15:35  hello.class
-rw-r--r-- 1 tgrigg tgrigg  43 Mar  7 15:34  hello.scala
-rw-r--r-- 1 tgrigg tgrigg 471 Mar  7 15:35  hello.tasty

$ scalac hello.scala
Could not find TASTY file hello.tasty under ./hello.class
1 error found

Expectation

No error

Notes

Seems to only be a problem when the class/tasty files are in the current directory.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions