New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatter not working when pyproject.toml not at project root #81
Comments
should be the directory of the current file, not the project root? Right now it is the directory that is opened in VSCode. If it were to use the current file directory it will probably work. I'm not sure if this is the right vs command, but |
@monosans Easier said than done lol, I found a way that works and uses the pyproject.toml file correctly. I'll put a PR for you. |
Fixed in v2022.10.0. Many thanks to @christopherpickering for the help and quick fix! |
Thanks for he fast fix ! It solve the issue main issue for me without having to specify the configuration file. |
AFAIK |
@monosans thats correct, sorry I didn't notice that @fabien-michel. |
The error logs are in Developer Tools (Ctrl+Shift+I or Help > Toggle Developer Tools). |
My project dir structure is like this:
The djlint config is inside
pyproject.toml
:The
blop.html
file language mode isdjango-html
When running djlint from command line it work as expected:
[/absolute/path/to/project/]$ djlint --reformat django/app/template/blop.html
But when running the formatter from vscode it seems to apply a default configuration (
blank_line_after_tag
is not respected)I'v tried to force djlint configuration in vscode config but it still doesn't work:
The only way I've found so far to have it working is to put
pyproject.toml
at project root. But it is not a nice solution for me.Other notes:
djlint 1.19.0
is installed inside the venvDid I miss something ? How to have djlint-vscode respect my pyproject.toml file ?
By the way there is a way to have logs of what djlint-vscode is doing ?
The text was updated successfully, but these errors were encountered: