Git Product home page Git Product logo

Comments (9)

nolanbconaway avatar nolanbconaway commented on August 23, 2024 2

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.

b-per avatar b-per commented on August 23, 2024 1

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.

zhongjiajie avatar zhongjiajie commented on August 23, 2024 1

I come with the same issue, do we have any news here? @nolanbconaway @dorzey

from vscode-sqlfluff.

daaain avatar daaain commented on August 23, 2024 1

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.

dataders avatar dataders commented on August 23, 2024

@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.

dataders avatar dataders commented on August 23, 2024

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.

b-per avatar b-per commented on August 23, 2024

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.

b-per avatar b-per commented on August 23, 2024

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.

dorzey avatar dorzey commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.