Dart-code: Can't use Backspace when using Terminal mode for Debugging

Created on 23 Jan 2020  路  5Comments  路  Source: Dart-Code/Dart-Code



  • VSCode Version: 1.41.1
  • OS Version: Windows 10 Pro 64-bit (10.0, Build 18362)

Steps to Reproduce:

  1. create launch.json
  2. write "console": "terminal" in your configurations
  3. write the following code that take an input from user :
import 'dart:io';

main() {
  stdout.writeln('what is Your Name ?');
  String name = stdin.readLineSync();
  print('Welcome $name');
}
  1. start debugging

then i can input value , but i can't use backspace key to undo the text while i write in console.

Untitled

in cli in debugger is bug

All 5 comments

@gogoIsComing I was (literally!) just looking at this! I can repro in both Stable and Insiders - what's the reason you closed it?

This happens even using the VS Code "local echo" sample code in the docs, and it's not clear whether it's fixable in the extension. I've opened https://github.com/microsoft/vscode/issues/90618.

Re-opening this issue because it seems a certain bug, and it's not clear if we need to do work here yet.

@DanTup i already opened an issue microsoft/vscode#89139 (before current issue)
and they closed it , cause they thought it is extension issue

here the answer i got

@gogoIsComing ah, thanks! It may be an extension issue, but the sample code fails in the same way and I can't see a way in the API for us to handle it. I'll keep this open while waiting for a response though. Thanks!

Ok, looks like this is by-design in VS Code, so we'll need to fix another way. It seems silly to implement it as suggested (we'd end up with a lot of code just to pretend to be a terminal) so I'm going to switch from the pseudoterminal to a real terminal and use https://github.com/dart-lang/sdk/issues/38418 to connect the debugger.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rgb1380 picture rgb1380  路  3Comments

lukepighetti picture lukepighetti  路  4Comments

DanTup picture DanTup  路  4Comments

CaferPoyrazoglu picture CaferPoyrazoglu  路  4Comments

DanTup picture DanTup  路  4Comments