Skip to content

Show the command that needs to be run when SwiftSyntax files don't match #449

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
May 24, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 23, 2022

This error message will show up if someone modifies the syntax definition files in the main swift repo without modifying the generated SwiftSyntax files accordingly. Tell them what to do in order to fix the problem.

rdar://89777232

@ahoppen ahoppen requested a review from bnbarham May 23, 2022 14:29
@ahoppen
Copy link
Member Author

ahoppen commented May 23, 2022

@swift-ci Please test

build-script.py Outdated
"gyb-files and recommit them."
"gyb-files using the following command, open a PR to the "
"SwiftSyntax project and merge it alongside the main PR."
"$ swift-syntax/build-script.py --degyb-only --toolchain whatever"
Copy link
Contributor

@bnbarham bnbarham May 23, 2022

Choose a reason for hiding this comment

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

Not sure if there's a brief way to say this, but it could be worth noting that it doesn't need to be a toolchain. Ie. /path/to/swift-build/ will generally work.

Even if you don't, I think something pathy instead of "whatever" would be better. Eg. /path/to/toolchain

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you think about the following?

swift-syntax/build-script.py --degyb-only --toolchain /dev/null

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah. I did not realize that the toolchain didn't matter. If that's too hard to fix my preference would be "ignored".

@ahoppen ahoppen force-pushed the pr/document-degyb-only-command branch from c76eba6 to 107f29e Compare May 23, 2022 16:50
This error message will show up if someone modifies the syntax definition files in the main swift repo without modifying the generated SwiftSyntax files accordingly. Tell them what to do in order to fix the problem.

rdar://89777232
@ahoppen ahoppen force-pushed the pr/document-degyb-only-command branch from 107f29e to 701443d Compare May 23, 2022 16:54
@ahoppen
Copy link
Member Author

ahoppen commented May 23, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit 66dd598 into swiftlang:main May 24, 2022
@ahoppen ahoppen deleted the pr/document-degyb-only-command branch May 24, 2022 09:20
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
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