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

Forwarded ports not showing in VSCode #1352

Open
Benjamin-Etheredge opened this issue Nov 3, 2024 · 1 comment
Open

Forwarded ports not showing in VSCode #1352

Benjamin-Etheredge opened this issue Nov 3, 2024 · 1 comment
Labels

Comments

@Benjamin-Etheredge
Copy link

What happened?
When using forwardPorts in devcontainer.json, the ports do not appear in the Ports section of VSCode. The ports do successfully forward though.

What did you expect to happen instead?
Manually specified forward ports should appear in the forwarded ports sections of VSCode.

How can we reproduce the bug? (as minimally and precisely as possible)
Use the listed example python repo and uncomment out the forwardPorts line in its devcontainer.json. Rebuild and launch the python webserver. It will auto forward port 9001 as it couldn't get 9000. The webserver will then be available locally on both 9000 and 9001 while only 9001 shows up in the Ports section.

Local Environment:

  • DevPod Version: v0.5.21
  • Operating System: windows
  • ARCH of the OS: AMD64

DevPod Provider:

  • Local/remote provider: docker

Anything else we need to know?
I have seen this issue with a k8s provider as well.

@pascalbreuninger
Copy link
Member

Hey @Benjamin-Etheredge, thanks for reporting this issue. That's an issue we've faced for a while now and will need to figure out how to tell VSCode we're already forwarding the port. The issue is that DevPod does have it's own forwarding mechanism which doesn't get picked up by VSCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants