Opened 10 years ago

Closed 10 years ago

#242 closed defect (fixed)

cannot use command: sel @c5'

Reported by: Elaine Meng Owned by: Conrad Huang
Priority: major Milestone:
Component: Command Line Version:
Keywords: Cc: Eric Pettersen
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

open 1bna
sel @c5'

gives:
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/cmd_line/gui.py", line 119, in on_enter
cmd = Command(session, cmd_text, final=True)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 1759, in init
self.parse_text(text, final=final, _used_aliases=_used_aliases)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 2171, in parse_text
self._process_keyword_arguments(final, prev_annos)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 2072, in _process_keyword_arguments
word, chars, text = next_token(text)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 1194, in next_token
raise AnnotationError("incomplete quoted text")
chimerax.core.commands.cli.AnnotationError: incomplete quoted text

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/ui/gui.py", line 106, in forward_keystroke
self._keystroke_sinks[-1].forwarded_keystroke(event)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/cmd_line/gui.py", line 61, in forwarded_keystroke
self.on_enter(event)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/cmd_line/gui.py", line 126, in on_enter
rest = cmd.current_text[cmd.amount_parsed:]
UnboundLocalError: local variable 'cmd' referenced before assignment

Change History (1)

comment:1 by Conrad Huang, 10 years ago

Resolution: fixed
Status: newclosed

Added ' and " as legal characters in atomspec names.

May have unintended consequences, but we'll deal with that as they come up.

Note: See TracTickets for help on using tickets.