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

chore: Add more information about classpath and compiler options when severe error happens #5986

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Dec 29, 2023

Related to #5272

)(implicit ec: ExecutionContextExecutor, rc: ReportContext) {

def this(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a difference between this and giving a default value to the additionalReportingData arg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems there is for the JVM, it fails in with the default argument.

@@ -64,6 +64,12 @@ case class ScalaPresentationCompiler(
config,
sh,
() => new Scala3CompilerWrapper(newDriver),
() => s"""|Scala version: $scalaVersion
|Classpath:
|${classpath.mkString(", ")}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you want to have that missing, exists info for classpath here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catchm added.

@tgodzik tgodzik merged commit e3d8eac into scalameta:main Jan 2, 2024
25 checks passed
@tgodzik tgodzik deleted the add-more-data branch January 2, 2024 12:53
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

Successfully merging this pull request may close these issues.

2 participants