inferrinizzard / prettier-sql

[ARCHIVED] Please use https://github.com/sql-formatter-org/sql-formatter
https://github.com/sql-formatter-org/sql-formatter
MIT License
21 stars 5 forks source link

[SCRIPT] No parser found for sql in prettier vscode #48

Closed sschneider-ihre-pvs closed 2 years ago

sschneider-ihre-pvs commented 2 years ago

Describe the bug When trying to parse oracle sql files no parser could be infered by prettier.

["INFO" - 11:42:13] File Info:
{
  "ignored": false,
  "inferredParser": null
}
["WARN" - 11:42:13] Parser not inferred, trying VS Code language.
["ERROR" - 11:42:13] Failed to resolve a parser, skipping file. If you registered a custom file extension, be sure to configure the parser.

To Reproduce Open a .sql file with oracle psql code. Run Format Document (force)

Expected behavior File gets formatted by prettier-sql

sschneider-ihre-pvs commented 2 years ago

ok, when you use force you don't get asked what formatter to use.