Skip to content

TastyInspector.inspectTastyFilesInJar doesn't inspect jar #11696

Closed
@dos65

Description

@dos65

Compiler version

3.0.0-RC1

Minimized code

I took the code from some files in tests directory.

The only difference is that test files from dotty repo extract jars somehow from classpath.
I tried to run it against local jars.

import scala.quoted.*
import scala.tasty.inspector.*

@main def Test = {
  val inspector = new Inspector {
    def inspect(using Quotes)(tastys: List[Tasty[quotes.type]]): Unit = {
      println("Size:" + tastys.size.toString)
      for tasty <- tastys do
        tasty.ast.show(using quotes.reflect.Printer.TreeStructure)
    }
  }

  val jar = "$any_jar_with_tasty" // for example `cs fetch org.scala-lang:scala3-compiler_3.0.0-RC1:3.0.0-RC1 | grep scala3-compiler`
  TastyInspector.inspectTastyFilesInJar(jar)(inspector)
}

Output

Size: 0

Expectation

scala3-compiler has tasty files so there should be some Tasty passed into inspect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions