External SQL Formatter - ${file} doesn't work #39232
-
DescriptionDBeaver 25.1.0 isn't working with my external formatter sqlformat, which needs an input file to work. It used to work in earlier versions.
This is the response I see: DBeaver VersionCommunity Edition 25.1.0 Operating SystemArch Linux Database and driverNo response Steps to reproduceNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Please send us log files. You can collect them to archive automatically with |
Beta Was this translation helpful? Give feedback.
-
The log files are attached. Appreciate the prompt response.
…On Fri, 2025-06-06 at 11:57 -0700, Elizabeth wrote:
E1izabeth left a comment (dbeaver/dbeaver#38334)
Please send us log files. You can collect them to archive automatically with Help->Collect Diagnostic Info
image.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello @saroshmk, Is the issue still relevant? Why did you close the ticket? I don't see any mentions of the error message you've provided. The closest one is just |
Beta Was this translation helpful? Give feedback.
-
Hi,
The issue is still relevant. I don't think I closed the ticket. But,
let me check, if I did it unknowingly?
sqlformat is on the path in my system and i can execute it from the
terminal.
I also tried using the full path of the formatter in the external
formatter commandline:
/usr/bin/sqlformat -as --k lower -i lower --comma_first COMMA_FIRST
${file}
This is the error that comes up in the preview control:
[ERROR] Failed to read ${file}: [Errno 2] No such file or directory:
'${file}'
I've attached the screenshot.
With regards,
Sarosh
…On Thu, 2025-06-26 at 07:30 -0700, ShadelessFox wrote:
ShadelessFox left a comment (dbeaver/dbeaver#38334)
Hello @saroshmk,
Is the issue still relevant? Why did you close the ticket?
I don't see any mentions of the error message you've provided. The closest one is just No such file or directory. DBeaver couldn't find the sqlformat executable, so it has nothing to do with the ${file} variable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, you cannot add attachments when replying by email. You must comment directly on GitHub. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry about that. Please see the attachment. |
Beta Was this translation helpful? Give feedback.
-
Hi @saroshmk |
Beta Was this translation helpful? Give feedback.
-
Dear Ivan
What an idiot I have been! Thank you for shining a light on this.
With regards,
Sarosh
…On Tue, 2025-09-16 at 10:26 -0700, IvanGorshechnikov wrote:
IvanGorshechnikov left a comment (dbeaver/dbeaver#38334)
Hi @saroshmk
For using ${file}, you should check "Use temp file". Without it, you can't use this variable and only use external formatters for STDIN case
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi @saroshmk
For using ${file}, you should check "Use temp file". Without it, you can't use this variable and only use external formatters for STDIN case