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

"Run selected text in active terminal" doesn't work on moderate text amounts #96973

Closed
gowerc opened this issue May 5, 2020 · 2 comments
Closed
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@gowerc
Copy link

gowerc commented May 5, 2020

  • VSCode Version: 1.44.2
  • OS Version: OSX Mojave

Steps to Reproduce:

Using "Run selected text in active terminal" on a moderate amount of text doesn't work. In particular, it seems to lose some of the text that is being sent by around lines 30-40 (it is not consistent which lines are affected)

  1. Open a file
  2. Open an integrated terminal
  3. Copy the following lines of code into the file
echo "hello, world"  # 001 
echo "hello, world"  # 002 
echo "hello, world"  # 003 
echo "hello, world"  # 004 
echo "hello, world"  # 005 
echo "hello, world"  # 006 
echo "hello, world"  # 007 
echo "hello, world"  # 008 
echo "hello, world"  # 009 
echo "hello, world"  # 010 
echo "hello, world"  # 011 
echo "hello, world"  # 012 
echo "hello, world"  # 013 
echo "hello, world"  # 014 
echo "hello, world"  # 015 
echo "hello, world"  # 016 
echo "hello, world"  # 017 
echo "hello, world"  # 018 
echo "hello, world"  # 019 
echo "hello, world"  # 020 
echo "hello, world"  # 021 
echo "hello, world"  # 022 
echo "hello, world"  # 023 
echo "hello, world"  # 024 
echo "hello, world"  # 025 
echo "hello, world"  # 026 
echo "hello, world"  # 027 
echo "hello, world"  # 028 
echo "hello, world"  # 029 
echo "hello, world"  # 030 
echo "hello, world"  # 031 
echo "hello, world"  # 032 
echo "hello, world"  # 033 
echo "hello, world"  # 034 
echo "hello, world"  # 035 
echo "hello, world"  # 036 
echo "hello, world"  # 037 
echo "hello, world"  # 038 
echo "hello, world"  # 039 
echo "hello, world"  # 040 
echo "hello, world"  # 041 
echo "hello, world"  # 042 
echo "hello, world"  # 043 
echo "hello, world"  # 044 
echo "hello, world"  # 045 
echo "hello, world"  # 046 
echo "hello, world"  # 047 
echo "hello, world"  # 048 
echo "hello, world"  # 049 
echo "hello, world"  # 050 
  1. Select all of the above text
  2. Use "run selected text in active terminal

Up untill around line 30-40 it will work as expected but then from then onwards there is a high chance of seeing some strange results for example:

<snipped for brevity>

~/Desktop
❯ echo "hello, world"  # 032 
hello, world

~/Desktop
❯ echo "hello, world"  # 033 
hello, world

~/Desktop
❯ echo "hello, world"  # 034 
hello, world

~/Desktop
❯ echo "hello, world"  # 035 
hello, world

~/Desktop
❯ echo "hello, world"  # 036 
hello, world

~/Desktop
❯ echo "hello, world"  # 037 
hello, world

~/Desktop
❯ echo "hello, worecho "hello, wor "hello, worecho "hello, worecho "helworecho "hello, who "hello, worecho "hello, worechollo, world"  # 042 
dquote… ❯ echo "hello, world"  # 043 
dquote… ❯ echo "hello, world"  # 044 
dquote… ❯ echo "hello, worecho "hello, worechollo, world"  # 046 
hello, worecho hello, wor hello, worecho hello, worecho helworecho hello, who hello, worecho hello, worechollo, world  # 042 
echo hello, world  # 043 
echo hello, world  # 044 
echo hello, worecho hello, worechollo, world


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

@vscodebot
Copy link

vscodebot bot commented May 5, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@Tyriar
Copy link
Member

Tyriar commented May 5, 2020

/duplicate #87183

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants
@Tyriar @gowerc and others