jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

can't import from __future__ #148

Closed gcbgit closed 8 years ago

gcbgit commented 8 years ago

I get an from __future__ imports must occur at the beginning of the file error even when the import line is the first line of the sketch.

trying to do:

from __future__ import division
jdf commented 8 years ago

When I run this program:

from __future__ import division

def setup():
    pass

def draw():
    pass

it works fine for me. Please paste into this bug a minimal complete example that demonstrates the bug. Thanks!

gcbgit commented 8 years ago

This fails for me:

from __future__ import division

def setup():
    size(800,800)

def draw(): pass
jdf commented 8 years ago

Pushed to build 3009.