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

Add regression test for issue 18726 #20318

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Conversation

rochala
Copy link
Contributor

@rochala rochala commented May 2, 2024

Closes #18726

[test_windows_full]

@rochala rochala requested a review from tgodzik May 2, 2024 08:54
@rochala rochala force-pushed the i18726-regression-test branch 2 times, most recently from 76a68cb to 5bb98db Compare May 2, 2024 09:03
@rochala rochala force-pushed the i18726-regression-test branch from 5bb98db to f5dc97f Compare August 28, 2024 16:55
@rochala rochala requested a review from tgodzik August 28, 2024 16:57
presentation-compiler/test/dotty/tools/pc/utils/JRE.scala Outdated Show resolved Hide resolved
check(
"""
|object A {
| "".repea@@
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this actually working? I think I actually had to turn it off and -release options is removed:

private val forbiddenDoubleOptions = Set("-release")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, but I don't understand the question. Are you asking about how the test is implemented or how are we handling the release flag ?

Copy link
Contributor

Choose a reason for hiding this comment

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

How are the tests working? And maybe we need to stop removing the flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I guess it is because I passed it as -release:8 and it is a single argument on the list, thus it is not removed ? We should remove this line tho beacuse -release 8 is a valid scala flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you remember why we added this check in the first place ?

Copy link
Contributor

Choose a reason for hiding this comment

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

It might have been interfering with some other options and it seemed not important for frontend phases scalameta/metals#3812

Copy link
Contributor

Choose a reason for hiding this comment

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

I just tested it and seems to work ok with that removed.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@tgodzik tgodzik merged commit d2bb85d into scala:main Sep 13, 2024
28 checks passed
@WojciechMazur WojciechMazur added this to the 3.6.0 milestone Oct 8, 2024
WojciechMazur added a commit that referenced this pull request Dec 4, 2024
Backports #20318 to the 3.3.5.

PR submitted by the release tooling.
[skip ci]
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.

Release flag doesn't make compiler suggest correct completions
3 participants