andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Traceback on Ctrl+E is only visible after console entry #457

Closed abitrolly closed 5 years ago

abitrolly commented 5 years ago

If there is a Traceback while executing current file with Ctrl+E, then Python Interpreter window doesn't show it until another command is entered into the pane below.

image

image

andreikop commented 5 years ago

Which version do you use? Current version uses Jupyter widget.

abitrolly commented 5 years ago

I try to run master with python3 enki from checkout directory, but it still shows Version 17.03.0 in About box. I would say this is a bug in Python 3.6.7 that it is able to find enki/__main__.py but doesn't add package into sys.path.

andreikop commented 5 years ago

I found that Python buffers output by default. Fixed enki settings to set necessary flags. But haven't done automatic migration. Add -u interpreter flag.

abitrolly commented 5 years ago

But if exception occurred it should flush out automatically, no?