Skip to content

Tutorial code delta not picking up changes in some cases #1007

Open
@jverkoey

Description

@jverkoey

Description

I am building an interactive tutorial and noticed that one of my code steps is not highlighting the code changes, even though the other steps are.

The tutorial is located at https://jverkoey.github.io/slipstream/tutorials/slipstream/introducingslipstream-yourfirstsite-helloworld

Specifically, Step 8 of Section 3 (Adding some style) adds a .fontSize(.extraExtraExtraLarge) attribute to the view, but this addition is not displayed in the code preview.

Screenshot 2024-08-08 at 8 37 50 AM

I've manually highlighted the expected code change.

The relevant step in the .tutorial definition are found here:

https://github.com/jverkoey/slipstream/blob/6cb0a92ca768cb4c9cffa2c4ab99523d5a8ff2ce/Sources/Slipstream/Documentation.docc/Tutorials/IntroducingSlipstream/YourFirstSite/HelloWorld/IntroducingSlipstream-YourFirstSite-HelloWorld.tutorial#L182-L194

Checklist

  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue.

Expected Behavior

The added code should be highlighted.

Actual behavior

The added code is not highlighted.

Steps To Reproduce

  1. Open https://jverkoey.github.io/slipstream/tutorials/slipstream/introducingslipstream-yourfirstsite-helloworld
  2. Scroll down to section 3, step 8.
  3. Observe.

Swift-DocC Version Information

No response

Swift Compiler Version Information

swift-driver version: 1.113 Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)
Target: arm64-apple-macosx14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions