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

Try run "Remote-SSH" extension in "Code - OSS" fails #162874

Closed
jackpunt opened this issue Oct 6, 2022 · 1 comment
Closed

Try run "Remote-SSH" extension in "Code - OSS" fails #162874

jackpunt opened this issue Oct 6, 2022 · 1 comment
Assignees

Comments

@jackpunt
Copy link
Contributor

jackpunt commented Oct 6, 2022

Does this issue occur when all extensions are disabled?: ??

Replaced by bug-on-extension

  • VS Code Version: 1.71.2
  • OS Version: macOS-12.6

Steps to Reproduce:

  1. clone and build vscode, producing Code-OSS
  2. Running vscode-oss, install extension "Remote-SSH"
  3. try connect to remote host; provoking extension to install remote-server
  4. connect to remote works, scp works, but
  5. installing remote-server fails
[12:17:58.282] > vscode-scp-done.flag                          100%    9     1.9KB/s   00:00    
[12:17:58.543] "Copy server to host" terminal command done
[12:18:00.635] > Found flag and server on host
[12:18:00.642] > 4d1f898c4a21%%2%%
> tar --version:
[12:18:00.645] > bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
[12:18:02.860] stderr> mv: rename vscode-server-darwin/bin to ./bin: Directory not empty
[12:18:02.860] stderr> mv: rename vscode-server-darwin/extensions to ./extensions: Directory not empty
[12:18:02.860] stderr> mv: rename vscode-server-darwin/node_modules to ./node_modules: Directory not empty
[12:18:02.861] > ERROR: /Users/user/.vscode-server-oss/bin/6a25ae3a24929f35aabf8a051531c0716032e0a0/node or /Users/user/.vscode-server-oss/bin/6a25ae3a24929f35aabf8a051531c0716032e0a0/bin/code-server-insiders don't exist
[12:18:02.861] stderr> mv: rename vscode-server-darwin/out to ./out: Directory not empty
[12:18:02.864] > Already attempted local download, failing

Connecting/installing from 'stock' vscode works.


My goal is to test/debug to see how my fork interacts with Remote-SSH.
I notice that the extension creates a new window... is that a new instance of vscode?
Is there a way to run the stock vscode but have it create the new/ssh instance running vscode-oss ?

Or: is there a document that explains the how the SSH extension works? What the remote-server does?
[something easier that reverse-engineering from the source code...]

Or: For my current question: what is the URI that is used in the TextEditorModel ?
Is it a simple file://path/file.ext that is interpreted by the remote-server?
or is it like: ssh://host/path/file.ext.ssh ?

@roblourens
Copy link
Member

Unfortunately this isn't really supported. Since Remote-SSH depends on some non-oss components, you can only run it with official full builds of vscode.

If you want to test vscode changes with remote, what you should be able to do is use the "TestResolver" in your code-oss window which creates a fake remote window.

image

@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants