alcemirfernandes / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

typing syntactically incorrect code in the staging window creates errors #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. begin defining a function in the staging (top) textbox
2. make a syntactical error (e.g. leave off a colon)
3. get a bunch of errors in the interpreter

What is the expected output? What do you see instead?

I don't expect code I'm typing up there to get executed.  Instead, I'm getting 
errors--in particular (see attached screenshot):
"""
Traceback (most recent call last):
  File "/home/aresnick/src/python/pynguin/codearea.py", line 138, in keyPressEvent
    cblktxt = str(cblk.text())
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2028' in position 
15: ordinal not in range(128)
"""
each time I hit a button.  I can escape out of it with ^C.

What version of the product are you using? On what operating system?
0.8, Ubuntu 9.10

Please provide any additional information below.

Original issue reported on code.google.com by aresnick...@gmail.com on 9 Jun 2010 at 12:54

Attachments:

GoogleCodeExporter commented 9 years ago
Yeah. I've also seen this happen sometimes. Usually when I press on some keys 
accidentally. I don't think it has anything to do with the code you are typing.

Not sure exactly what is happening, but I'll try to track it down.

Original comment by miss...@hotmail.com on 9 Jun 2010 at 2:12

GoogleCodeExporter commented 9 years ago
Should be fixed in revision d31a4603b4.

Original comment by miss...@hotmail.com on 10 Jun 2010 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by miss...@hotmail.com on 10 Jun 2010 at 6:41