Skip to content

Fix compatibility with modern VS Code and Node runtimes#125

Open
julian-ramos wants to merge 2 commits into
ev3dev:masterfrom
julian-ramos:fix-vscode-node-compatibility
Open

Fix compatibility with modern VS Code and Node runtimes#125
julian-ramos wants to merge 2 commits into
ev3dev:masterfrom
julian-ramos:fix-vscode-node-compatibility

Conversation

@julian-ramos

@julian-ramos julian-ramos commented Jun 12, 2026

Copy link
Copy Markdown

This PR fixes upload failures when using ev3dev-browser with recent VS Code releases as described here

Symptoms:

  • TypeError: rc is not a function
  • TypeError: isDate is not a function

Root cause:

  • The extension's SFTP upload path relies on deprecated Node APIs that are no longer available in current VS Code runtimes.

Changes:

  • Updated compatibility code to work with modern Node runtimes.
  • Applied the minimal TypeScript fixes required to compile successfully.
  • Verified that "Download and Run" works again with LEGO EV3 MicroPython.

Tested on:

  • macOS
  • Current VS Code release
  • EV3 MicroPython project

@julian-ramos julian-ramos force-pushed the fix-vscode-node-compatibility branch from e3c9009 to 2a4ef81 Compare June 12, 2026 13:34
@dlech

dlech commented Jun 12, 2026

Copy link
Copy Markdown
Member

Thanks for having a go at this.

I wonder... could we drop the ssh2-streams dependency instead of patching it and just use ssh2 instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants