Skip to content

ModuleInterface: rephrase remark message when acquiring lock file failed #34220

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

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Oct 7, 2020

The original remark message “could not acquire lock file for module interface” sounds too severe.
It may confuse users that this is a serious issue. We should rephrase it to a less obtrusive one.

rdar://70055223

The original remark message “could not acquire lock file for module interface” sounds too severe.
It may confuse users that this is a serious issue. We should rephrase it to a less obtrusive one.

rdar://70055223
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Oct 7, 2020

@swift-ci please smoke test

@nkcsgexi nkcsgexi requested review from beccadax and xymus October 7, 2020 17:46
@@ -393,7 +393,7 @@ ERROR(error_creating_remark_serializer,none,
"error while creating remark serializer: '%0'", (StringRef))

REMARK(interface_file_lock_failure,none,
"could not acquire lock file for module interface '%0'", (StringRef))
"building module interface without lock file", ())
Copy link
Contributor

Choose a reason for hiding this comment

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

That's much less scary, I like it!

Would it be useful to say what is the drawback here, like "this may oversubscribe the CPU"? But I'm not sure if it would be reassuring knowing why me remark on lock files or bring more confusion tbh.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I don't think this additional information offers much value to the users.

@nkcsgexi nkcsgexi merged commit ca4ce56 into swiftlang:main Oct 8, 2020
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.

2 participants