Skip to content

Conversation

@benjaminwestern
Copy link
Collaborator

Fix: SQLFluff Parsing for js {} Blocks

  • Issue: SQLFluff failed with a "templating/parsing error" when formatting .sqlx files containing js {} blocks.
  • Cause: The .sqlfluff configuration's regular expression (param_regex) did not recognize js as a valid block type.
  • Solution: The param_regex was updated to include js, and js = was added to the configuration.
  • Impact: Users can now correctly format files that contain JavaScript blocks. Testing confirms the fix with no regressions.

Not 100% certain this will fix #148 but maybe?

@benjaminwestern benjaminwestern marked this pull request as draft July 19, 2025 11:28
@benjaminwestern
Copy link
Collaborator Author

@ashish10alex just spitballing on this one. Let me know what comes to mind when you see this :)

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

Successfully merging this pull request may close these issues.

bug: "Dataform: Format Document" not working

2 participants