question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

\e is not working on pgcli 1.5.0 installed via brew

See original GitHub issue

Conversation from gitter:

When I write select 1 \e, I correctly see select 1 in my editor. When I edit and quit, I don’t see select 2. I don’t see anything at all. If I type ;<RET>, I get the can’t execute an empty query error message.

nvim 0.1.7, macOS Sierra (10.12.1). nvim exits normally when I do the same thing from bash. And it works with psql. I believe it also worked fine in pgcli prior to my last brew upgrade, but I’m not sure what version I was on previously. Judging by brew list --versions pgcli, I was probably on 1.3.1_1.

I’m unable to reproduce it since my brew setup is screwed up.

Steps to reproduce:

  1. brew update && brew install pgcli
  2. Launch pgcli
  3. Type select 1 \e
  4. Change the query to select 2 in the editor.
  5. Save and quit the editor.
  6. Check to see if the prompt shows select 2.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
j-bennetcommented, Mar 20, 2017

The fix is merged to master. To install from master:

pip install -U https://github.com/dbcli/pgcli/archive/master.zip

0reactions
j-bennetcommented, May 16, 2017

@giodamelio This works for me with pgspecial==1.8.0. Please try updating that: pip install pgspecial==1.8.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install
The easiest way install pgcli on an macOS machine is to use Homebrew. Please be aware that this will install postgresql if it's...
Read more >
PostgreSQL update during pgcli installation via Homebrew
I tried removing postgresql from formula completely, but that does not work, fails on brew install --build-from-source pgcli . So instead, I ...
Read more >
dbcli/pgcli
I'm on pgcli 1.5 (installed via homebrew) and \e doesn't seem to work. ... I am now back on 1.5.0, and \e doesn't...
Read more >
Brew update and Postgres error - Karttur on GitHub.com
This caused a connection error and I could not get into my postgres database, either via port 5432 or direct access via psql....
Read more >
PostgreSQL not running on Mac
This happens when postgres server is not running. Steps to properly install Postgres via Homebrew on MAC : brew install postgres.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found