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
TOML: ignore path references with wildcards to avoid false positives #7403
Conversation
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Outdated
Show resolved
Hide resolved
ae67ea0
to
3f36339
Compare
I see. I changed it so that any references after and including the first glob reference are ignored inside workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I changed it so that any references after and including the first glob reference are ignored inside workspace members.
I'm not sure how to use thecreateRegex
function though, it didn't seem to create a regex that would recognize a glob pattern.
Sorry for the confusion. I meant that createRegex
can be used as an example of parsing implementation if we need it. But parsing reduced to several contains
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Outdated
Show resolved
Hide resolved
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Outdated
Show resolved
Hide resolved
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Outdated
Show resolved
Hide resolved
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Outdated
Show resolved
Hide resolved
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Show resolved
Hide resolved
toml/src/main/kotlin/org/rust/toml/resolve/CargoTomlFileReferenceProvider.kt
Outdated
Show resolved
Hide resolved
3e0733f
to
4d14600
Compare
4d14600
to
98d17c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bors r+
7403: TOML: ignore path references with wildcards to avoid false positives r=Undin a=Kobzol Fixes: #7402 changelog: Ignore paths with wildcards in TOML to avoid false positives. 7427: Reset crates local index state if index is empty r=Undin a=avrong Reset the last commit hash of the index if the index PersistentHashMap size is 0. This will fix the issues when the index file has been deleted or did not move with the state, e.g. when the latest IDE release copied the state without index map 7449: REF: Handle root modules in "Promote module to directory" refactoring r=ortem a=dima74 Fixes #7041 changelog: Correctly handle root modules in "Promote module to directory" refactoring Co-authored-by: Jakub Beránek <berykubik@gmail.com> Co-authored-by: Aleksei Trifonov <avrong@avrong.me> Co-authored-by: Dmitry Murzin <diralik@yandex.ru>
This PR was included in a batch that timed out, it will be automatically retried |
bors retry |
Build succeeded: |
Fixes: #7402
changelog: Ignore paths with wildcards in TOML to avoid false positives.