Comments (9)
I think this was it! #20 (comment)
The issue magically vanished for me, probably due to an update. Have you tried updating vscode and/or the plugin?
from vscode-sqlfluff.
This is related to an older version of lintingProvider.ts
(in this commit that is still used in version 0.0.4 of the extension.
The message in the older version was "Cannot lint ${textDocument.fileName}. The executable was not found. Use the '${this.linter.languageId}.executablePath' setting to configure the location of the executable"
The error message is now different in master so the issue should disappear when a new version of the extension is realeased.
from vscode-sqlfluff.
I come with the same issue, do we have any news here? @nolanbconaway @dorzey
from vscode-sqlfluff.
I just installed the plugin and ran into the problem 😿
Is there any chance someone could please do a 0.0.5 release to get the fix out?
from vscode-sqlfluff.
@nolanbconaway thanks for reporting this for me Happy to provide any more info. The jinja-sql
thing that showed up was weird! Current theory is somehow the Better Jinja extension is interfering? That's where the ,jinja-sql
piece is coming from...
Mac Os 11.2
VSCode 1.51.1
Anaconda vSomething?
sqlfluff versions 0.3.6
and 0.4.0.a3
(both didn’t work?)
extension dorzey.vscode-sqlfluff=v0.0.4
and here’s what i think are my relevant settings in .vscode/settings.json
"python.pythonPath": "/Users/anders.swanson/opt/anaconda3/envs/dbt/bin/python",
"sql.linter.executablePath": "/Users/anders.swanson/opt/anaconda3/envs/dbt/bin/sqlfluff",
"sql.linter.run": "onType",
"files.associations": {
"*.sql": "jinja-sql",
"*.dbtspec": "yaml"
},
from vscode-sqlfluff.
glad to know you've got it under control! so if I were to build a vsix from the master branch, might I believe to format on save? Or is there something to the error message that I might need to change?
I don't know why this.linter.languageId
= sql,jinja-sql.executablePath
. Is this a problem? Is it because of my files.associations
?
from vscode-sqlfluff.
I just built a new version from master locally and the linter works correctly now, even when providing a path for sqlfluff
. The formatter doesn't seem to work though.
from vscode-sqlfluff.
I have seen that 0.0.5 is out now, so the extension should be working when using "sql.linter.executablePath"
in the config.
from vscode-sqlfluff.
Sorry; I'm still catching up on the backlog of issues. Could somebody please confirm if this is fixed?
from vscode-sqlfluff.
Related Issues (20)
- 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
- Extension doesn't respect warnings from sqlfluff output
- What is the syntax for adding rules? HOT 3
- Command 'Format Document With...' resulted in an error HOT 1
- Can config custom .sqlfluffignore file ?
- ERROR: Starting in sqlfluff version 0.7.0 the dbt templater is distributed as a separate python package. Please pip install sqlfluff-templater-dbt to use it. HOT 1
- Auto Detect SqlFlulf executable from Python Virtual Environment HOT 1
- "File path not found" when working on unsaved files HOT 1
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.