Sublime Text 2 User Input Error
When using Sublime Text 2, users may encounter an issue where user input is not accepted when their code prompts for it. This can result in errors such as "EOFError" in Python or "gets" failing in Ruby.
Input() and similar functions cannot effectively prompt for input in Sublime Text 2. To resolve this limitation, users can utilize SublimeREPL, a commonly employed solution for this issue.
Installing SublimeREPL
Using SublimeREPL
Setting SublimeREPL as the Default Build System
Add the following lines to the user settings file:
"build_system": "SublimeREPL", "sublime_repl:python_executable": "/usr/bin/python3"
The above is the detailed content of Why is User Input Not Working in Sublime Text 2 and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!