Comments (6)
Looks like a bug with multithread and Signal.trap
that exist from at least v0.1.0
Short reproducing code
Thread.new{Reline.readline('>')}; sleep 0.1; Reline.readline('>')
from reline.
Using gem "reline", github: "tompng/reline", branch: "threadsafe"
effectively solves the problem for me 🎉
from reline.
Actually, scratch that I still get some infinite guard >
prompt sometimes and have to kill the process.
from reline.
I think this is bug is a combination of multithread(#669) and cleanup(#668). This problem won't be fixed until both is merged.
from reline.
Closed by #668
Sorry, #669 was still there.
from reline.
#668 and #669 are both merged. #646 which fixes another related problem is also merged.
from reline.
Related Issues (20)
- Completion dialog disappears while moving completion list to candidates that ends with `=`
- Inputrc mode conditions not handled
- Reline crash with `C-v` `C-k` and any alphabet
- Continue implement bracketed paste mode HOT 1
- Wrong inputrc loading order HOT 1
- newline not honored in Reline.readline("\nMy Prompt: ") HOT 1
- Support multiline input in nomultiline mode `Reline.readline`
- When used inside Emacs with Reline, input is echoed HOT 4
- Cursor offset with show-mode-in-prompt string HOT 2
- Don't enable test mode by TERM=dumb HOT 3
- no implicit conversion of Array into Integer (TypeError) HOT 4
- Add a timeout to `cursor_pos` and warn if terminal does not respond to cursor position query HOT 2
- Upward navigation through completion results not working as expected HOT 4
- Text echoes after using backtick on Windows 11 command prompt/powershell HOT 5
- Some operations throwing the exception reline/ansi.rb:246:in `winsize': Operation not supported by device - <STDIN> (Errno::ENODEV) HOT 2
- `editing-mode` rewinds after input confirmation
- Reline does not support convert-meta HOT 1
- Crash when Kernel#loop is redefined HOT 4
- Sorbet complains about Reline::ANSI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reline.