Entering ('. rises "A programming error has been det..."

Bug #920598 reported by Ian Vecit
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
DreamPie
Fix Released
Undecided
Unassigned

Bug Description

Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
DreamPie 1.1.1
>>>

Details...
========

Variables:
  File "dreampielib\gui\__init__.pyc", line 556, check_autocomplete(self=DreamPie(path..."window_main"), last_char='.')
  File "dreampielib\gui\autocomplete.pyc", line 75, show_completions(self=<dreampi...00FCA070>, is_auto=True, complete=False)
  File "dreampielib\gui\autocomplete.pyc", line 136, _complete_attributes(self=<dreampi...00FCA070>, text=u"('.\n1", index=3, hp=<dreampi...00FCA2B0>, is_auto=True)
  File "dreampielib\gui\hyper_parser.pyc", line 141, get_expression(self=<dreampi...00FCA2B0>)

Traceback (most recent call last):
  File "dreampielib\gui\__init__.pyc", line 556, in check_autocomplete
  File "dreampielib\gui\autocomplete.pyc", line 75, in show_completions
  File "dreampielib\gui\autocomplete.pyc", line 136, in _complete_attributes
  File "dreampielib\gui\hyper_parser.pyc", line 141, in get_expression
ValueError: get_expression should only be called if index is inside a code.

How to reproduce
==============

The following is a very minimalistic and those unrealistic code, but the same bug showed itself on useful Python code.

Make your edit box look as follows:

('.
1

Try to delete the dot and type it again. The bug appears every time.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Thanks for the detailed report!

I just tried it and it works for me. Can you try to update to the latest revision and say if it still happens?

Thanks!

Changed in dreampie:
status: New → Incomplete
Ian Vecit (ian-vecit)
Changed in dreampie:
status: Incomplete → Fix Committed
Revision history for this message
Ian Vecit (ian-vecit) wrote :

After updating to the latest version it works for me too. I'm changing the status of this report to Fix Committed.

Thanks for the support Noam, I appreciate it.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote : Re: [Bug 920598] Re: Entering ('. rises "A programming error has been det..."

Great! I'm happy that it works.

On Tue, Jan 24, 2012 at 11:34 PM, Ian Vecit <email address hidden> wrote:
> After updating to the latest version it works for me too. I'm changing
> the status of this report to Fix Committed.
>
> Thanks for the support Noam, I appreciate it.
>
> --
> You received this bug notification because you are subscribed to
> DreamPie.
> https://bugs.launchpad.net/bugs/920598
>
> Title:
>  Entering ('. rises "A programming error has been det..."
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dreampie/+bug/920598/+subscriptions

Changed in dreampie:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.