You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hydrogen is supposed to be able to run statements like the following:
ifTrue:
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.
The text was updated successfully, but these errors were encountered:
Hydrogen is supposed to be able to run statements like the following:
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 theif True:
part gets executed.A workaround is to add some import statements or whitespace at the beginning, but this behavior still seems quite odd.
The text was updated successfully, but these errors were encountered: