Skip to content

Conversation

@jackfirth
Copy link
Contributor

@jackfirth jackfirth commented Jun 26, 2022

@samth expressed interest in setting up Resyntax on the Typed Racket repository. This pull request adds a github workflow that runs Resyntax on any changed files in a pull request. Resyntax will suggest changes via a github review, like this. To apply the changes, the pull request author can click the "Commit suggestion" button that shows up in each comment. Suggestions can be ignored freely; the review does not block merges. Here's an example of what a Resyntax suggestion looks like for someone with commit access:

Screen Shot 2022-06-25 at 5 37 19 PM

The Resyntax tool and especially the github integration are still in the early phases of development so there are probably several bugs to work out here. If a suggestion looks wonky, @-mention me and I'll take a look at it.

@samth
Copy link
Member

samth commented Jun 26, 2022

I'm not sure what went wrong with the CI run, @jackfirth can you take a look?

@jackfirth
Copy link
Contributor Author

@samth Fixed!

@samth
Copy link
Member

samth commented Jun 26, 2022

Can you squash the commits here? Also, why does it need xvfb?

@sorawee
Copy link
Contributor

sorawee commented Jun 26, 2022

Probably because it uses racket/gui for re-indentation.

@jackfirth you might be able to remove the racket/gui dependency by consulting https://docs.racket-lang.org/syntax-color/racket-nav.html#%28mod-path._syntax-color%2Fracket-indentation%29 directly

@jackfirth
Copy link
Contributor Author

@sorawee There isn't currently an implementation of color-textoid<%> without GUI dependencies that I can reuse. Once that exists I'll be able to get rid of the xvfb dependency.

Analyze pull requests with Resyntax

@samth expressed interest in setting up [Resyntax](https://docs.racket-lang.org/resyntax/) in the Typed Racket repository. This CL adds a github workflow which runs Resyntax on any changed files in a pull request. Resyntax will suggest changes in the form of a github review, [like this](jackfirth/racket-package-resyntax-action#9 (review)). To apply the changes, the pull request author simply need click the "Commit suggestion" button that shows up in each comment. Suggestions can also be ignored freely; the review does not block merges.

The tool and the github integration are both still in the early phases so there are probably several bugs to work out here. If a suggestion looks wonky, @-mention me and I'll take a look at it.
@jackfirth
Copy link
Contributor Author

@samth Squashed

@samth samth merged commit fa598b6 into racket:master Jun 26, 2022
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.

3 participants