How to configure an external formatter in DBeaver Snap Linux?

I'm trying to configure an external formatter for SQL queries in DBeaver, but I'm encountering a "permission denied" error. I'm not very experienced with the command line and just started learning Linux, so I'm not very familiar with permissions.

Here are the steps I’ve taken so far:

  1. To confirm that it's only an issue with DBeaver, I tested the formatter on a test.sql file, and the formatter worked from the terminal command.
  2. Installed DBeaver version 24.1.1.202406231636 via Snap.
  3. Attempted to use chmod +x to give DBeaver execute access to my formatter located at /my/nvm/directory/versions/node/v22.3.0/bin/pg-formatter.

Despite this, the error persists.

Cannot run program "/my/nvm/directory/versions/node/v22.3.0/bin/pg-formatter": error=13, Permission denied
error=13, Permission denied
error=13, Permission denied

The formatter I'm trying to use is pg-formatter.

Can anyone help me understand why I'm getting this error and how to properly configure a formatter for DBeaver?

Upvotes: 0

Views: 188

Answers (0)

Related Questions