Comments (7)
@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.
from djlint-vscode.
Nevertheless, it don't explain why specifying the configuration file make it not used by djlint.
AFAIK --configuration
doesn't support pyproject.toml, only .djlintrc
format.
from djlint-vscode.
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 vscode.window.activeTextEditor.document.uri.fsPath
sounds like it would work.
from djlint-vscode.
Fixed in v2022.10.0. Many thanks to @christopherpickering for the help and quick fix!
from djlint-vscode.
Thanks for he fast fix ! It solve the issue main issue for me without having to specify the configuration file.
Nevertheless, it don't explain why specifying the configuration file make it not used by djlint.
from djlint-vscode.
@monosans thats correct, sorry I didn't notice that @fabien-michel.
from djlint-vscode.
By the way there is a way to have logs of what djlint-vscode is doing ?
The error logs are in Developer Tools (Ctrl+Shift+I or Help > Toggle Developer Tools).
from djlint-vscode.
Related Issues (20)
- Support pipx-installed djlint HOT 2
- Question about vscode "problems" tab HOT 16
- Problem on self closing tabs HOT 1
- Publish to Open VSX Registry
- Formatter is appending to file HOT 3
- Code duplicated when formatting Django HTML HOT 6
- Configuration from pyproject.toml is being ignore in v2022.10.1 HOT 20
- Wrong HTML formatting? HOT 1
- Is it possible to autofix certain problems? HOT 2
- Is it possible to disable the extension for specific file types? HOT 3
- settings djlint.configuration relative paths HOT 6
- Ignore linting tags do not work HOT 1
- Extension tries to access clipboard HOT 8
- djLint is not installed for the current active Python interpreter. HOT 2
- Regular ENOENT when using in SSH Remote HOT 13
- v2023.8.10 locks up keyboard in vscode. HOT 7
- Buggy behaviour when commenting and uncommenting via Toggle Line Comment vscode shortcut in Django HTML. HOT 1
- djLint should not attempt to lint HTML files in non-Django projects HOT 2
- Formatting and Linting Not Working in VSCode Starting with Version 2024.5.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djlint-vscode.