Repository navigation
Conversation
Snipsync reads every file in this repo, including Markdown and config comments, and treats any line containing the literal start marker as a real snippet. The marker examples in README.md and CONTRIBUTING.md registered duplicate java-s3-driver-create and php-quickstart-worker snippets (the PHP one unterminated, so it captured to the end of README.md), and the prose in php-sandbox/README.md and phpstan.neon registered unterminated "..." snippets. Snipsync 1.14 warns about all of these. Render the examples as <pre> blocks that spell the first @ as @, with placeholder names, and rephrase the prose so it no longer contains the marker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Snipsync reads every file in this repo, including Markdown and config comments, and treats any line that contains the literal start marker as a real snippet. It has no escape form. Four files registered snippets by accident:
README.mdjava-s3-driver-create, plus duplicatephp-quickstart-workerwith no end marker, so it captured to the end of the READMECONTRIBUTING.mdjava-s3-driver-createphp-sandbox/README.md...php-sandbox/client/temporal-client/phpstan.neon...The real
php-quickstart-worker(inphp-sandbox/worker.php) feedsdocs/develop/php/set-up.mdx, and the realjava-s3-driver-createfeeds the Java external storage page. Today the real snippets win, but only because of file order. Snipsync 1.14 now warns about these on every docs sync.Change
README.mdandCONTRIBUTING.md: the marker examples are now<pre>blocks that spell the first@as@, with placeholder names (java-example-name,php-example-name). GitHub renders them the same as before. An HTML comment above each block explains the entity so nobody "fixes" it back.php-sandbox/README.mdandphpstan.neon: the prose now describes the marker line without containing the marker.Validation
I ran Snipsync 1.14.0 locally against
mainand against this branch, with local-file origins for this repo, samples-go, and samples-typescript:mainit warns about unterminatedphp-quickstart-workerinREADME.mdand unterminated...inphp-sandbox/README.mdandphpstan.neon.I also rendered the README section with GitHub's Markdown API. Both examples show the literal
@@@SNIPSTART/@@@SNIPENDmarkers.Companion fixes for the same warnings: temporalio/samples-go (cancellation
SNIPEND) and temporalio/samples-typescript (stray NexusSNIPENDs).