Skip to content

workaround for scala completion bug #4791

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

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

mpollmeier
Copy link
Contributor

on stage: remove module-info.class from dependency jars - a hacky workaround for a
scala3 compiler bug: scala/scala3#20421

Fixes #4625

on stage: remove module-info.class from dependency jars - a hacky workaround for a
scala3 compiler bug: scala/scala3#20421

Fixes #4625
@mpollmeier mpollmeier requested a review from maltek July 22, 2024 12:39
.forEach { jar =>
val zipFs = FileSystems.newFileSystem(jar)
zipFs.getRootDirectories.forEach { zipRootDir =>
Files.list(zipRootDir).filter(_.toString == "/module-info.class").forEach { moduleInfoClass =>
Copy link
Contributor

Choose a reason for hiding this comment

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

does this comparison with a / work on Windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably yes, because it's within a java ZipFileSystem. I'll give it a quick whirl in my VM though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

grafik
just updating crowdstrike, won't be long :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes it works on windows

Copy link
Contributor

@maltek maltek left a comment

Choose a reason for hiding this comment

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

are we certain that none of the JARs with such files will ever be signed? (If not, we'd also have to strip the signatures...)

@mpollmeier
Copy link
Contributor Author

are we certain that none of the JARs with such files will ever be signed? (If not, we'd also have to strip the signatures...)

in that case we'd adapt the logic, but my hope is that the compiler bug is fixed by then...

@mpollmeier mpollmeier requested a review from maltek July 22, 2024 14:11
@mpollmeier mpollmeier merged commit bd38a15 into master Jul 22, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the michael/workaround-for-scala-completion-bug branch July 25, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants