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

Truncate standalone test files instead of removing #2778

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

ChrisDenton
Copy link
Collaborator

Attempts to fix #2777 by truncating the test files instead of removing them. This may help avoid an endless loop in rust-analyzer (see also rust-lang/rust-analyzer#16250).

cc @RalfJung would you be able to test if this helps?

@RalfJung
Copy link

RalfJung commented Jan 7, 2024

Yes that does seem to fix the endless loop. :)

@kennykerr
Copy link
Collaborator

I can't repro that nightly warning, but I fixed it here: b5e5000

If you merge master you should be good to go.

kennykerr
kennykerr previously approved these changes Jan 7, 2024
Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Maybe a comment about this being a workaround for rust-analyzer as I'm bound to forget why this is used rather than the simpler remove_file. 😊

@ChrisDenton
Copy link
Collaborator Author

Thanks for testing! I've added a comment to explain why we're doing this.

Co-Authored-By: Kenny Kerr <kenny@kennykerr.ca>
riverar
riverar previously approved these changes Jan 8, 2024
@kennykerr kennykerr merged commit 3999d7d into microsoft:master Jan 8, 2024
35 checks passed
@ChrisDenton ChrisDenton deleted the trunacate branch January 8, 2024 17:04
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.

Opening this crate in vscode on Linux leads to files being changed and an endless build loop
4 participants