randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Duplicate letters OS X 10.15.5 terminus v0.3.15 sublime v3.2.2/B3211 #227

Closed crkrenn closed 4 years ago

crkrenn commented 4 years ago

I am having a duplicate letter problem in terminus v0.3.15 running in sublime text v3.2.2 build 3211 on OS X 10.15.15. The solutions posted at issue 141 or at forum.sublimetext.com do not work.

The behavior:

The terminal and console outputs are below. The crux of the issue is shown below. "A" is detected once, but sent twice:

updating lines takes 0.0018968582153320312s
mode: [7, 25], cursor: 43.4
text A detected
sent: A
receieved: A
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0017120838165283203s
mode: [7, 25], cursor: 44.4
sent: A
sent: 
receieved: A

Can you help? What should I try?

Thanks!

-Chris

PS. My chrome spell checker noticed that "receieved" should be spelled "received".

Terminal output:


The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ ls NAA
ls: NAA: No such file or directory
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ pwwd
bash: pwwd: command not found
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ pwdd
bash: pwdd: command not found
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ pwd
/Users/crkrenn
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ pwwd
bash: pwwd: command not found
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ pwd
/Users/crkrenn
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 

Console output:

Package Control: Skipping automatic upgrade, last run at 2020-07-11 06:37:27, next run at 2020-07-11 07:37:27 or after
activating with offset 0
view size: (24, 96)
set recent view: 53
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
updating lines takes 0.004518032073974609s
mode: [7, 25], cursor: 0.0
set recent view: 53
receieved: 
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [1, 2, 3, 4]
updating lines takes 0.004038810729980469s
mode: [7, 25], cursor: 39.4
text l detected
sent: l
receieved: l
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0019931793212890625s
mode: [7, 25], cursor: 40.4
text s detected
sent: s
receieved: s
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0022079944610595703s
mode: [7, 25], cursor: 41.4
sent:  
receieved:  
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0023071765899658203s
mode: [7, 25], cursor: 42.4
sent: N
receieved: N
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0018968582153320312s
mode: [7, 25], cursor: 43.4
text A detected
sent: A
receieved: A
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0017120838165283203s
mode: [7, 25], cursor: 44.4
sent: A
sent: 
receieved: A
ls: NAA: No such file or directory
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [4, 5, 6]
updating lines takes 0.0024428367614746094s
mode: [7, 25], cursor: 39.6
text p detected
sent: p
receieved: p
add 0 line(s) to scroll back history
screen is dirty: [6]
updating lines takes 0.0025339126586914062s
mode: [7, 25], cursor: 40.6
set recent view: 53
text w detected
sent: w
receieved: w
add 0 line(s) to scroll back history
screen is dirty: [6]
updating lines takes 0.0015950202941894531s
mode: [7, 25], cursor: 41.6
sent: w
text d detected
sent: d
receieved: wd
add 0 line(s) to scroll back history
screen is dirty: [6]
updating lines takes 0.0012710094451904297s
mode: [7, 25], cursor: 43.6
sent: 
receieved: 
bash: pwwd: command not found
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [7, 8]
updating lines takes 0.0029921531677246094s
mode: [7, 25], cursor: 39.8
text p detected
sent: p
receieved: p
add 0 line(s) to scroll back history
screen is dirty: [8]
updating lines takes 0.0020568370819091797s
mode: [7, 25], cursor: 40.8
text w detected
sent: w
receieved: w
add 0 line(s) to scroll back history
screen is dirty: [8]
updating lines takes 0.001500844955444336s
mode: [7, 25], cursor: 41.8
text d detected
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [8]
updating lines takes 0.0024030208587646484s
mode: [7, 25], cursor: 42.8
sent: d
sent: 
receieved: d

add 0 line(s) to scroll back history
screen is dirty: [8]
updating lines takes 0.0028641223907470703s
mode: [7, 25], cursor: 0.9
receieved: bash: pwdd: command not found
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [9, 10]
updating lines takes 0.0020170211791992188s
mode: [7, 25], cursor: 39.10
text p detected
sent: p
receieved: p
add 0 line(s) to scroll back history
screen is dirty: [10]
updating lines takes 0.002206087112426758s
mode: [7, 25], cursor: 40.10
text w detected
sent: w
receieved: w
add 0 line(s) to scroll back history
screen is dirty: [10]
updating lines takes 0.0014071464538574219s
mode: [7, 25], cursor: 41.10
text d detected
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [10]
updating lines takes 0.001837015151977539s
mode: [7, 25], cursor: 42.10
sent: 
receieved: 
/Users/crkrenn
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [11, 12]
updating lines takes 0.0019941329956054688s
mode: [7, 25], cursor: 39.12
text p detected
sent: p
receieved: p
add 0 line(s) to scroll back history
screen is dirty: [12]
updating lines takes 0.001341104507446289s
mode: [7, 25], cursor: 40.12
text w detected
sent: w
receieved: w
add 0 line(s) to scroll back history
screen is dirty: [12]
updating lines takes 0.0013508796691894531s
mode: [7, 25], cursor: 41.12
sent: w
text d detected
sent: d
receieved: wd
add 0 line(s) to scroll back history
screen is dirty: [12]
updating lines takes 0.0013577938079833984s
mode: [7, 25], cursor: 43.12
sent: 
receieved: 
bash: pwwd: command not found
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [13, 14]
updating lines takes 0.0027549266815185547s
mode: [7, 25], cursor: 39.14
set recent view: 53
text p detected
sent: p
receieved: p
add 0 line(s) to scroll back history
screen is dirty: [14]
updating lines takes 0.0015528202056884766s
mode: [7, 25], cursor: 40.14
text w detected
sent: w
receieved: w
add 0 line(s) to scroll back history
screen is dirty: [14]
updating lines takes 0.0015490055084228516s
mode: [7, 25], cursor: 41.14
text d detected
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [14]
updating lines takes 0.0017559528350830078s
mode: [7, 25], cursor: 42.14
sent: 
receieved: 
/Users/crkrenn
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [15, 16]
updating lines takes 0.002154827117919922s
mode: [7, 25], cursor: 39.16
set recent view: 53
set recent view: 53
set recent view: 53
set recent view: 53
set recent view: 53
set recent view: 53
set recent view: 53
set recent view: 53
reset cursor
set recent view: 53
handle resize 24 96 -> 6 96
add 11 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
updating lines takes 0.006537914276123047s
mode: [7, 25], cursor: 39.5
receieved: 
(base) CRK-dGPS-MacBook-Pro:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [5]
updating lines takes 0.0016279220581054688s
mode: [7, 25], cursor: 39.5
randy3k commented 4 years ago

It seems that you have blinded all your keystrokes unconditionally. Normally we don’t see text A detected unless a fallback mechanism is used. Check if you have installed a package of which does it. One way to check is to enable the log in Sublime console.

sublime.log_commamds(True)
crkrenn commented 4 years ago

Randy,

Thanks very much for the quick response! The problem was the AutoSpell package. Once I removed it, the duplicate characters disappeared.

For the record, the log outputs are below.

Very gratefully,

-Chris

Terminal:

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) gp-vpn-yellow-tu60-128-15-184-130:~ crkrenn$ ls NAA
ls: NAA: No such file or directory
(base) gp-vpn-yellow-tu60-128-15-184-130:~ crkrenn$ 

Console:

>>> sublime.log_commands(True)
command: show_overlay {"overlay": "command_palette"}
activating with offset 0
view size: (21, 96)
set recent view: 41
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.004335165023803711s
mode: [7, 25], cursor: 0.0
set recent view: 41
receieved: 
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) gp-vpn-yellow-tu60-128-15-184-130:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [1, 2, 3, 4]
updating lines takes 0.0036649703979492188s
mode: [7, 25], cursor: 52.4
text l detected
sent: l
receieved: l
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.002218008041381836s
mode: [7, 25], cursor: 53.4
text s detected
sent: s
receieved: s
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.002602100372314453s
mode: [7, 25], cursor: 54.4
command: terminus_keypress {"key": " "}
sent:  
receieved:  
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0016849040985107422s
mode: [7, 25], cursor: 55.4
command: terminus_keypress {"key": "N"}
sent: N
receieved: N
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0019190311431884766s
mode: [7, 25], cursor: 56.4
text A detected
sent: A
receieved: A
add 0 line(s) to scroll back history
screen is dirty: [4]
updating lines takes 0.0014998912811279297s
mode: [7, 25], cursor: 57.4
command: terminus_keypress {"key": "A"}
sent: A
command: terminus_keypress {"key": "enter"}
sent: 
receieved: A
ls: NAA: No such file or directory
(base) gp-vpn-yellow-tu60-128-15-184-130:~ crkrenn$ 
add 0 line(s) to scroll back history
screen is dirty: [4, 5, 6]
updating lines takes 0.002997875213623047s
mode: [7, 25], cursor: 52.6
command: drag_select {"event": {"button": 1, "x": 621.61328125, "y": 182.16015625}}
plugin rewritten command: terminus_click
command: terminus_copy
set recent view: 41
command: drag_select {"event": {"button": 1, "x": 9.4140625, "y": 649.77734375}}
command: drag_select {"event": {"button": 1, "x": 9.66796875, "y": 649.51953125}}
randy3k commented 4 years ago

It seems that Auto​Spell might break a number of other packages as well given the way that it works.