Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some macro generated names break analysis cache format #3666

Closed
jilen opened this issue Oct 25, 2017 · 1 comment
Closed

Some macro generated names break analysis cache format #3666

jilen opened this issue Oct 25, 2017 · 1 comment

Comments

@jilen
Copy link

jilen commented Oct 25, 2017

Following macro generated (generated with quill) names contain \n

/home/xxx/Workspace/yyy/server/modules/wheel/app/services/wheel/WheelService.scala -> scala.Some.apply[Int](if (status)
  1
else
  0)
/home/xxx/Workspace/yyy/app/services/NewFormPartService.scala -> {
  <artifact> val x$47: Some[Long] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Long](seq);
  <artifact> val x$48: Long = part.copy$default$1;
  <artifact> val x$49: String = part.copy$default$2;
  <artifact> val x$50: Boolean = part.copy$default$3;
  <artifact> val x$51: Boolean = part.copy$default$4;
  <artifact> val x$52: Boolean = part.copy$default$5;
  <artifact> val x$53: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$6;
  <artifact> val x$54: Boolean = part.copy$default$7;
  <artifact> val x$55: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$8;
  <artifact> val x$56: io.circe.Json = part.copy$default$9;
  <artifact> val x$57: Option[io.circe.Json] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$10;
  <artifact> val x$58: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$11;
  <artifact> val x$59: String = part.copy$default$12;
  <artifact> val x$60: org.joda.time.DateTime = part.copy$default$13;
  <artifact> val x$61: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$14;
  <artifact> val x$62: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$15;
  <artifact> val x$63: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$16;
  <artifact> val x$64: Seq[String] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$17;
  <artifact> val x$65: Option[io.circe.Json] @scala.reflect.internal.annotations.uncheckedBounds = part.copy$default$19;
  <artifact> val x$66: org.joda.time.DateTime = part.copy$default$20;
  <artifact> val x$67: org.joda.time.DateTime = part.copy$default$21;
  part.copy(x$48, x$49, x$50, x$51, x$52, x$53, x$54, x$55, x$56, x$57, x$58, x$59, x$60, x$61, x$62, x$63, x$64, x$47, x$65, x$66, x$67)
}.tradeStatus

It will break previous analysis parsing(used names part) during sbt startup

Related SO link

sbt version: 0.13.x, 1.0.x

@jilen jilen changed the title Some macro generated name break analysis cache format Some macro generated names break analysis cache format Oct 25, 2017
@eed3si9n
Copy link
Member

Thanks for the report.

@jilen jilen closed this as completed Jan 12, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants