feat: Update swift-toml to 2.0.0 with improved error reporting#55
Merged
alexey1312 merged 9 commits intoldomaradzki:masterfrom Feb 1, 2026
Merged
Conversation
- Replaced `for` loop with `while` loop using `enumerator.nextObject()` in `findXCResultBundles` and `findTestBinary`. - Added `enumerator.skipDescendants()` to prevent unnecessary recursion into `.xcresult` and `.xctest` bundles. - This reduces file system I/O by avoiding traversal of thousands of files inside these bundles.
…316953229922836113
- Update swift-toml dependency from 1.0.0 to 2.0.0 - Remove .interoperabilityMode(.Cxx) from Package.swift - Remove cxxLanguageStandard: .cxx17 from Package.swift - Remove #if canImport(TOML) conditionals from ConfigLoader.swift - Remove tomlNotAvailable error case (no longer needed) - Update CLAUDE.md documentation to remove C++ references https://claude.ai/code/session_01WZkuS9vpvB2rcTZsstvubN
swift-toml 2.0 throws TOMLDecodingError.invalidSyntax with line/column info for TOML parsing errors. Previously this was caught by the generic catch block and line/column info was lost. Now ConfigLoader properly extracts line and column from TOMLDecodingError, providing users with precise error locations in their config files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Description
Upgrades swift-toml dependency from 1.0.0 to 2.0.0, removing C++ interoperability requirements and leveraging new error types for precise syntax error locations.
.interoperabilityMode(.Cxx)andcxxLanguageStandard: .cxx17from Package.swift#if canImport(TOML)conditionals andtomlNotAvailableerror caseTOMLDecodingError.invalidSyntaxfor precise line/column in config errors