Skip to content
New issue

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

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

Already on GitHub? # to your account

Bad interaction between autoclonetype and the compiler plugin #1803

Closed
jackkoenig opened this issue Mar 5, 2021 · 0 comments · Fixed by #1804
Closed

Bad interaction between autoclonetype and the compiler plugin #1803

jackkoenig opened this issue Mar 5, 2021 · 0 comments · Fixed by #1804

Comments

@jackkoenig
Copy link
Contributor

I haven't been able to identify exactly what the issue is, but sometimes you can get a NullPointerException in autoclonetype when using the compiler plugin. The issue shows up in v3.4.1 and v3.4.2.

Showing issue: https://scastie.scala-lang.org/urTiFHCRRB6mWWUFjKJ6xw
v3.4.2 no plugin no issue: https://scastie.scala-lang.org/Q9cb7NnETDq8p6B2tkWVaA
v3.4.1 plugin has issue: https://scastie.scala-lang.org/awinn0u7QeCr9GyMQkLHNw
v3.4.0 plugin no issue: https://scastie.scala-lang.org/nwuijlIuQDChB3zSjEi8cQ

If you hit Download on Scastie, you can reproduce locally. Notably, Scastie adds partial unification and kind projector plugins which I think are part of the problem.

I believe the issue is also related to #1660 (released in v3.4.1) which made autoNameRecursively lazy.

I believe this issue will be fixed by my forthcoming compiler plugin autoclonetype

Type of issue: bug report

Impact: no functional change

Development Phase: request

Other information

If the current behavior is a bug, please provide the steps to reproduce the problem:

What is the current behavior?

What is the expected behavior?

Please tell us about your environment:

What is the use case for changing the behavior?

@jackkoenig jackkoenig mentioned this issue Mar 5, 2021
14 tasks
@jackkoenig jackkoenig mentioned this issue Mar 16, 2021
14 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant