Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork248
Closed
Labels
Milestone
Description
I get the following error when trying to pair an opened paren.
>>>print(Traceback (mostrecentcalllast):File"/usr/local/bin/bpython",line8,in<module>sys.exit(main())File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsies.py",line191,inmainexit_value=repl.mainloop(True,paste)File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsies.py",line123,inmainloopself.process_event_and_paint(e)File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsies.py",line100,inprocess_event_and_paintarray,cursor_pos=self.paint()File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/repl.py",line1316,inpaintself.current_cursor_line)File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/repl.py",line1246,incurrent_cursor_linereturn (self.current_cursor_line_without_suggestion+File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/repl.py",line1237,incurrent_cursor_line_without_suggestionself.display_line_with_prompt))File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/repl.py",line1230,indisplay_line_with_promptself.current_line_formatted)File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/repl.py",line1180,incurrent_line_formattedfs=bpythonparse(format(self.tokenize(self.current_line),File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/parse.py",line40,inparsereturn (sum((fs_from_match(d)fordinstuff[1:]),fs_from_match(stuff[0]))File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/parse.py",line40,in<genexpr>return (sum((fs_from_match(d)fordinstuff[1:]),fs_from_match(stuff[0]))File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bpython/curtsiesfrontend/parse.py",line60,infs_from_matchcolor=colors[(colors.index(color)+ (len(colors)//2))%ValueError:tuple.index(x):xnotintuple
gruv.theme
# Each letter represents a colour marker:# k, r, g, y, b, m, c, w, d# which stands for:# blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default# Capital letters represent bold# Copy to $XDG_CONFIG_HOME/bpython/foo.theme and set "color_scheme = foo" in# $XDG_CONFIG_HOME/bpython/config ($XDG_CONFIG_HOME defaults to ~/.config)[syntax]keyword = rname = gcomment = bstring = merror = rnumber = goperator = Ypunctuation = ytoken = cparen = d # cause of error as observed [interface]# XXX: gnome-terminal appears to be braindead. The cursor will disappear unless# you set the background colour to "d".background = doutput = wmain = cprompt = cprompt_more = gright_arrow_suggestion = k