pg.nvim icon indicating copy to clipboard operation
pg.nvim copied to clipboard

Make GPG optional

Open diegobfernandez opened this issue 2 years ago • 2 comments

I can't use the plugin because I don't have GPG installed. I have no plans on encrypting the connection files as I am only connecting to local databases that are already pretty accessible.

This is the output I get when running :PGConnectBuffer

E5108: Error executing lua .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: /usr/bin/gpg: Executable not found

stack traceback:
        .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: in function 'new'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:6: in function 'load_encrypted_file'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:32: in function 'load_file'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:59: in function 'get_connection_files'
        ...hare/nvim/site/pack/packer/start/pg.nvim/lua/pg-nvim.lua:57: in function 'ConnectBuffer'
        [string ":lua"]:1: in main chunk
stack traceback:
        [C]: in function 'error'
        .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: in function 'new'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:6: in function 'load_encrypted_file'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:32: in function 'load_file'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:59: in function 'get_connection_files'
        ...hare/nvim/site/pack/packer/start/pg.nvim/lua/pg-nvim.lua:57: in function 'ConnectBuffer'
        [string ":lua"]:1: in main chunk
E5108: Error executing lua .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: /usr/bin/gpg: Executable not found

stack traceback:
        .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: in function 'new'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:6: in function 'load_encrypted_file'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:32: in function 'load_file'
        ...pack/packer/start/pg.nvim/lua///get_connection_files.lua:59: in function 'get_connection_files'
        ...hare/nvim/site/pack/packer/start/pg.nvim/lua/pg-nvim.lua:57: in function 'ConnectBuffer'

diegobfernandez avatar Jan 13 '23 14:01 diegobfernandez

Doesn't even work with gpg-sute installed on mac

alloc33 avatar Mar 14 '23 14:03 alloc33

Seems like it's trying to get gpg from /usr/bin while it's on /usr/local/bin

alloc33 avatar Mar 14 '23 14:03 alloc33