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

VS code SQL editor marks problems but running SQLFluff via terminal doesn't detect problems #124

Open
keen85 opened this issue Feb 17, 2024 · 0 comments

Comments

@keen85
Copy link

keen85 commented Feb 17, 2024

Hi, I have the situation where there are SQLFluff problem marked in the editor window but which do not correspond to the results when executing SQLFluff from terminal. I also enabled SQLFluff Show Output Channel and weirdly this seems correct (corresponding to terminal) but differs from the editor window.

image

When running SQLFluff Debug Extension no failed tests are listed.

sql code

CREATE TABLE [dbo].[test_table]
(
    [id] [BIGINT] NULL
    , [payload] [NVARCHAR](32) NULL
)
WITH
(
    DISTRIBUTION = ROUND_ROBIN
    , CLUSTERED COLUMNSTORE INDEX
);

settings.json

{
    "sqlfluff.executablePath": "../../.venv/Scripts/sqlfluff.exe",
    "sqlfluff.config": "${workspaceFolder}/.sqlfluff",
    "sqlfluff.format.enabled": true,
    "editor.formatOnSave": true,
}
@keen85 keen85 changed the title VS code SQL editor marks problems but running SQLFluff via terminal it does not VS code SQL editor marks problems but running SQLFluff via terminal doesn't detect problems Feb 17, 2024
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

1 participant