randy3k / Terminus

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

Terminus freezes when running more than 30 lines in R #41

Closed albertostefanelli closed 6 years ago

albertostefanelli commented 6 years ago

This happens with Sublime Text 3 (Build 3176) when copying the code in the Terminus panel and view or using SendCode. I report the R session hereunder even if I don't believe R is causing the problem since if i use SendCode with R-Gui or R-Studio this problem does not appear

sessionInfo()
R version 3.5.1 (2018-07-02) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.6

Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_3.5.1

randy3k commented 6 years ago

Thanks. I could reproduce it.

My recommendation is to switch to rtichoke because it has better support of bracketed paste mode.

If you are using SendCode, you will need to turn on bracketed paste mode via the settings.

randy3k commented 6 years ago

It seems to be caused by readline which has a reading limit of 1024 bytes.

randy3k commented 6 years ago

fixed by cb7a7f5