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] handle java packages that does not match directory structure #312

Merged

Conversation

tpasternak
Copy link
Contributor

Previously, the calculateJVMSourceRoot function was falling back to parent of the source path only in case the package name was longer than the directory hierarchy. But in case the package mismatched the directory structure, but if it was shorter than directory hierarchy length, it returned incorrect value.

Copy link
Member

@abrams27 abrams27 left a comment

Choose a reason for hiding this comment

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

please update changelog and we can merge

@tpasternak tpasternak force-pushed the handle-package-and-directory-mismatch branch 3 times, most recently from bc67bde to 31ab5a2 Compare December 21, 2022 13:50
Previously, the `calculateJVMSourceRoot` function was falling back to
parent of the `source` path only in case the package name was longer than
the directory hierarchy. But in case the package mismatched the directory structure, but if it was shorter than directory hierarchy length, it returned incorrect value.
@tpasternak tpasternak force-pushed the handle-package-and-directory-mismatch branch 2 times, most recently from 8734027 to a412840 Compare December 21, 2022 15:42
@tpasternak tpasternak marked this pull request as ready for review December 21, 2022 15:43
@abrams27 abrams27 changed the title Handle java packages that does not match directory structure [fix] handle java packages that does not match directory structure Dec 21, 2022
@tpasternak tpasternak merged commit 757f2c1 into JetBrains:master Dec 21, 2022
@tpasternak tpasternak deleted the handle-package-and-directory-mismatch branch December 21, 2022 16:15
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.

None yet

2 participants