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

Failed to run scalafix with ProcedureSyntax, fix.scala213.ExplicitNullaryEtaExpansion, fix.scala213.ParensAroundLambda, fix.scala213.ExplicitNonNullaryApply, fix.scala213.Any2StringAdd on because missing symbol: jdk.internal.HotSpotIntrinsicCandidate #419

Open
lakinwecker opened this issue Aug 5, 2023 · 1 comment

Comments

@lakinwecker
Copy link

I am trying to use this tool to port a project to 2.13.11 (with warnings as errors). I have followed the instructions at https://scalacenter.github.io/scala-3-migration-guide/docs/tooling/scala-3-migrate-plugin.html but am running into two errors. If I use jdk18+, I get an error about incompatible class version numbers. If I used jdk 17, I get:
Failed to run scalafix with ProcedureSyntax, fix.scala213.ExplicitNullaryEtaExpansion, fix.scala213.ParensAroundLambda, fix.scala213.ExplicitNonNullaryApply, fix.scala213.Any2StringAdd on /home/lakin/work-repos/playstrategy/lila/modules/tv/src/main/TvTrouper.scala because missing symbol: jdk.internal.HotSpotIntrinsicCandidate

Full log here: https://gist.github.com/lakinwecker/932d5d46c6eaf832777c971892f7bfbf

Unsure if I'm using the wrong jdk version, or if a dependency is using the wrong jdk version. Note that I have only run the migrate-syntax tv command so far.

@adpi2
Copy link
Member

adpi2 commented Oct 4, 2023

Thanks for reporting this issue.

Unfortunately I could not reproduce it. I tried to run migrate-syntax on OpenJDK 18 and it worked fine. I tried on the newer version of the plugin and the older.

Could you maybe try to run the latest version of the plugin, 0.6.1, to see if it fixes the error? Otherwise what is your Java distribution and version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants