SublimeCSSTidy icon indicating copy to clipboard operation
SublimeCSSTidy copied to clipboard

Tidy CSS fails when installed from Package Control: Packages/CSSTidy folder does not exist

Open dpc00 opened this issue 1 month ago • 0 comments

Claude reports: installed from Package Control, "Tidy CSS" always fails, because the plugin looks for csstidy.php in a Packages\CSSTidy folder that does not exist.

Test: Sublime Text build 4200, Windows 11, PHP 8.4 on PATH, CSSTidy 2015.04.15 installed through the Install Package picker (it is stored as Installed Packages\CSSTidy.sublime-package, not unpacked). Opened a .css file and ran "Tidy CSS". Console:

CSSTidy: Sending command:php -f D:\st_portable_4200\Data\Packages\CSSTidy\csstidy.php --
CSSTidy returned 1

Running that command by hand prints Could not open input file: ...\Data\Packages\CSSTidy\csstidy.php. Cause: self.packagepath = join(sublime.packages_path(), 'CSSTidy') assumes an unpacked folder; the same applies to win\csstidy.exe. Possible fix (not tried): add an empty .no-sublime-package file at the repository root so Package Control installs the package as a folder.

dpc00 avatar Oct 19 '26 23:10 dpc00