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.

Error when runs from WSL

See original GitHub issue

Paths are not working with WSL.

To Reproduce Steps to reproduce the behavior:

  1. Create a project with Vite inside WSL
  2. Opened it on VS Code using the Remote - WSL extension.
  3. Install click-to-component and add the configs
  4. Run de project
  5. Click on the secondary button and show the context menu with components image
  6. Click on <App> component
  7. Show an error on VSCode image
  8. If click on [Yes] button, show this message image
  9. This is the message that shows the console in Chrome image

Expected behavior Open in VSCode without error

Desktop:

  • OS: Windows 10 21H2
  • Browser: Chrome
  • Version: Version 100.0.4896.127 (Official Build) (64-bit)
  • WSL: Version 2

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ericclemmonscommented, Apr 27, 2022

I’ve voted for https://github.com/microsoft/vscode-remote-release/issues/4779!

In the meantime, I think we’re forced to close this issue **until the browser supports a ${protocol}://... that this library can window.open(url) with 😦

When that’s ready, instead of editor there’ll be a prop like sourceToURL({ editor, source }): string that you can use to craft a working URL.

1reaction
equimancommented, Apr 27, 2022

I’ve copied the path from File Explorer image

Add put on browser address bar like this: vscode://file//wsl$/Ubuntu/home/juanmartinez/DEIN/scrimba-react-vite/src/App.jsx:11:9

But happen me the same to you, open it another ‘local’ instance, instead ‘wsl-remote’ image

Seems to be that we are gonna need to wait until vscode-remote:// was supported on the browser 😥

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Instead run wsl.exe from PowerShell Core, or Command Prompt. Error: Windows Subsystem for Linux has no installed distributions.
Read more >
WSL2-Error: A connection attempt failed on Windows ... - GitHub
After updating to Windows 19555 I get the following error, when starting WSL: A connection attempt failed because the connected party did ...
Read more >
Docker Desktop WSL 2 backend on Windows
Ensure the distribution runs in WSL 2 mode. WSL can run distributions in both v1 or v2 mode. · When Docker Desktop starts,...
Read more >
WSL Something Went Wrong Windows 11 Error: 6 Rigorous ...
Press the Windows + R keys to open the Run dialog box, then type cmd.exe. · Right-click on the title bar, and choose...
Read more >
Multiple Errors when Running Bun via WSL - Stack Overflow
Furthermore, if you are getting an error for NotSameFileSystem , then you need to defer to using a different style for installations. This...
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