microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.27k stars 28.57k forks source link

`remote.autoForwardPortsSource` mysteriously switches to hybrid and stops working forever #200795

Closed top-oai closed 8 months ago

top-oai commented 9 months ago

Type: Bug

When remote.autoForwardPortsSource switches to hybrid (it looks like this happens automatically when 20+ ports have opened), it effectively stops working for us, and so people complain that they can't connect to anything anymore (our use case is that we are developing within vs code devcontainers).

It took a long time before we even figured out that this was caused by remote.autoForwardPortsSource being adjusted behind our backs, but even knowing that this is the cause, it's quite frustrating to have to keep check ing on it.

It looks like the behavior was introduced a month ago in https://github.com/microsoft/vscode/pull/197750. I'm not sure what the reason for it was but I'm sure it exists... Is there somehow a way to disable this auto-switch behavior?

Thanks!

VS Code version: Code 1.85.0 (Universal) (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T18:18:04.614Z) OS version: Darwin arm64 23.2.0 Modes: Remote OS version: Linux arm64 6.4.16-linuxkit

Extensions (32) Extension|Author (truncated)|Version ---|---|--- mermaid-markdown-syntax-highlighting|bpr|1.6.0 codespaces|Git|1.16.4 remote-containers|ms-|0.327.0 remote-ssh|ms-|0.107.1 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.1 rewrap|stk|1.16.3 pdf|tom|1.2.2 errorlens|use|3.15.0 vscode-tailwindcss|bra|0.10.3 ruff|cha|2023.52.0 vscode-eslint|dba|2.4.2 gitlens|eam|14.6.0 prettier-vscode|esb|10.1.0 copilot|Git|1.143.0 copilot-chat|Git|0.11.1 selected-lines-count|gur|1.4.0 terraform|has|2.29.1 vscode-azureterraform|ms-|0.3.2 vscode-docker|ms-|1.28.0 black-formatter|ms-|2023.6.0 flake8|ms-|2023.10.0 isort|ms-|2023.10.1 python|ms-|2023.22.1 vscode-pylance|ms-|2023.12.1 azure-account|ms-|0.11.6 color-highlight|nau|2.5.0 rust-analyzer|rus|0.3.1766 rewrap|stk|1.16.3 tiltfile|til|0.0.3 errorlens|use|3.15.0 vscode-import-cost|wix|3.3.0 (5 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30899288 vscaac:30438847 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyone:30548225 3biah626:30602489 f6dab269:30613381 vscrpc:30673769 a9j8j154:30646983 showlangstatbar:30737416 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialog:30910333 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30902429 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30885897 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 ```
VSCodeTriageBot commented 9 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.85.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

alexr00 commented 8 months ago

The new setting to turn off this fallback is remote.autoForwardPortsFallback. Just set it to 0.

top-oai commented 8 months ago

Thank you!

alessandro-newzoo commented 7 months ago

The new setting to turn off this fallback is remote.autoForwardPortsFallback. Just set it to 0.

@alexr00 hi, any idea when this setting is gonna make it to stable? It seems to exist on Insider 1.86.0, but on the latest stable 1.85.2 it does not seem to exist:

alexr00 commented 7 months ago

Our iteration plan includes the expected endgame dates, and our endgame plan includes the expected release dates. We're probably going to release a new stable version on Wednesday or Thursday this week.