vscodium: the inbuilt port forwading not working due to vscodium does not code-tunnel in bin

Describe the bug

when using the ports feature it shows the following error Unable to forward localhost:5173. spawn /opt/vscodium-bin/bin/code-tunnel ENOENT I looked into /opt/vscodium-bin/bin but it does not contain code-tunnel

Please confirm that this problem is VSCodium-specific

  • This bug doesn’t happen if I use Microsoft’s Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn’t already documented

To Reproduce Steps to reproduce the behavior:

  1. Forward a port
  2. Enter port number
  3. get error shown

Expected behavior I expect it to open a link or otherwise show that vscodium does not support port forwading

Desktop (please complete the following information):

  • OS: archlinux
  • Architecture: x86-64
  • Version: 1.85.1
  • App Manager: AUR (vscodium-bin)
  • Sandboxed: no

Additional context I just am not sure if vscodium supports it a mention in troubleshooting guide would be nice

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Just use https://open-vsx.org/extension/jeanp413/open-remote-ssh

This looks like a replacement for vs code’s remote development feature, not port forwarding

Solved this by copying bin folder from Microsoft VS Code and pasting it.

I do this because I can’t find bin folder on Cursor.

edit: You can find it on cursor\resources\app\bin.

I have solved this problem, head to

C:\Users\YourUser\AppData\Local\Programs\VSCodium\bin

there is an executable file named codium-tunnel.exe, rename it to code-tunnel.exe

back to codium…head to port add your port and start your forwarding server and enjoy… cheers

code-tunnel uses MS network to discover/tunnel the connexion. We don’t have the structure to do that. But the local port can be forwarded with a tool like ngrok. Also, when connected to remote pc with Open Remote - SSH, the ports are successfully forwarded.

I also get a similar error 2024-02-01 15:42:47.242 [error] [forwarding] Error: spawn c:\Users\<my username>\scoop\apps\vscodium\1.85.1.23348\bin\code-tunnel.exe ENOENT