-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:DB hangs in GVim when attempting to open interactive console #51
Comments
That's unexpected. Does |
If it's the |
Sorry for being clueless, but how do I find out which adapter is used, exactly? |
What happens when you run it? |
If I run it without changing the plugin, GVim just hangs, with If I remove FWIW I think I'm not using any adapter at all, i.e. |
Is that a typo? The correct check is |
Yes, sorry, this was indeed a typo, I've checked the correct command. Rereading all this now, I think there was a misunderstanding: I've tried using I.e. I believe my problem is addressed by just diff --git a/autoload/db.vim b/autoload/db.vim
index a89a6db..56bb2a9 100644
--- a/autoload/db.vim
+++ b/autoload/db.vim
@@ -470,7 +470,7 @@ function! db#execute_command(mods, bang, line1, line2, cmd) abort
if exists(':Start') == 2
silent execute 'Start' escape(cmd, '%#')
else
- silent execute '!'.escape(cmd, '!%#')
+ execute '!'.escape(cmd, '!%#')
redraw!
endif
else Sorry for the confusion. |
Okay, yeah, distinct issue but possibly with the same cause. I bet this is contingent on whether or not |
You're right, my |
Per README, if only connection URL is provided and SQL string / file is omitted, it should spawn an interactive console. However, when executed in GVim, the Vim just locks up.
I have tpope/vim-dispatch installed and running...
... does open
psql
in interactive mode (albeit) within the Ex bar.With a little experimentation, I found that taking off the
silent
at https://github.com/tpope/vim-dadbod/blob/master/autoload/db.vim#L206... does the trick.
The text was updated successfully, but these errors were encountered: