-
Notifications
You must be signed in to change notification settings - Fork 12
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
fails to format when config file in sub folder and has a relative includes glob #54
Comments
It works for me in 1.75.0 insiders. Do you have a dprint configuration file in the folder? It's necessary at the moment in order to define the plugins. |
hmm i wonder if is potentially related to multi-root workspaces? |
Maybe. I have tested for that scenario in the past. Does it work when not in a multi-root workspace? You might want to set the following option in your settings: {
"dprint.verbose": true
} Then in the "Output" pane select "dprint". It should log everything it's doing. |
Ok I think I figured it out, and it was related to my includes expecting to resolve relative to the location of the dprint.json file. Our code-workspace file exists in a subfolder we'll call foo:
I had the dprint.json in the "foo" folder The ts/js code is in foo/packages/** So I had:
And the verbose logs show:
which led me to try changing my includes to:
which seems to have resolved my issue. |
Oh, that seems like a bug. Thanks for reporting back! I will investigate it soon. |
I'm also running into this, and discovered an interesting thing:
|
Using dprint extension v0.13.5
With vs code insiders:
For some reason, the dprint extension fails with this error:
The text was updated successfully, but these errors were encountered: