Comments (2)
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.
from vscode-sqlfluff.
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
.
from vscode-sqlfluff.
Related Issues (20)
- Feature Request / Question: `noqa` inline quick fix HOT 5
- dbt project not registered HOT 2
- Allow ${userHome} variable to be used in executable path
- Issues with SQLFluff Command Execution and Path Specification HOT 8
- Aligned elements: attempting to set alias_expression HOT 4
- Allow exclude files HOT 1
- Nothing is showing in VS code when we do 'Format Document' HOT 1
- Fixes for LT01 not applied
- Not specifying a SQL Dialect in extension settings leads to confusing error HOT 1
- Environment variables cannot be passed to extension
- VS code SQL editor marks problems but running SQLFluff via terminal doesn't detect problems
- vscode format on save errors due to future deprecation
- `sqlfluff 3.0` release breaks extension `sql` document formatter HOT 5
- OSError: [Errno 6] Device not configured: '/dev/tty' HOT 4
- No documentation or examples for how to override defaults for rules or rule groups HOT 2
- `Format Document` or `SQLFluff: Fix` overwrites file contents with sqlfluff logs HOT 4
- Can't find the sqlfluff.exe file after installation HOT 6
- [Feature] Show rule name in `Problems` tab HOT 2
- Unable to lint non `.sql` files HOT 1
- WSL - Executable not found HOT 2
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 vscode-sqlfluff.