-
Notifications
You must be signed in to change notification settings - Fork 848
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
VS Code won't open in Windows Bash #1233
Comments
I haven't tried vcXsrv for vscode, but you will need at least that, and to export DISPLAY=:0 |
In Build 14951 |
I'm way ahead! I've been using vcXsrv for a while. As I mention before, vs code is loaded. I'm just still getting the same error message when its trying to load: "/usr/share/code/code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory" And, I don't want to run it from Windows Program files as is already loaded under the Linux subsystem. See images Windows 10, BASH, and vcXsrv as I created some Linux batch to run some Linux apps. |
"It's so close for VSCode to work". Electron apps are based on a large body of software not currently supported by WSL. See #648. Weird you don't have libXss though, given that you've made it this far. That's the Screen Saver extension library, which should have come along for the ride with your other X11 stuff. You can install it with |
Awesome! Now the error message changes to: :) |
Sounds like the next thing you need is gtk? |
Do |
Found it missing library: http://stackoverflow.com/questions/37624225/shared-libraries-libgconf-2-so-4-is-missing So I ran: Now, when executing "code". No errors but is not showing on the screen. I'm almost there! Any ideas are Welcome!! |
From here mostly my idea would be to recompile libchromiumcontent and figure out why glibc's pthread implementation is setting |
After installing xubuntu-desktop, and running the "code" from "nautilus" I can see a message pop out: Home directory not accessible: Permission denied |
Yes that's (3) in the list here. You might want to take the rest of this over to that thread. |
Ah! I'm guessing I'm running into a dead-end route. I'm finally getting a grip on Linux but I reach my limit now. Only I could make the code to come up. :P I'm will follow the other thread then. Thanks @therealkenc! |
@MaximoTrinidad Shameless plug for running the Windows version of VSCode with our new interop feature :) |
Just to be clear! I know I can run Windows VS Code and point to the Linux subsystem folder where my scripts are stored. I just wanted to be able to install the debian version of Code and run it separate from the Windows version. Just for demo purpose! I think it would be nice if is possible. :) |
VS Code works beautifully with the new interop. Really fantastic work. Prepare for the flood of "VS Code can't edit .bashrc in my home directory" issues though, because it's going to be nonobv to the uninitiated why that doesn't work. |
@therealkenc Thank you sir! Yeah I'm prepared for it. FYI: The limitation of current working directory not propagating along and not being able to launch .exe files out of LxFs ("/", "/home", etc) directories isn't a technical limitation - it's to avoid our old friend NT binaries stomping over extended attributes. Cwd propagation for virtual directories (procfs, sysfs) doesn't work for obvious reasons. |
@benhillis By the way, Xilun's cbwin had one feature that you don't quite have in the new interop: If you ran With Xilun's thing, I could execute edge on a link %L with |
@fpqc I didn't realize he had that functionality, that's awesome. |
@Manouchehri yep my bad! |
I've been following this thread, and installing all the extra packages that were missing. Now when I execute |
I put up
[edit - nah that is just an artefact of the ctrl-c] |
Hi @therealkenc , Question: What's the Windows 10 build you're on WSL? I'm glad someone is trying to get this resolved. I on the latest Windows 10 Insider Build 15048 but haven't try to reinstalled code yet. I know WSL has some improvements which clears some issues with PowerShell 6 to work as expected. I'm to try it today and see if we still having the issue. :) |
Ah! It still doesn't work. So, the only work around is to create your script files (Python, PowerShell...) using your Windows Editors apps and then run the code on either your WSL Bash console or, if you have it installed, on your Ubuntu Desktop. I know it will be just a matter of time when this issue get fixed. :) |
Something new? I have the same problem |
I think... the reality is that WSL wasn't meant to work with the GUI Ubuntu Desktop although it possible. But trying to load the debian version of VS Code won't work (yet). So, my option is to build my cross-platform code using the Windows Editors then later I can execute then under WSL Bash subsystem. The only GUI editor I can run in my WSL Ubuntu Desktop is Gedit and I can run terminal and PowerShell with no issues (yet). At least for testing demo purpose, it doable now! Again, installing Ubuntu Desktop is not certified to run under WSL but for me is pretty functional. :) |
I'm trying to install vs code under WSL , but even after installation is successful the editor is not running at all. Now when I execute code in the command line, it appears to just do nothing. |
But, the only way to run VS Code under WSL is to install Windows X Server in Windows 10, and in WSL install the Ubuntu Desktop. So, Yes! Installing the Ubuntu Desktop you can use VS Code in WSL. Unfortunately, the Ubuntu Desktop is not supported in Windows 10. But, I've been using it for the last few years! :) |
|
Yes! If you installed VS Code in WSL console, then it won't open in Windows 10. It need to the Ubuntu Desktop GUI to open VS Code Linux version. |
No, you don't. Which is why no one should read #637. |
Correct. There is, rather, something not right with installing the Ubuntu Desktop; which is neither necessary nor desirable to run native Linux VS Code on WSL.
|
Awesome!! Thanks for sharing. I love learning stuff. Thank You!! |
Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!
I was able to install the VS Code deb version. I got Xserve running in Windows 10, but unfortunately is giving an error when executing "code":
/usr/share/code/bin/../code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
To be able to open VS Code in Windows Bash in Xwindows.
maxt@MTrinidadLT2:/mnt/c/Users/mtrinidad/Downloads$ sudo dpkg -i code_1.6.1-1476373175_amd64.deb
[sudo] password for maxt:
(Reading database ... 46508 files and directories currently installed.)
Preparing to unpack code_1.6.1-1476373175_amd64.deb ...
Unpacking code (1.6.1-1476373175) over (1.6.1-1476373175) ...
Setting up code (1.6.1-1476373175) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
maxt@MTrinidadLT2:/mnt/c/Users/mtrinidad/Downloads$ code
/usr/share/code/bin/../code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
maxt@MTrinidadLT2:/mnt/c/Users/mtrinidad/Downloads$
Windows 10 Pro Insider Preview - Build 14946
VS Code installation went without any errors:
maxt@MTrinidadLT2:/mnt/c/Users/mtrinidad/Downloads$ sudo dpkg -i code_1.6.1-1476373175_amd64.deb
[sudo] password for maxt:
(Reading database ... 46508 files and directories currently installed.)
Preparing to unpack code_1.6.1-1476373175_amd64.deb ...
Unpacking code (1.6.1-1476373175) over (1.6.1-1476373175) ...
Setting up code (1.6.1-1476373175) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
N/A
N/A
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: