Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TypeError: safe_substitute() keywords must be strings #221

@tschaub

Description

@tschaub

I've just installed SublimeREPL on SublimeText 2 (OSX 10.6.8).

Periodically (not every time, but most times) when trying to open a Bash REPL (with the Shell command), I get the following error:

 TypeError: safe_substitute() keywords must be strings

And in the console:

Traceback (most recent call last):
  File "./sublimerepl.py", line 452, in open
  File "./sublimerepl.py", line 499, in translate
  File "./sublimerepl.py", line 567, in _translate_dict
  File "./sublimerepl.py", line 499, in translate
  File "./sublimerepl.py", line 565, in _translate_dict
  File "./sublimerepl.py", line 503, in translate
  File "./sublimerepl.py", line 558, in _translate_list
  File "./sublimerepl.py", line 501, in translate
  File "./sublimerepl.py", line 552, in _translate_string

If I add print(repr(subst)) to sublimerepl.py:551, I see the following in the console before the failure:

  {u'win_cmd_encoding': u'utf8', 
   u'folder': u'/Users/tschaub/projects/foo-util',
   u'packages': u'/Users/tschaub/Library/Application Support/Sublime Text 2/Packages', 
   u'installed_packages': u'/Users/tschaub/Library/Application Support/Sublime Text 2/Installed Packages', 
   u'editor': u'subl -w'}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions