svenax / SublimePrint

Simple print function for Sublime Text. Handles printing current file, selection, or clipboard.
58 stars 11 forks source link

Nothing Happens #3

Closed pkkid closed 11 years ago

pkkid commented 11 years ago

After installing through Package Control, I tried the following scenario on Ubuntu 13.04 and sublime-text-2:

  1. Try to print entire file, got a message saying enscript was not installed.
  2. sudo apt-get install enscript
  3. Try to print entire file again, nothing happens.
  4. Both Settings-Default and Settings-User are still empty files.

If I try to print a non-saved file I get an error message saying "No file to print" which understandably is supposed to happen. But this is useful knowledge because it means it is in fact trying to do something.

fredrikw commented 11 years ago

I'm pretty sure that this issue is due to the fact that Sublime Text 2 bundles Python 2.6 and the syntax in SublimePrint.py relies on the >2.7 possibility for string.format to skip numbering of replacements. I've made a pull request (https://github.com/svenax/SublimePrint/pull/4) fixing the issue.

svenax commented 11 years ago

I have merged the pull request from @fredrikw so this issue should be fixed. Closing.