-
Notifications
You must be signed in to change notification settings - Fork 917
Multiline comments in Python doesn't compile #1200
Comments
Ctrl-Shift-Space doesn't do anything for me, maybe you meant Ctrl-Shift-Enter? Also, your "multi-line-comment" is not really multiline, maybe you meant this:
Aside of that, I can reproduce this. Same comment in Ipython 1.1.0 (python 2.7.5) works:
|
You are right, for both of your comments. The multiline code I've put in my issue was already with line break at every words, but it wasn't displayed correctly (due to the proximity of the bullet point).It's fixed now. I've also change the shortcut, it's indeed CTRL + SHIFT + ENTER to execute the whole file. Thanks, |
FWIW, this also happens with triple-quotes using @ibdknox any idea what's going wrong here? |
Not sure, we just delegate to python's ast tools, compile, and eval: https://github.com/LightTable/Python/blob/master/py-src/ltmain.py#L103 |
Did some quick test.
And it's compiling normally, in Python CLI and in LightTable. But as soon as I put the same comment directly in the source code, as this :
The execution in Python CLI is OK, but I've got the same stack trace in LightTable. Thanks, |
Same issue on Light table 0.6.5 |
The same problem in Light Table 0.6.6 |
Still present in "Light Table version 0.7.2, Binary version 0.8.4" w/ "Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32" |
Could someone add the label "Python"? This would make it more visible. |
I created LightTable/Python#40 to replace this. |
OS : Debian testing
Lighttable version : 0.6.2 (64 bit) (binary version 0.8.4)
Python version : 2.7.6
How to reproduce :
Current results : Stacktrace saying "SyntaxError: EOF while scanning triple-quoted string literal"
Expected results : normal compilation.
Note on Python comments:
Thanks !
EDIT :
Change the code block to correctly displayed the line break.
Change the shortcut to execute the file to CTRL + SHIFT + ENTER
The text was updated successfully, but these errors were encountered: