You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like a bug. But if this is not a bug, it would be nice to add to the djLint documentation about the syntax of CLI commands on UNIX and Windows.
djlint --profile=jinja --lint KiraTemplates
Linting 2/2 files ���������� 00:00
KiraTemplates\KiraFolder\KiraFolderTemplate.html
───────────────────────────────────────────────────────────────────────────────
T001 1:0 Variables should be wrapped in a whitespace. {{KIRA_SECOND_VARIAB
KiraTemplates\KiraRootTemplate.html
───────────────────────────────────────────────────────────────────────────────
T001 1:0 Variables should be wrapped in a whitespace. {{KIRA_FIRST_VARIABL
Linted 2 files, found 2 errors.
Command exited with code 1
djlint --profile=jinja --lint KiraTemplates/**/*.html
Linting 2/2 files ���������� 00:00
KiraTemplates\KiraFolder\KiraFolderTemplate.html
───────────────────────────────────────────────────────────────────────────────
T001 1:0 Variables should be wrapped in a whitespace. {{KIRA_SECOND_VARIAB
KiraTemplates\KiraRootTemplate.html
───────────────────────────────────────────────────────────────────────────────
T001 1:0 Variables should be wrapped in a whitespace. {{KIRA_FIRST_VARIABL
Linted 2 files, found 2 errors.
Command exited with code 1
djLint successfully lints both files KiraTemplates\KiraFolder\KiraFolderTemplate.html and KiraTemplates\KiraRootTemplate.html in both cases.
1. Summary
These CLI commands for linting files in folders and subfolders works on Windows, but not on Ubuntu:
This looks like a bug. But if this is not a bug, it would be nice to add to the djLint documentation about the syntax of CLI commands on UNIX and Windows.
2. MCVE
2.1. Files
KiraTemplates/KiraRootTemplate.html
:KiraTemplates/KiraFolder/KiraFolderTemplate.html
:2.2. Steps to reproduce
2.3. Online
This configuration on the branch
KiraDjLintGlob
of my GitHub repository for debugging and demonstrations.CI builds for this configuration:
3. Behavior
3.1. Expected
On my local Windows machine and on AppVeyor:
djLint successfully lints both files
KiraTemplates\KiraFolder\KiraFolderTemplate.html
andKiraTemplates\KiraRootTemplate.html
in both cases.3.2. Non-expected
Travis:
No files to check!
in the first case, and no lintingKiraTemplates\KiraRootTemplate.html
in the second case.4. Not helped
I tried different glob templates, set current working directory, add
./
beforeKiraTemplates
, add slash beforeKiraTemplates
and afterKiraTemplates
orKiraFolder
. But it didn’t work on the Travis Ubuntu environment for me.5. Environment
Operating system:
Python 3.12.0
djLint 1.34.1
Thanks.
The text was updated successfully, but these errors were encountered: