jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
280 stars 39 forks source link

Looking forward to supporting docker container #2

Open crazyn2 opened 2 years ago

crazyn2 commented 1 year ago

Sorry to bother you, sir, may i ask whether u have got any idea to implement this scenario?

jeanp413 commented 1 year ago

Sorry, not really as it will be a completely different extension same as the official MS remote - containers extension

jeanp413 commented 1 year ago

Actually, I think this will be easier to implement as I think we can reuse some code from https://github.com/devcontainers/cli which is also reusing code from the official remote - containers extension, it will be a separate extension and need to find some free time anyway

crazyn2 commented 1 year ago

Could you give any suggestion for my error? node: v14.20.0 OS: Ubuntu22.04 amd64 VSCode: 1.72.0-22279 after npm i, click f5 to start.

Duplicate identifier 'internal'.
Duplicate identifier 'stream'.

Activating extension 'jeanp413.open-remote-ssh' failed: Cannot find module '/home/***/Workspaces/open-remote-ssh/out/extension.js'
Require stack:
- /usr/share/codium/resources/app/out/vs/loader.js
- /usr/share/codium/resources/app/out/bootstrap-amd.js
- /usr/share/codium/resources/app/out/bootstrap-fork.js.
jeanp413 commented 1 year ago

The extension uses yarn so just run yarn in terminal and then f5, maybe npm i didn't install dependencies correctly or run npm run watch manually in terminal and see if there's any errors

crazyn2 commented 1 year ago

after yarn

[8:48:16 AM] Starting compilation in watch mode...

node_modules/@types/node/ts4.8/stream.d.ts:842:39 - error TS2304: Cannot find name 'Blob'.

842             static from(src: Stream | Blob | ArrayBuffer | string | Iterable<any> | AsyncIterable<any> | AsyncGeneratorFunction | Promise<any> | Object): Duplex;
                                          ~~~~

[8:48:18 AM] Found 1 error. Watching for file changes.
jeanp413 commented 1 year ago

mmm strange I don't have that ts4.8 folder, I see you are using node 14, try updating to node 16, that's the version vscode/codium uses too and delete node_modules before runing yarn again

nerd8622 commented 1 month ago

Perhaps something like this (https://github.com/arrikto/kubessh) could be used as a workaround while the container version is under development