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
{{ message }}
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
Had a look at the print_function bug. It appears to be related to the fact LightTable compiles each form in the file in sequence in py-src/ltmain.py:
forformintoExec:
code=form[1]
loc=form[0]
#conditional stuff for eval vs. execcode=compile(code, data[2]["name"], 'exec')
and the fact that the print_function is a monkey patch to syntax that exists only at runtime.
Attaching the from __future__ import print_function line to the code in py-src/ltmain.py allows something like print('spam', file=sys.stderr) to be evaluated successfully:
I'm not familiar with Python/LightTable internals, so can't propose an actual solution.
Edit: just realized that I've got an older version of the Python plugin installed, will need to check out the issue with the latest, but it looks like he basic problem remains the same.
When printing to stderr, nothing shows up in the console.
Both of these ways work if you replace stderr with stdout.
This raises an error for both stderr and stdout:
The text was updated successfully, but these errors were encountered: