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

Fix invisible packages for module names with space #3019

Merged
merged 1 commit into from May 31, 2023

Conversation

IgnatBeresnev
Copy link
Member

@IgnatBeresnev IgnatBeresnev commented May 30, 2023

Fixes #3011

Read my comment to understand what exactly the problem was: #3011 (comment)

There are better ways to resolve this problem, but this is the only solution that I could think of that wouldn't lead to a lot of other regressions and problems (including for Gradle users), because the value of scopeId is used in other parts of the code as well, such as sorting and anchor links, so changing it would lead to regression in behaviour.

One could argue that module names should not contain spaces - I would agree, but the moduleName property is used as the parent project name, so the desire to change it to something human-readable is quite understandable, and if we fix it know it's likely going to lead to bug reports. It really needs to be a separate property..

Ideally, a better solution should be implemented as part of #2779 - the current logic is quite error-prone and difficult to navigate..

@IgnatBeresnev IgnatBeresnev requested a review from atyrin May 30, 2023 17:15
Comment on lines -985 to -986
private val ContentNode.sourceSetsFilters: String
get() = sourceSets.sourceSetIDs.joinToString(" ") { it.toString() }
Copy link
Member Author

Choose a reason for hiding this comment

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

Before every table-row, there's an invisible link - I think it's used by the anchor link to focus on the right row. This property was used for the filter value in it, but I couldn't understand if it was actually needed to be present - made no difference upon testing.

2023-05-30_18-09-35

Copy link
Contributor

@atyrin atyrin left a comment

Choose a reason for hiding this comment

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

👌

@IgnatBeresnev IgnatBeresnev merged commit 63bed7c into master May 31, 2023
11 checks passed
@IgnatBeresnev IgnatBeresnev deleted the 3011-module-name-with-space branch May 31, 2023 11:53
IgnatBeresnev added a commit that referenced this pull request Jun 1, 2023
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.

Custom module name leads to hidden packages for maven runner
2 participants