Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AREPL fails to run Python after help() is called #87

Closed
2hands10fingers opened this issue Jul 27, 2018 · 4 comments
Closed

AREPL fails to run Python after help() is called #87

2hands10fingers opened this issue Jul 27, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@2hands10fingers
Copy link

Hi there,

Every time I use help() by itself, the program hangs up.
MacOSX Sierra, Python 3.6.0, Visual Studio Code

It still says "Running Python..." in the bottom, but the preview doesn't change

@Almenon Almenon added the bug Something isn't working label Jul 27, 2018
@Almenon Almenon changed the title AERPL fails to run Python after help() is called AREPL fails to run Python after help() is called Jul 27, 2018
@Almenon
Copy link
Owner

Almenon commented Jul 27, 2018

AERPL?? ಠ_ಠ Honestly I've made that mistake before too hahahaha.

When you call help() you go into a interactive help terminal where you can type in commands.

Try it out in the command line - you will get this:

Welcome to Python 3.6's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/3.6/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics". Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".

help> here you can type in a keyword

Because the help function depends on typed in user input, which AREPL does not yet support, the program will freeze forever waiting for the user to respond.

To fix this I will need to implement #6, stdin input. I was planning on waiting for the new webview (#56) to mature, but it looks like I should fix it sooner rather than later. I will fix #86 and #82 first and after those two bugs #6 might be next on my agenda.

As for the timeline, I expect the first two bugs to be fixed before PyGotham in early October. So I expect to start working on stdin input by October at the latest, possibly earlier if more users want the feature.

Lastly, thanks for reporting an issue. I don't get much time to test AREPL so user input is always welcome.

@2hands10fingers
Copy link
Author

Thanks you for the thorough response. I use this a lot when experimenting and learning more Python, so sometimes I need to use help quite a bit to practice OOP design.

Godspeed!

Almenon added a commit that referenced this issue Sep 8, 2018
@Almenon
Copy link
Owner

Almenon commented Sep 8, 2018

As a temporary fix I've added a custom implementation of help() that does not rely on user input. Hopefully this helps out :)

Get it? helps out?

Sorry, bad pun :P

@2hands10fingers
Copy link
Author

I throw this at you: 🍅

I appreciate the effort. :)

@Almenon Almenon closed this as completed Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants