sqlfluff / vscode-sqlfluff

An extension to use the sqlfluff linter in vscode.
https://marketplace.visualstudio.com/items?itemName=dorzey.vscode-sqlfluff
MIT License
156 stars 33 forks source link

Command 'Format Document With...' resulted in an error #142

Closed JamesG3D closed 5 months ago

JamesG3D commented 5 months ago

When I try to use sqlfluff in vscode it just gives an error: "Command failed to execute, check logs for details" image In the log it has

------------------------------------------------------------

Format triggered for C:/src/myFile.sql

------------------------------------------------------------

Reading from stdin, not file, input may be dirty/partial

--------------------Executing Command--------------------

sqlfluff fix -

------------------------------------------------------------

Child process threw error
Error: spawn sqlfluff ENOENT

------------------------------------------------------------
JamesG3D commented 5 months ago

oh I see "The extension expects sqlfluff to be installed and already added to the path."