Skip to content

Conversation

@matthewbastien
Copy link
Member

Description

Swiftly performs a signature verification and extraction of the toolchain even after the download completes. Show a notification in this case and reset the progress to indicate to the user that Swiftly is still performing some work.

Tasks

  • [ ] Required tests have been written
  • [ ] Documentation has been updated
  • [ ] Added an entry to CHANGELOG.md if applicable

) {
const increment = progressData.step.percent - lastProgress;
if (progressData.complete) {
// Swiftly will also verify the signature and extract the toolchain after the
Copy link
Contributor

Choose a reason for hiding this comment

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

how funky would it be to popup a withProgress notification? That way at least get the progress animation

Copy link
Member Author

Choose a reason for hiding this comment

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

This is within a withProgress notification. Resetting the progress to 0 resets the animation.


"lib": ["ES2021"],
"target": "ES2020",
"lib": ["ES2022"],
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need to bump for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is to get error causations. So, you can provide a cause (kind of like in Java) for your errors:

try {
   // Do something that will throw
} catch (error) {
   throw new Error("Something went wrong", { cause: error });
}

NodeJS will print the stack trace of both errors in this case so that we don't have to do this manually like what was in the existing code.

@matthewbastien matthewbastien merged commit 117501c into swiftlang:main Oct 23, 2025
24 checks passed
@matthewbastien matthewbastien deleted the swiftly-better-reporting branch October 23, 2025 13:56
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