scalacenter / scalac-profiling

Compilation profiling tool for Scala 2 projects

Home Page:https://scalacenter.github.io/scalac-profiling/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPE when starting sbt console with scalac-profiling

anish749 opened this issue · comments

I was trying out this guide to profile a project.

I added the following in sbt

  "-Ycache-plugin-class-loader:last-modified",
  "-Xplugin:$PATH_TO_PLUGIN_JAR",
  "-P:scalac-profiling:no-profiledb",
  "-P:scalac-profiling:show-profiles",
  "-P:scalac-profiling:sourceroot:$BLOOP_CODEBASE_DIRECTORY"

When I do console from sbt shell, I get a NPE here
as _.file returns null

@anish749 have you replaced PATH_TO_PLUGIN_JAR and BLOOP_CODEBASE_DIRECTORY with correct values?