Skip to content

Conversation

@dfed
Copy link
Owner

@dfed dfed commented Feb 9, 2026

URL.path() defaults to percentEncoded: true, which converts spaces to
%20. This causes FileManager.fileExists, chmod, and CLI argument passing
to fail when any path component contains spaces. Changed all .path()
calls in plugin code to .path(percentEncoded: false).

https://claude.ai/code/session_019ZDtwgBVq34rEkrVfQG94u

URL.path() defaults to percentEncoded: true, which converts spaces to
%20. This causes FileManager.fileExists, chmod, and CLI argument passing
to fail when any path component contains spaces. Changed all .path()
calls in plugin code to .path(percentEncoded: false).

https://claude.ai/code/session_019ZDtwgBVq34rEkrVfQG94u
This serves as a CI regression test for the .path(percentEncoded:)
fix — if paths with spaces break again, this CI job will fail.

https://claude.ai/code/session_019ZDtwgBVq34rEkrVfQG94u
@dfed dfed marked this pull request as draft February 9, 2026 17:58
@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.90%. Comparing base (87c7b4c) to head (94efa66).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #193   +/-   ##
=======================================
  Coverage   99.90%   99.90%           
=======================================
  Files          32       32           
  Lines        3264     3264           
=======================================
  Hits         3261     3261           
  Misses          3        3           
Files with missing lines Coverage Δ
Sources/SafeDITool/SafeDITool.swift 99.56% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Without quotes, users who copy the suggested command get a broken
invocation when their package path contains spaces.

https://claude.ai/code/session_019ZDtwgBVq34rEkrVfQG94u
@dfed dfed marked this pull request as ready for review February 9, 2026 21:10
@dfed dfed merged commit 7c18823 into main Feb 9, 2026
30 of 34 checks passed
@dfed dfed deleted the claude/test-spm-spaces-path-MBFgi branch February 9, 2026 21:11
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