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.

Paste JSON as Code could not get clipboard contents

See original GitHub issue

Moved from https://github.com/quicktype/quicktype/issues/1532

When I open VSCode from my WSL using Remote - WSL, I can’t use Paste JSON as Code command. It shows Code could not get clipboard contents like below:

image

This is unlikely to be a remote issue. It can refer the extension author to this extension guide: https://code.visualstudio.com/api/advanced-topics/remote-extensions

It looks like is not using the VS Code clipboard API. If they have further issues, they can raise it here for discussion.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:15
  • Comments:5

github_iconTop GitHub Comments

8reactions
doggy8088commented, May 28, 2021

I decided to take over this project. I already had a fork and published Paste JSON as Code (Refresh) ​extension to the VSCode Marketplace.

@quicktype If this is inappropriate, please let me know. Thanks!

0reactions
doggy8088commented, May 28, 2021

I think this issue has been fixed by this PR from the master branch, but the VSCode extension never released after 9/20/2018. Don’t know why?! It could be losting account credential to update it. 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

cant use with remote wsl Could not get clipboard contents #24
Go to VS Code while using WSL (run code while in wsl.exe terminal for example); CTRL+SHIFT+P and run "Paste JSON as Code" command;...
Read more >
Paste JSON as Code - Visual Studio Marketplace
Copy JSON, paste as Go, TypeScript, C#, C++ and more. ... Launch VS Code Quick Open ( Ctrl+P ), paste the following command,...
Read more >
How to show the "paste Json class" in visual studio 2012 ...
If you have your class file open, copy your Json data and choose Edit -> Paste Special you will see both the options:...
Read more >
Navigator.clipboard - Web APIs - MDN Web Docs
The following code uses navigator.clipboard to access the system clipboard in order to read the contents of the clipboard.
Read more >
Copy/Paste of JSON data, anyone know how to do it? - Learn
I am struggling to get copying of JSON data to work all the time. There is a browser restriction that you cannot do...
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