Comments (1)
FYI, on my machine I get:
==================
WARNING: DATA RACE
Read at 0x00c420010160 by main goroutine:
github.com/manifoldco/promptui.(*Prompt).Run()
/Users/halla/Documents/Develop/Golang/src/github.com/manifoldco/promptui/prompt.go:197 +0x7b1
main.main()
/Users/halla/Develop/Golang/src/github.com/hallazzang/tests/promptui-issue55/main.go:25 +0x112
Previous write at 0x00c420010160 by goroutine 17:
github.com/manifoldco/promptui.(*Prompt).Run.func2()
/Users/halla/Documents/Develop/Golang/src/github.com/manifoldco/promptui/prompt.go:139 +0xa7b
github.com/chzyer/readline.(*DumpListener).OnChange()
/Users/halla/Documents/Develop/Golang/src/github.com/chzyer/readline/operation.go:516 +0x96
github.com/chzyer/readline.(*Operation).ioloop()
/Users/halla/Documents/Develop/Golang/src/github.com/chzyer/readline/operation.go:339 +0x771
Goroutine 17 (running) created at:
github.com/chzyer/readline.NewOperation()
/Users/halla/Documents/Develop/Golang/src/github.com/chzyer/readline/operation.go:88 +0x7f6
github.com/chzyer/readline.(*Terminal).Readline()
/Users/halla/Documents/Develop/Golang/src/github.com/chzyer/readline/terminal.go:95 +0x53
github.com/chzyer/readline.NewEx()
/Users/halla/Documents/Develop/Golang/src/github.com/chzyer/readline/readline.go:167 +0x62
github.com/manifoldco/promptui.(*Prompt).Run()
/Users/halla/Documents/Develop/Golang/src/github.com/manifoldco/promptui/prompt.go:114 +0x1e9
main.main()
/Users/halla/Develop/Golang/src/github.com/hallazzang/tests/promptui-issue55/main.go:25 +0x112
When I run the basic example using following commands:
$ go build -race main.go # In this step, there's no output
$ go run -race main.go # It spits out the message above
from promptui.
Related Issues (20)
- Reset the prompt after selection
- Nohup running retruns ^D
- Auto Complete? HOT 1
- How to remove ":" on label Select? HOT 1
- Prompt Validation: regex matching causes multiple rerenders on input HOT 3
- Git Bash Prompts fail with EOF HOT 1
- Empty lines in output?
- Data race after running promptui.Prompt.Run()
- Stdout should be `io.Writer` instead of `io.WriterCloser`
- Default searcher implemetation HOT 5
- Dynamic search based select HOT 1
- Replace input text while typing
- Run validation after return key
- Disabling the checkmark and output. HOT 1
- https://www.manifold.co certificate is expired since 2022-08-26 HOT 2
- Select HOT 1
- Printf before prompt run will cut long string
- About the unit test of the Select HOT 2
- Is this project still maintained? HOT 3
- [Feature Request] Select: Add ability to insert spaces/empty lines
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 promptui.