Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot paste into SQL window #244
I am unable to paste into the SQL window/pane. I have tried Command-V, Ctrl-V, using the menu and using the context menu.
I am running Mac OS X 10.11.4 (15E65) and Postico 1.0.8 (1442).
I downloaded the application from this link: https://eggerapps.at/postico/
Specific repro steps:
Pasting works fine for me.
Yes, sorry, I meant Cmd-V. I updated the issue.
I attached a screenshot of the window I see. It looks like yours.
OK, I'm stumped. Could you open Console.app and see if any error message are written when you try to paste?
Do any other apps on your system have the same issue?
Could you try disabling white-space sanitation? Maybe that causes the issue? Type the following in Terminal, then quit & restart Postico:
defaults write at.eggerapps.Postico SanitizeWhitespace 0
(if that wasn't the cause, execute the command again, replacing 0 with 1 to reenable whitespace sanitation)
Console has this output:
However, I also see that message when pasting into Chrome and the paste still works.
Disabling whitespace sanitation did fix the problem! It also removed the Console symptom: pasting no longer causes the "Can't allocate a new block" error.
I will use this workaround for now; if you have anything else you want me to try, let me know.
referenced this issue
Jan 11, 2017
I've now fixed the whitespace sanitation feature in build 1640.
Postico now no longer tries to fix whitespace while pasting, but fixes whitespace automatically when sending the query to the server. Pasting should work again now.
If you've had problems pasting into the SQL Query before, could you try a recent build from here?