dbeaver / dbeaver/dbeaver

External formatter don't output stderr

Open
#37,883 4 comments 1 reaction 0 assignees View on GitHub
xf:sql editor
Dominant language
Java
Stars
51.8k
Forks
4.4k
Avg merge
3d 13h
Merged PRs (30d)
183

Description

**Is your feature request related to a problem? Please describe.**
Trying to use sqlfmt as an external formatter but it outputs some info on stderr and can't get rid of that from the output e.g. 2>nul doesn't work in that field.

install sqlfmt: pip install shandy-sqlfmt[jinjafmt]

use with sqlfmt - in DBeaver as External formatter

outputs formatted query and also:
```
1 file formatted.
0 files left unchanged.
- formatted.
```

**Describe the solution you'd like**
Not outputting stderr from external formatter

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.