Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No such option --FIX-EVEN-UNPARSABLE #107

Open
littlemissy07 opened this issue Jul 24, 2023 · 1 comment
Open

Error: No such option --FIX-EVEN-UNPARSABLE #107

littlemissy07 opened this issue Jul 24, 2023 · 1 comment

Comments

@littlemissy07
Copy link

Hello! I have added sqlfluff in my vscode but I keep getting this error when I try to format a code:
image

This is how my settings.json look like:

{
"workbench.colorTheme": "Default High Contrast",
"[python]": {
"editor.formatOnType": true
},

"sqlfluff.config": "${workspaceFolder}/.sqlfluff",
"sqlfluff.dialect": "mysql",
"sqlfluff.env.environmentVariables": [
  {
    "key": "example_key",
    "value": "example_value"
  }
],
"sqlfluff.env.customDotEnvFiles": [
  "${workspaceFolder}/example.env"
],
"sqlfluff.env.useDotEnvFile": true,
"sqlfluff.excludeRules": ["L009"],
"sqlfluff.executablePath": "sqlfluff",
"sqlfluff.ignoreLocalConfig": false,
"sqlfluff.ignoreParsing": false,
"sqlfluff.rules": [],
"sqlfluff.suppressNotifications": false,
"sqlfluff.workingDirectory": "",
/* Linter */
"sqlfluff.linter.arguments": [],
"sqlfluff.linter.run": "onType",
"sqlfluff.linter.diagnosticSeverity": "error",
"sqlfluff.linter.diagnosticSeverityByRule": [
  {
    "rule": "L010",
    "severity": "warning"
  }
],
"sqlfluff.linter.lintEntireProject": true,
/* Formatter */
"sqlfluff.format.arguments": ["--FIX-EVEN-UNPARSABLE"],
"sqlfluff.format.enabled": true,
"[sql]": {
  "editor.defaultFormatter": "dorzey.vscode-sqlfluff"
},

}

Anything wrong with my set-up? Thank you!

@RobertOstermann
Copy link
Contributor

Hmm, I haven't seen that error before. Your setup looks fine to me on first glance. What sqlfluff (command line) version are you using? What happens when you run sqlfluff fix -h on the command line? Does it show that option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants