Skip to content

Fix exportmsg#221

Merged
ltratt merged 2 commits into
masterfrom
fix_exportmsg
Sep 20, 2018
Merged

Fix exportmsg#221
ltratt merged 2 commits into
masterfrom
fix_exportmsg

Conversation

@ptersilie

Copy link
Copy Markdown
Member

Fixes issues #164 and #159.

To be honest, the execution code is a bit of a mess, but I don't believe it's worth a rewrite given we will be moving to Eco2 soon. So I just tried to fix it without touching too much code.

@ltratt

ltratt commented Sep 20, 2018

Copy link
Copy Markdown
Member

This looks fine to me. Can we get a bit more detail into the commit messages, and also rebase against master?

Fixes #164. The old code for this was a bit messy, which lead in some cases to
runtime errors. This cleans up the code and fixes those issues.
@ptersilie

Copy link
Copy Markdown
Member Author

Updated the commits messages!

Comment thread lib/eco/eco.py Outdated
self.emit(self.signal_execute_fail, "program syntactically invalid")
else:
for line in iter(p.stdout.readline, b''):
if lang == "PHP + Python":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use and to join the two ifs?

@ptersilie

Copy link
Copy Markdown
Member Author

Addressed your comment. Let me know when I should squash!

@ltratt

ltratt commented Sep 20, 2018

Copy link
Copy Markdown
Member

Works for me. Please squash.

@ptersilie

Copy link
Copy Markdown
Member Author

Squashed!

Fixes #159. Instead of a popup dialog, use Eco's console to display error
messages when executing programs from within Eco. Also distinguish between
different error reasons like invalid syntax, missing binaries, or missing paths.
@ltratt ltratt mentioned this pull request Sep 20, 2018
@ltratt ltratt merged commit 763146e into master Sep 20, 2018
@ltratt ltratt deleted the fix_exportmsg branch September 20, 2018 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants