Skip to content

feat: Update swift-toml to 2.0.0 with improved error reporting#55

Merged
alexey1312 merged 9 commits intoldomaradzki:masterfrom
alexey1312:alexey1312/update-swift-toml-2.0
Feb 1, 2026
Merged

feat: Update swift-toml to 2.0.0 with improved error reporting#55
alexey1312 merged 9 commits intoldomaradzki:masterfrom
alexey1312:alexey1312/update-swift-toml-2.0

Conversation

@alexey1312
Copy link
Collaborator

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.

  • Update swift-toml from 1.0.0 to 2.0.0
  • Remove .interoperabilityMode(.Cxx) and cxxLanguageStandard: .cxx17 from Package.swift
  • Remove #if canImport(TOML) conditionals and tomlNotAvailable error case
  • Handle TOMLDecodingError.invalidSyntax for precise line/column in config errors
  • Update CLAUDE.md documentation

google-labs-jules bot and others added 9 commits December 27, 2025 12:35
- 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.
- 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>
@alexey1312 alexey1312 merged commit d8b38dc into ldomaradzki:master Feb 1, 2026
2 checks passed
@alexey1312 alexey1312 deleted the alexey1312/update-swift-toml-2.0 branch February 1, 2026 15:27
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