Opened 12 years ago

Closed 12 years ago

#1750 closed defect (fixed)

Typing '= in a WXGUI Command prompt results in a ValueError

Reported by: marisn Owned by: grass-dev@…
Priority: minor Milestone: 7.0.0
Component: wxGUI Version: unspecified
Keywords: command console Cc:
CPU: Unspecified Platform: Unspecified

Description

Steps to reproduce: in command prompt type in (not copy'n'paste!) following command: d.vect map=mymap where='foo=1'

Traceback (most recent call last):
  File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_core/prompt.py", line 978, in
OnKeyPressed

self.toComplete = self.EntityToComplete()
  File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_core/prompt.py", line 863, in
EntityToComplete

if len(utils.split(str(entry))) > 1:
  File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/core/utils.py", line 40, in split

return shlex.split(s, posix = (sys.platform != "win32"))
  File "/usr/lib64/python2.7/shlex.py", line 279, in split

return list(lex)
  File "/usr/lib64/python2.7/shlex.py", line 269, in next

token = self.get_token()
  File "/usr/lib64/python2.7/shlex.py", line 96, in
get_token

raw = self.read_token()
  File "/usr/lib64/python2.7/shlex.py", line 172, in
read_token

raise ValueError, "No closing quotation"
ValueError
:
No closing quotation

(Just a rant. AAAGH! When finally it will be possible to copy data from command prompt and output pane WXGUI like in any other X11 app by simple selection?!? Real pain as WXGUI is the only app ignoring this X11 principle and tricking user to paste different content than expected.)

Change History (3)

comment:1 by annakrat, 12 years ago

Keywords: command console added

Fixed in r53298 and backported (r53299, r53300). Please close the ticket after testing. About the copy and paste thing, I'm quite sure there is already a ticket opened.

in reply to:  description comment:2 by neteler, 12 years ago

Replying to marisn:

(Just a rant. AAAGH! When finally it will be possible to copy data from command prompt and output pane WXGUI like in any other X11 app by simple selection?!? Real pain as WXGUI is the only app ignoring this X11 principle and tricking user to paste different content than expected.)

I fully agree -that's to my knowledge a wxPython non-feature. See ticket #1472.

comment:3 by annakrat, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.