devpod icon indicating copy to clipboard operation
devpod copied to clipboard

Forwarded ports not showing in VSCode

Open Benjamin-Etheredge opened this issue 1 year ago • 3 comments

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.

Benjamin-Etheredge avatar Nov 03 '24 18:11 Benjamin-Etheredge

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

pascalbreuninger avatar Nov 25 '24 08:11 pascalbreuninger

Looks like it doesn't work for AWS provider as well

salemgolemugoo avatar Feb 07 '25 10:02 salemgolemugoo

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Apr 09 '25 02:04 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar May 09 '25 02:05 github-actions[bot]