scalac-profiling icon indicating copy to clipboard operation
scalac-profiling copied to clipboard

NPE when starting sbt console with scalac-profiling

Open anish749 opened this issue 5 years ago • 1 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 avatar May 07 '19 09:05 anish749

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

mikla avatar Feb 03 '21 20:02 mikla