Ticket #1750 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

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:
Platform: Unspecified CPU: 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

  Changed 8 months ago by annakrat

  • 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   Changed 8 months ago by neteler

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.

  Changed 7 months ago by annakrat

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.