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

Can Bash on Ubuntu For Windows be used with the VSCode extension? #85

Closed
ghost opened this issue Jun 27, 2016 · 26 comments
Closed

Can Bash on Ubuntu For Windows be used with the VSCode extension? #85

ghost opened this issue Jun 27, 2016 · 26 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 27, 2016

Can Bash on Ubuntu for Windows be used in place of Cygwin by the VSCode C++ extension for debugging?

@ghost ghost changed the title Can Bash on Ubuntu on Windows be used? Can Bash on Ubuntu For Windows be used? Jun 27, 2016
@sridmad
Copy link
Member

sridmad commented Jun 30, 2016

@rogersachan, Can you give us more context?

@ghost
Copy link
Author

ghost commented Jun 30, 2016

Can Bash on Ubuntu for Windows be used in place of Cygwin for the VSCode C++ extension?

@ghost ghost changed the title Can Bash on Ubuntu For Windows be used? Can Bash on Ubuntu For Windows be used with the VSCode extension? Jun 30, 2016
@sridmad
Copy link
Member

sridmad commented Jun 30, 2016

@delmyers do you know the answer?

@ghost
Copy link
Author

ghost commented Jul 20, 2016

@delmyers any update?

@pieandcakes
Copy link
Contributor

@rogersachan Currently we only support MinGW and Cygwin. We can take this as a feature request

@KHeresy
Copy link

KHeresy commented Jul 21, 2016

Please support this!
This make VSCode easier to use in Windows 10

@spookysys
Copy link

++ on this!
This would make using windows for developing cross-platform software a lot more feasible

@ghost
Copy link
Author

ghost commented Aug 6, 2016

The Anniversary Update is now out! This at least gives you all some reason
to support Bash for Windows, no?

On Fri, Aug 5, 2016 at 4:13 PM spookysys notifications@github.com wrote:

++ on this!
This would make using windows for developing cross-platform software a lot
more feasible


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#85 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG13YN5xt_C79LN6obwYBcXPGaRc4v6Mks5qc5jdgaJpZM4I_dzJ
.

@rrciisc
Copy link

rrciisc commented Aug 17, 2016

+1 for this.

@delmyers
Copy link
Contributor

Thanks everyone for the feedback. There is currently a limitation in Windows that is preventing us from doing this correctly. We are waiting on the Windows team to finish off their work.

@ghost
Copy link
Author

ghost commented Nov 26, 2016

@delmyers Will the new Windows 10 Creators Update allow this?

@mzvast
Copy link

mzvast commented Dec 3, 2016

Windows team recently introduced improvements in symbolic link creation on windows, will that help with this?
https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/

@incomingstick
Copy link

Is there any update on this feature? We haven't heard anything for a few months now.

It would be AWESOME if we could use the lxss binaries in VSCode (I would love to use its git, cmake, etc.)

@pieandcakes
Copy link
Contributor

@incomingstick I have made a prototype to try this scenario and we are waiting on some bugfixes in the Bash on Windows side. I am waiting on a response as to when those will be released in order for our scenario to work.

@pieandcakes
Copy link
Contributor

pieandcakes commented Feb 3, 2017

Update: We are waiting for necessary fixes from the WSL team that should be out in the next major update to Windows 10 called Creator's Update. We also have some bug fixes in our extension that should be released with our monthly February release. This will enable users to use the pipeTransport option to connect to bash on WSL.

@chris-ray
Copy link

+1 please :-)

@incomingstick
Copy link

Will there be some sort of documentation for this feature, and an announcement for when this will be available?

@pieandcakes
Copy link
Contributor

@incomingstick I will add a documentation page in the repo on how to get it to work once Windows 10 Creator's Update is available to the general public.

@nayato
Copy link

nayato commented Apr 2, 2017

@pieandcakes with Creators Update out now, is there an update on this?

@pieandcakes
Copy link
Contributor

@nayato I'm working on the instructions. The official release is April 11th and I'm targeting to have it ready in time.

@timsneath
Copy link

@pieandcakes It would be helpful if the extension supports using environment variables in the c_cpp_properties.json for include files. I'd like to be able to write something like this to reference include files:

"includePath": [
   "%localappdata%/lxss/rootfs/usr/include",
   "%localappdata%/lxss/rootfs/usr/local/include"            
],

Today, this doesn't work and I have to replace %localappdata% with c:/users/tims/appdata/local, which is obviously not portable across multiple user accounts.

Let me know if this isn't currently on your radar, and I'd be happy to open up a separate issue.

@bobbrow
Copy link
Member

bobbrow commented Apr 6, 2017

@timsneath, have you tried using ${localappdata} instead of %localappdata%? I just did a quick test and it works for me. If not, can you please open a new issue?

@timsneath
Copy link

Ah, brilliant! This worked a treat. Thanks so much, @bobbrow - I'm learning new stuff here!

@pieandcakes
Copy link
Contributor

pieandcakes commented Apr 10, 2017

@nayato and anyone else: I have a PR out for the documentation change. If you would like to preview it: #626

Thanks!

@pieandcakes
Copy link
Contributor

I have updated our documentation to include how to debug on Bash on Windows. With the Creators Update being release on 4/11/17, this extension will now be able to debug those applications. For more information, the documentation page can be found here: Windows Subsystem for Linux

@rrciisc
Copy link

rrciisc commented Apr 22, 2017

@pieandcakes thanks for putting this in documentation . I have tested launch configuration and its working perfect.

It will be great if you can put WSL make task setup as well (tasks.json file).
Thanks in advance.

asialasr pushed a commit to asialasr/vscode-cpptools that referenced this issue Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests