Skip to content

[backport] Fix Dart Sass failing in enterprise Windows with Group Policy restrictions#14369

Merged
cderv merged 2 commits intov1.9from
fix/dart-sass-enterprise-fallback
Apr 16, 2026
Merged

[backport] Fix Dart Sass failing in enterprise Windows with Group Policy restrictions#14369
cderv merged 2 commits intov1.9from
fix/dart-sass-enterprise-fallback

Conversation

@cderv
Copy link
Copy Markdown
Collaborator

@cderv cderv commented Apr 16, 2026

Important

v1.9-specific fix for #14367. The full fix (bypassing sass.bat entirely) is in v1.10 via #14273.

In v1.9, #14002 routed sass.bat through a safeWindowsExec temp .bat wrapper to handle path quoting with spaces. On enterprise Windows systems where Group Policy / AppLocker blocks .bat execution from %TEMP%, this breaks dart-sass invocation — a regression from v1.8 where sass.bat was called directly from the trusted install directory.

When safeWindowsExec fails, Quarto now falls back to direct sass.bat execution (v1.8 behavior), restoring functionality in locked-down environments.

Fixes #14367

cderv added 2 commits April 16, 2026 09:10
Enterprise Windows environments with Group Policy / AppLocker rules
that block .bat execution from %TEMP% cause the safeWindowsExec temp
wrapper to fail, breaking dart-sass invocation (regression from #14002).

Try safeWindowsExec first (handles spaces in paths), then fall back to
direct execProcess call (v1.8 behavior) when it fails.

Fixes #14367
@cderv cderv merged commit 8b184cb into v1.9 Apr 16, 2026
44 checks passed
@cderv cderv deleted the fix/dart-sass-enterprise-fallback branch April 16, 2026 09:24
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.

Quarto 1.9.36 fails in enterprise Windows: Dart Sass invoked via temp batch file is blocked by Group Policy (works in 1.8.25)

1 participant