Skip to content

tsserver doesn't work over ssh in Sublime #21506

@appsforartists

Description

@appsforartists

TypeScript Version: 2.5.3, but reproducible in 2.8.0-dev.20180130

Search Terms:
ssh

Steps to reproduce

  1. Tunnel tsserver messages over ssh.
    I've tried both using a local tsserver.js that does this with child_process and modifying the Sublime plugin to proxy its calls over SSH.
  2. Open a file on the remote machine in Sublime.
    We mount the remote filesystem, so the local path and remote path are the same.
  3. Start typing.

Expected results
Sublime works just as well as VSCode.

Actual results
Sublime works very intermittently. Usually, completion fails with Error processing request. Debug Failure. False expression.

In VSCode, using the proxy tsserver.js that tunnels its stdout and stdin over ssh to a remote tsserver works much more reliably than in Sublime.

Additional notes
I've logged the request/responses in both a success case and a failure case from Sublime. You can find them here. It appears that in the failure case, a bunch of requests are sent before any responses are received. Perhaps there is a race condition where the local and remote states are out of sync.

@DanielRosenwasser suggested I file this here.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptNeeds More InfoThe issue still hasn't been fully clarified

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions