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

[WSL1] Cannot open file/folder with command "codium ." #373

Closed
ianyepan opened this issue Apr 1, 2020 · 13 comments
Closed

[WSL1] Cannot open file/folder with command "codium ." #373

ianyepan opened this issue Apr 1, 2020 · 13 comments
Labels
bug Something isn't working

Comments

@ianyepan
Copy link

ianyepan commented Apr 1, 2020

Thank you for this project! I'm trying to get VSCodium working on my Windows Subsystem for Linux (WSL1). However, when I try to open a project folder with codium . from the terminal (Ubuntu 18.04 LTS), it gives me the following error message:

/mnt/c/Users/bquine/.vscode-oss/extensions/ms-vscode-remote.remote-wsl-0.42.4/scripts/wslCode.sh: 49: /mnt/c/Users/bquine/.vscode-oss/extensions/ms-vscode-remote.remote-wsl-0.42.4/scripts/wslCode.sh: /home/ianpan/.vscode-server-oss/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/bin/codium: not found

I have tried using code . from VSCode stable and code-insiders . from VSCode Insiders and both work fine.

@ianyepan ianyepan added the bug Something isn't working label Apr 1, 2020
@Miaourt
Copy link

Miaourt commented Apr 5, 2020

Same error, it seems that the binary isn't named codium but code
image

Renaming it codium seems to work but then the connection couldn't be established from VSCodium

@stripedpajamas
Copy link
Member

Hi @ianpan870102 and @Miaourt -- can you provide some more context on the setup here? I'm seeing reference to an extension (ms-vscode-remote.remote-wsl-0.42.4?)... perhaps the extension is expecting code and code-insiders?

How was VSCodium installed on your computers?

@Rohaq
Copy link

Rohaq commented Apr 21, 2020

Same error, it seems that the binary isn't named codium but code
image

Renaming it codium seems to work but then the connection couldn't be established from VSCodium

As a workaround, you could try creating an alias for vscodium in your chosen shell user profile pointing to the code binary?

@Miaourt
Copy link

Miaourt commented Apr 22, 2020

Sadly I don't have access to the environment anymore, and back then I ended up using the proprietary vscode ^^'

@st-den
Copy link

st-den commented May 13, 2020

Still doesn't work, same problem as Miaourt had. Any ideas how to fix it?

@st-den
Copy link

st-den commented May 13, 2020

Bad news, this extension is closed-source 😭

#266 #196 #240
microsoft/vscode-remote-release#1925

@vdurante
Copy link

@Rohaq creating an alias doesn't work.

@Rohaq
Copy link

Rohaq commented Jun 3, 2020

@Rohaq creating an alias doesn't work.

Would this not work in your Powershell profile, for example?

function Invoke-VSCodium {
    code $args
}
Set-Alias codium Invoke-VSCodium

@vdurante
Copy link

vdurante commented Jun 3, 2020

@Rohaq

Thanks for the response, but I just gave up on WSL. It feels that the extension requires VSCode to be running and since VSCodium has different naming internally it simply doesn't work.

I would guess the solution would require VSCodium to stop renaming a few things internally. But I feel this won't happen, either due to VSCodium or Microsoft restrictions.

@joaoreis13
Copy link

joaoreis13 commented Jul 16, 2021

This error persists, a year later. Now, I'm on WSL2 and still happening
Posting here hoping someone can take a look at this, or...get back to VS Code...

  • VSCode Version: "1.58.2" (fresh install)
  • Local OS Version: WSL
  • Remote OS Version: n/a
  • Remote Extension/Connection Type: n/a
  • Logs:
    XXXXXX@yyyy:/mnt/c/Users/XXXXXX$ codium /mnt/c/Users/XXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-wsl-0.58.2/scripts/wslCode.sh: 69: /mnt/c/Users/XXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-wsl-0.58.2/scripts/wslCode.sh: /home/XXXXXX/.vscode-server-oss/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6/bin/codium: not found
$ ls -ls /home/XXXXXX/.vscode-server-oss/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6/
total 72220
      16 -rw-r--r--  1 XXXXXX XXXXXX    13380 Jul  8 03:53 LICENSE
        4 drwxr-xr-x  3 XXXXXX XXXXXX     4096 Jul  8 03:54 bin
        4 drwxr-xr-x 34 XXXXXX XXXXXX     4096 Jul  8 03:54 extensions
72144 -rwxr-xr-x  1 XXXXXX XXXXXX 73873984 Jul  8 03:54 node
        4 drwxr-xr-x 74 XXXXXX XXXXXX     4096 Jul  8 03:54 node_modules
        4 drwxr-xr-x  3 XXXXXX XXXXXX     4096 Jul  8 03:54 out
        4 -rw-r--r--  1 XXXXXX XXXXXX     1059 Jul  8 03:53 package.json
      36 -rw-r--r--  1 XXXXXX XXXXXX    34748 Jul  8 03:53 product.json
        4 -rwxr-xr-x  1 XXXXXX XXXXXX      222 Jul  8 03:53 server.sh
ls -ls /home/XXXXXX/.vscode-server-oss/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6/bin/
total 8
4 -rwxr-xr-x 1 tidereis13 tidereis13  335 Jul  8 03:53 code
4 drwxr-xr-x 2 tidereis13 tidereis13 4096 Jul  8 03:54 helpers

Steps to Reproduce:

  1. Install VSCodium in WSL Ubuntu using APT package manager
  2. Run "codium ." in any directory

@daiyam
Copy link
Member

daiyam commented Jul 16, 2021

@joaoreis13 All Remote extensions from Microsoft are proprietary and aren't open source. Their licenses exclude any use outside Visual Studio Code. There is nothing we can do.
We need to find or develop our own alternative to this interesting feature.

@joaoreis13
Copy link

Thanks for the information. Looking forward when VSCodium has this features too.

@daiyam
Copy link
Member

daiyam commented Sep 9, 2021

@daiyam daiyam closed this as completed Sep 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants