polacode icon indicating copy to clipboard operation
polacode copied to clipboard

Does not seem to work on Mac OS

Open jdk339 opened this issue 6 years ago • 29 comments

Installed the plugin just fine and can open the default screen where it shows the instructions, but it will not let me paste anything into the view to generate a new image. Tried clicking and pasting everywhere inside the "Polacode" tab.

jdk339 avatar Mar 19 '18 15:03 jdk339

I can confirm this. I'm running High Sierra and as @jdk339 explained it doesn't allow me to paste copied code.

jeffschwartz avatar Mar 22 '18 03:03 jeffschwartz

Hi, I just did it and it worked just fine.

id0Sch avatar Mar 22 '18 08:03 id0Sch

@id0Sch what version of Mac OS are you running it on?

jeffschwartz avatar Mar 27 '18 14:03 jeffschwartz

10.13.3

id0Sch avatar Mar 27 '18 15:03 id0Sch

@id0Sch that's interesting. I'm running VSC 1.21.1 and the Polacode plugin version is 0.22. What versions of these are you running?

jeffschwartz avatar Mar 27 '18 19:03 jeffschwartz

I was using VSC 1.19.1 and updated to 1.21.1 right now and it's still working. Polacode version is 0.2.2 as well.

id0Sch avatar Mar 28 '18 10:03 id0Sch

same problem. VSC 1.21.1 Polacode 0.2.2 MacOS 10.3.3

HusseinMorsy avatar Mar 29 '18 10:03 HusseinMorsy

I've determined the cause of failure for my VSCode setup.

  • Polacode fails when the VSCodeVim plugin is enabled.

To test, I:

  • disabled VSCodeVim and restarted VSCode,
  • and I was able to paste code into Polacode and save the generated file.

Because of the nature of VSCode due to its dynamic environment depending upon the assortment of plugins we have installed the reason for your failure might differ, as it could be due to some other plugin conflicting with Polacode.

jeffschwartz avatar Mar 29 '18 16:03 jeffschwartz

@jeffschwartz After uninstalling VSCodeVim, I have still the same problem . Maybe another PlugIn in my vscode installation conflicts with polacode.

HusseinMorsy avatar Mar 29 '18 18:03 HusseinMorsy

I have uninstalled Polacode. It is the only plugin that I have installed (I have many) that can't coexist with Vim. Hopefully Polacode will be able to in a future release.

jeffschwartz avatar Apr 02 '18 21:04 jeffschwartz

Did you guys try CMD C and then CMD V on the Polacode window? It took a while to me figure that out, but it worked!

brunogenaro avatar Apr 10 '18 15:04 brunogenaro

@brunogenaro Unfortunately, it does not work

HusseinMorsy avatar Apr 10 '18 15:04 HusseinMorsy

Same problem with @jeffschwartz here: Polacode would conflict with VSCodeVim.

It's a sad news because I rely on vim mode so much that it's quite impossible for me to code without it.

environments: VSCode 1.22.2, Mac 10.11.6

allenfantasy avatar Apr 18 '18 07:04 allenfantasy

I had the same issue but in my case I used Paste And Indent Plugin with redefined some keybindings:

{
    "key": "cmd+V",
    "command": "pasteAndIndent.action",
    "when": "editorTextFocus && !editorReadonly"
  },
  {
    "key": "cmd+V",
    "command": "editor.action.clipboardPasteAction",
    "when": "!editorTextFocus"
  },
  {
    "key": "cmd+shift+V",
    "command": "editor.action.clipboardPasteAction",
    "when": "editorTextFocus && !editorReadonly"
  },

So I have removed this plugin and keybindings and the issue has gone.

mctep avatar Apr 18 '18 13:04 mctep

Hey,

Hope you're well

Thanks for software

Currently broken for me - unable to paste ☹️

Let me know if you have any issues - happy to help

Hope this is clear/useful and to hear back

Regards

screen shot 2018-05-09 at 17 30 15 screen shot 2018-05-09 at 17 30 29

ldexterldesign avatar May 09 '18 15:05 ldexterldesign

I have the same issue, can't paste my code when Vim extension is enabled... When I disable the Vim, polacode works great!

andrewdelprete avatar May 25 '18 18:05 andrewdelprete

FYI Nothing to do with vim for me - never installed in

ldexterldesign avatar May 25 '18 19:05 ldexterldesign

On s Mac I'm able to paste, however, it clips outside of the designated box which is unusual, and I have to command - until it fits in order to save a decent download of the screenshot.

teksrc avatar Jun 06 '18 22:06 teksrc

I confirm that VSCodeVim conflicts with Polacode. After VSCodeVim uninstall Polacode works fine. But the problem is... that I nedd VSCodeVim.

dvakatsiienko avatar Jun 09 '18 11:06 dvakatsiienko

No Vim package installed and yet, same problem.

VSC-Insider 1.25.0 Polacode 0.2.2 MacOS 10.3.4

(note: The error occurs even as Polacode is the only enabled extension)

Polacode installed fine. After launching extension with shift+cmd+p, a new blank window appears and I get the following error in the debug console.

[Extension Host] rejected promise not handled within 1 second (at Timeout._onTimeout (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:793:924))

ERR Cannot set property telemetryService of #<t> which has only a getter: TypeError: Cannot set property telemetryService of #<t> which has only a getter
    at t [as constructor] (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3381:972)
    at t.create (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:109:694)
    at e._createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1324:875)
    at e.createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1324:129)
    at e.instantiate (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2337:882)
    at t.doInstantiateEditorControl (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3335:65)
    at t.doCreateEditorControl (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3334:766)
    at t.doShowEditorControl (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3334:426)
    at t.openEditor (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3334:132)
    at t.doShowEditor (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4671:650)
    at t.doOpenEditor (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4671:465)
    at t.openEditor (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4671:104)
    at t.doOpenEditor (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4221:114)
    at t.openEditor (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4220:893)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3388:219
    at e.invokeFunction (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1323:808)
    at t._tryExecuteCommand (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2828:909)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2828:625
    at n.Class.define.cancel.then (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:157:119)
    at t.executeCommand (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2828:599)
    at e.$executeCommand (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2981:976)
    at e._doInvokeHandler (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3038:737)
    at e._invokeHandler (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3038:455)
    at e._receiveRequest (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3037:529)
    at e._receiveOneMessage (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3037:298)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3036:206
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3039:324
    at e.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:170:917)
    at Socket.<anonymous> (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:301:1016)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

mhigley avatar Jun 12 '18 19:06 mhigley

For anyone been suffered of this issue, try not to use keyboard shortcut, select text then click View -> Copy, and then Paste in polacode tab will do the trick.

nightire avatar Aug 12 '18 18:08 nightire

Same problem here; pasting into the Polacode window has no effect, whether by pressing Cmd-V, or using the 'Paste' menu option. The VSCodeVim extension is not installed. No debug output.

Pretty sure this worked before the September 2018 VS Code update.

Code 1.28.2 Polacode 0.2.2

Installed extensions:

13xforever.language-x86-64-assembly MaxfieldWalker.vscode-timer Tyriar.sort-lines adelphes.google-search-ext akmittal.hugofy ban.spellright bbenoist.Nix brandontosch.hiera-eyaml bungcip.better-toml dakara.transformer deerawan.vscode-dash deerawan.vscode-faker eamodio.gitlens emilast.LogFileHighlighter felipecaputo.git-project-manager formulahendry.docker-explorer geddski.macros GitHub.vscode-pull-request-github Gruntfuggly.todo-tree heptio.jsonnet ipedrazas.kubernetes-snippets joaompinto.asciidoctor-vscode jpogran.puppet-vscode jsynowiec.vscode-insertdatestring kirozen.wordcounter LawrenceGrant.cql marcostazi.VS-code-vagrantfile mauve.terraform ms-kubernetes-tools.vscode-kubernetes-tools ms-python.python ms-vscode.cpptools ms-vscode.Go nmsmith89.incrementor patbenatar.advanced-new-file PeterJausovec.vscode-docker pnp.polacode rebornix.ruby redhat.vscode-yaml rust-lang.rust ryu1kn.partial-diff Shan.code-settings-sync stkb.rewrap wayou.vscode-todo-highlight wholroyd.jinja wwm.better-align yhirose.FilterText

bitfield avatar Oct 27 '18 12:10 bitfield

I have the same problem. I removed the paste-and-indent and disabled vim, but nothing has changed.

hamedghaderi avatar Jan 09 '19 08:01 hamedghaderi

Installed Paste And Indent Plugin, it worked for me. im using command+c and command+v to copy paste.

shreeshakl avatar Jan 10 '19 19:01 shreeshakl

I can't even open the Polacode tab.

neildocherty avatar Apr 16 '19 11:04 neildocherty

it wont open the new tab..not working

garbanv avatar Apr 25 '19 19:04 garbanv

Same problem wont open new tab...

AaronCuddeback avatar May 01 '19 21:05 AaronCuddeback

Are you guys using Shift + command + P to open the tab? I made the mistake of trying with just command+P instead, which does not search commands.

eric-hc avatar May 09 '19 12:05 eric-hc

I've checked again and it seems to work (well, it does work) 🚀

Polacode 0.3.1 VSCode 1.33.1 OSX 10.14.4

neildocherty avatar May 09 '19 13:05 neildocherty