processing / processing-experimental

Experimental Mode for the PDE
72 stars 25 forks source link

Auto completion sometimes generates wrong code #59

Closed fjenett closed 10 years ago

fjenett commented 10 years ago

Sometimes if i enter a variable name for example and then select that name from the auto completion it inserts the name after the first char of what i entered leading to a wrong name.

Type spa in example Array2D screen shot 2014-04-25 at 8 32 33 am

Select variable suggested by autocompletion screen shot 2014-04-25 at 8 33 19 am

Result screen shot 2014-04-25 at 8 33 28 am

Manindra29 commented 10 years ago

Can you please attach the sketch with which you can reproduce the bug? This is probably a race condition happening..

fjenett commented 10 years ago

It's "Array2D" from the Processing examples as it says above the first image. :)

Manindra29 commented 10 years ago

I can't reproduce the problem on my Ubuntu machine. I'd made some changes to counter such race conditions. Let me know if you still get this error in the next PDE X release.

aengelke commented 10 years ago

This seems to be fixed, it doesn't happen on Windows (built from master) anymore.

aengelke commented 10 years ago

Just came across this: Type fi, press space and open CC. Then press enter. It produces: ffill(,).

Manindra29 commented 10 years ago

Closing this here. Now reported in https://github.com/processing/processing/issues/2753