Open FurcyPin opened 2 years ago
I have a similar issue: I'm trying to run the docker image of sqlfluff via a bash script rather than my team having to each install python and sqlfluff.
My script:
#!/bin/bash
MSYS_NO_PATHCONV=1 winpty docker run -i --rm -v $(pwd):/sql sqlfluff/sqlfluff $*
When I set my script as the executable path .../sqlfluff.sh
nothing happens when I try to run SQLFluff Lint
in VSCode and no error.
This syntax works on Linux:
#!/bin/bash
docker run -i --rm -v $(pwd):/sql sqlfluff/sqlfluff $@
and a
"sqlfluff.executablePath": "${workspaceFolder}/sqlfluff.sh"
in the settings.json
.
Hi,
First, thanks for the nice plugin!
I'm trying to use a wrapper powershell script that calls sqlfluff instead of calling it directly, but I can't get it to work. (The main reason for using a wrapper is that I would to make sure the user has the same version of sqlfluff installed as the CI/CD pipeline)
As a minimal example I tried this:
bin\sqlfluff.ps1
that does just this:(I tried with
@args
too)I could not find any log or error message, and I have no idea what is wrong with my script (I'm more a bash person than powershell).
Help would be greatly appreciated.