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

Migration failed because of null #317

Open
Sophietje opened this issue Feb 15, 2022 · 0 comments
Open

Migration failed because of null #317

Sophietje opened this issue Feb 15, 2022 · 0 comments

Comments

@Sophietje
Copy link

Hi! I've been following the documentation to migrate a project but I'm running into a problem in the final step. The project consists of a core project which depends on 3 subprojects. I have succesfully migrated the 3 subprojects and executed the migrate-libs/scalacOptions/syntax for the core project. Unfortunately, the migrate step fails with the following error (I've truncated the error trace):

2022.02.15 10:16:04 [INFO] migrate.Scala3Migrate.compileInScala3:133 - Compilation with scala 3 failed.
Please fix the errors above.
[error]
[error] Migration of core / Compile has failed
[error] because of null
[error] dotty.tools.dotc.printing.Formatting$StringFormatter.showArg(Formatting.scala:39)
[error] dotty.tools.dotc.printing.Formatting$StringFormatter.treatArg(Formatting.scala:49)
[error] dotty.tools.dotc.printing.Formatting$StringFormatter.$anonfun$2(Formatting.scala:62)
...
[error] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] java.lang.Thread.run(Thread.java:748)
[error] 
[error] (internalMigrate) 
[error] Migration of core / Compile has failed
[error] because of null
[error] dotty.tools.dotc.printing.Formatting$StringFormatter.showArg(Formatting.scala:39)
[error] dotty.tools.dotc.printing.Formatting$StringFormatter.treatArg(Formatting.scala:49)
[error] dotty.tools.dotc.printing.Formatting$StringFormatter.$anonfun$2(Formatting.scala:62)
...

Possibly related is the following issue: scala/scala3#13440

I'm not sure how to continue the migration, so if you have any ideas on how to proceed that would be greatly appreciated!

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

1 participant