I want to use the sqlfluff extension (extentsion id dorzey.vscode-sqlfluff) in vs code. When I save a sql file I get the following error message in vs code:
"Cannot lint /home/usr/file.sql. The executable was not found. Use the 'Executable Path' setting to configure the location of the executable."
I followed the extensions configuration doecumentation which states:
"The extension expects sqlfluff to be installed and already added to the path. If it is installed but cannot be found, add the path to your preferences as seen below. Find the path by typing which sqlfluff into your terminal."
However, which sqlfluff doesn't print the path in the terminal. Any help is appreciated!
To specify a custom path to sqlfluff in VS Code,
python -c "import shutil; print(shutil.which('sqlfluff'))" This will print out the path to your local sqlfluff installation.vscode-sqlfluff does not install sqlfluff itself. You have to install it by yourself.
Follow sqlfluff installation guide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With