Skip to content

Handle Windows paths - #379

Draft
fingolfin wants to merge 1 commit into
masterfrom
mh/win-paths
Draft

fingolfin wants to merge 1 commit into
masterfrom
mh/win-paths

Conversation

@fingolfin

Copy link
Copy Markdown
Member

AUTODOC_CurrentDirectory ran the pwd program, which under MSYS2 prints a path such as /c/gap2 that native Windows programs cannot use. Several places also took a path to be absolute only if it starts with a slash, so on Windows they prefixed an absolute C:/... path with that directory, yielding /c/gap2/C:/gap2/... . Use GAP_getcwd, and recognize drive paths as absolute via the new AUTODOC_IsAbsolutePath.

Assisted-by: Claude Code (Opus 5)


GAP_getcwd is only available in recent GAP; and AUTODOC_IsAbsolutePath is probably something we should have built into GAP. So I am not sure we'll want to keep this as it is. Hrm.

AUTODOC_CurrentDirectory ran the pwd program, which under MSYS2 prints
a path such as /c/gap2 that native Windows programs cannot use. Several
places also took a path to be absolute only if it starts with a slash,
so on Windows they prefixed an absolute C:/... path with that directory,
yielding /c/gap2/C:/gap2/... . Use GAP_getcwd, and recognize drive
paths as absolute via the new AUTODOC_IsAbsolutePath.

Assisted-by: Claude Code (Opus 5)
@codecov

codecov Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.06%. Comparing base (e2d1900) to head (e406640).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
+ Coverage   93.03%   93.06%   +0.02%     
==========================================
  Files          15       15              
  Lines        3131     3130       -1     
==========================================
  Hits         2913     2913              
+ Misses        218      217       -1     
Files with missing lines Coverage Δ
gap/AutoDocMainFunction.gi 93.58% <100.00%> (ø)
gap/ToolFunctions.gd 100.00% <100.00%> (ø)
gap/ToolFunctions.gi 93.46% <100.00%> (+0.17%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

1 participant