-
Notifications
You must be signed in to change notification settings - Fork 334
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
Hydrogen run not working properly for multiline definitions in python #1344
Comments
Hi, does the first format work if you run it as a script? |
@mlangiu This works fine for me in Hydrogen. Just make sure your cursor is on the line with |
@BenRussert Yes, that works |
Oh wait, @mlangiu , you must be using the hydrogen-python extension? This is an open issue I raised back in March and has nothing to do with Hydrogen proper. nikitakit/hydrogen-python#3 |
Indeed I am! |
There are some bugs with that extension. I recommend you turn it off/disable it until some bugs have been fixed. |
I did, thanks for the info |
Hydrogen-python has been updated and should handle this situation correctly. Open an issue there if you still have issues. |
I am not using the extension and it is not working in 2.16.3 version. Is it possible that something broke it in the latest updates? |
I got the same error. using hydrogen 2.16.3 without the extension |
Description:
When defining a function that has a long name or many arguments, such that you may want to split it into multiple lines for better readability, Hydrogen Run appears to work incorrectly.
This may be related to #1341
Steps to Reproduce:
When writing a long function such as below, the Hydrogen Run command fails:
With the error:
We need to add several indents to make this work:
Versions:
OS: Win 10 Enterprise
Atom : 1.27.2
Electron: 1.7.15
Chrome : 58.0.3029.110
Node : 7.9.0
The text was updated successfully, but these errors were encountered: