Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Locator.js Extension: Path Error in VS Code #197450

Closed
Tracked by #197452
sushantkadam15 opened this issue Nov 4, 2023 · 4 comments
Closed
Tracked by #197452

Issue with Locator.js Extension: Path Error in VS Code #197450

sushantkadam15 opened this issue Nov 4, 2023 · 4 comments
Assignees

Comments

@sushantkadam15
Copy link

Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:

  1. Updated the VS Code to the latest version
  2. Use the Locator.js Extension and go to VS Code Window Log:
  • VS Code Version: 1.84.0 (Universal)
  • OS Version: macOS Venture 13.5.2 (22G91)

I'm encountering an issue with the Locator.js extension in VS Code, which allows me to navigate directly to React components from the browser. It was working fine previously but has now stopped functioning. The path format used by Locator.js is as follows:

vscode://file/${projectPath}${filePath}:${line}:${column}

Here are the steps I've taken to resolve the issue:

  1. Reinstalled VS Code.
  2. Reinstalled the Locator.js extension.

After some investigation, I found the following error in the VS Code Window Log:

2023-11-03 09:13:07.831 [error] [uncaught exception in main]: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//"): Error: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")

Others have reported the same: infi-pc/locatorjs#127

I've been searching for a solution but haven't been able to find one. Any assistance would be greatly appreciated.

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 6, 2023

Please start by filing this issue against that extension

@mjbvz mjbvz closed this as completed Nov 6, 2023
@amananku26
Copy link

is there any alternate option for this locatorsJS?

@sushantkadam15
Copy link
Author

@amananku26 Here's a workaround: infi-pc/locatorjs#127 (comment)

@lzw10168
Copy link

image

vscode://file/${projectPath}${filePath}:${line}:${column}
This configuration in vscode 1.85.0, chrome 120, is fine

@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants