rmaksim / Sublime-Text-2-Inc-Dec-Value

increase / decrease of numbers, dates, hex color values, etc.
153 stars 18 forks source link

Getting TypeError in console when using the number inc/dec functions #31

Closed alexilyaev closed 10 years ago

alexilyaev commented 10 years ago

Using ST3: e.g. Alt+Up on a number, doesn't matter in which context or file extension.

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "inc_dec_value in C:\Users\Alex\AppData\Roaming\Sublime Text 3\Installed Packages\Inc-Dec-Value.sublime-package", line 52, in run
  File "inc_dec_value in C:\Users\Alex\AppData\Roaming\Sublime Text 3\Installed Packages\Inc-Dec-Value.sublime-package", line 301, in apply_integer
TypeError: unorderable types: str() >= int()
rmaksim commented 10 years ago

fixed

alexilyaev commented 10 years ago

Ahm, now I'm getting this:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "inc_dec_value in C:\Users\Alex\AppData\Roaming\Sublime Text 3\Installed Packages\Inc-Dec-Value.sublime-package", line 52, in run
  File "inc_dec_value in C:\Users\Alex\AppData\Roaming\Sublime Text 3\Installed Packages\Inc-Dec-Value.sublime-package", line 301, in apply_integer
ValueError: invalid literal for int() with base 10: '21px'

Windows 8 ST3 Stable Channel build 3047

rmaksim commented 10 years ago

Oh sorry, attempt number 2. Please, try again.

alexilyaev commented 10 years ago

Now good, thanks :-)