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

Running multi-line statements is broken on first line of file #809

Closed
nikitakit opened this issue May 23, 2017 · 0 comments
Closed

Running multi-line statements is broken on first line of file #809

nikitakit opened this issue May 23, 2017 · 0 comments

Comments

@nikitakit
Copy link
Contributor

Hydrogen is supposed to be able to run statements like the following:

if True:
    pass

by just putting the cursor on the first line (the one with if) and then using the Hydrogen: Run command.

I've noticed that this behavior doesn't work if the statement starts on the very first line of the file. You get a SyntaxError: unexpected EOF while parsing instead because only the if True: part gets executed.

A workaround is to add some import statements or whitespace at the beginning, but this behavior still seems quite odd.

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

No branches or pull requests

1 participant