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

Test Pull Request #251

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Test Pull Request #251

wants to merge 1 commit into from

Conversation

shahmishal
Copy link
Member

No description provided.

@shahmishal
Copy link
Member Author

@swift-ci test

@shahmishal
Copy link
Member Author

swift-syntax/Sources/SwiftSyntax/RawSyntax.swift:120:45: error: value of type 'swiftparse_token_data_t' has no member 'range'

@allevato is this known issue with main branch?

@allevato
Copy link
Collaborator

@shahmishal Thanks for getting this wired up!

We are aware of some upstream changes that we haven't picked up yet in swift-format, but I would expect most of them to be around syntax node changes that we haven't adopted (like places where actor can appear now). I wouldn't expect to see errors when compiling the swift-syntax dependency... maybe @ahoppen or @akyrtzi has some insight? Could our build script be incorrect?

@ahoppen
Copy link
Contributor

ahoppen commented Mar 16, 2021

In apple/swift#36249 and apple/swift#36283 I changed the C API through which SwiftSyntax communicates with the compiler. It looks like the CI bot is not using the latest toolchain to compiler swift-format.

@shahmishal I don’t see any messages regarding the download or build of the latest toolchain in the CI logs. Could it be that we’re missing that step?

Also, I think we actually need to build a main compiler to test swift-format because swift-format depends on the main branch of SwiftSyntax which in turn depends on the main branch of swift. I also don’t think we can get away with just using the latest open source toolchain because whenever the Python syntax files change, we need the corresponding PR to be merged in both swift and swift-syntax, otherwise SwiftSyntax will crash on launch. And these changes are fairly frequent (rough guess from the linked changelog 1 change/month). I know that’s a bit unfortunate for swift-format testing times 😬

@shahmishal
Copy link
Member Author

@swift-ci test

1 similar comment
@allevato
Copy link
Collaborator

@swift-ci test

@ahoppen
Copy link
Contributor

ahoppen commented Oct 10, 2022

@swift-ci Please test

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

3 participants