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

Run ts server using ubuntu bash (WSL) #20220

Closed
wclr opened this issue Feb 8, 2017 · 9 comments
Closed

Run ts server using ubuntu bash (WSL) #20220

wclr opened this issue Feb 8, 2017 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan typescript Typescript support issues WSL Issue when using WSL
Milestone

Comments

@wclr
Copy link

wclr commented Feb 8, 2017

It would be nice if ts server in VSCode could run using Ubuntu Bash (Windows Subsystem for Linux). It is needed if in general dev workflow assumes working with bash shell and WSL file system. For example, WSL symlinks are not compatible with windows NTFS symlinks - this makes running VSCode (tsserver) and other node_modules related operations in bash shell incompatible when linked modules are involved.

This issue is one of the cases of #10129

@Tyriar
Copy link
Member

Tyriar commented Feb 9, 2017

@mjbvz might know more about what tsserver is.

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Feb 10, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Feb 10, 2017

It is unclear to me what the issue with TSServer is here or how it relates to the command line. Can you please explain your usecase and the problems you are seeing in more detail. If TSSerever is not handling some file paths / symlinks properly, please open an issue against TypeScript

@wclr
Copy link
Author

wclr commented Feb 10, 2017

Correct me if I'm wrong: in VSCode Typescript Server (tsserver) is running as background process, and it gets requests and sends responses (typescript output in the console shows this) - that is how TS autocompletion, error reporting etc works.

But this background process is run natively in windows shell (uses nodejs that is installed in windows) and using windows file system. And I say that there is a need that this background process would be run as WSL process using nodejs that installed in linux and using its file system.

(The same case for running GIT, either windows version is used or linux installed)

@mjbvz
Copy link
Collaborator

mjbvz commented Feb 10, 2017

@whitecolor Thanks for the additional detail. Yes, we just fork the current node process to spawn the tsserver. The request here would be to allow using a different instance of node than the one running vscode, probably by passing a execPath argument to fork

@mjbvz mjbvz added feature-request Request for new features or functionality typescript Typescript support issues and removed info-needed Issue requires more information from poster labels Feb 10, 2017
@wclr
Copy link
Author

wclr commented Feb 12, 2017

I think yes, but this should probably work, but need to check how it will run with WSL bash.

@wclr
Copy link
Author

wclr commented Apr 23, 2017

But the problem here is that tsc compiler watch mode seem to not support WSL microsoft/TypeScript#15328

@entrptaher
Copy link

Got same issue on ubuntu :(

@rfgamaral
Copy link

Also having the same issue...

I'm trying to move completely to WSL but this doesn't allow me to specify a different TypeScript tsserver - installed on WSL - to be used by Code. I'm forced to have Node.js/NPM installed on Windows and use that to install TypeScript globally and only then I can set that version in Code's typescript.tsdk setting.

@Tyriar @mjbvz Is this planned to be looked at?

@RMacfarlane
Copy link
Contributor

RMacfarlane commented May 2, 2019

We just announced remote development with VS Code, check out the blog post for details https://code.visualstudio.com/blogs/2019/05/02/remote-development

@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan typescript Typescript support issues WSL Issue when using WSL
Projects
None yet
Development

No branches or pull requests

8 participants