Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError in AutoFileName.sublime-package, line 171, in on_selection_modified_async #99

Open
evandrocoan opened this issue Nov 26, 2016 · 0 comments

Comments

@evandrocoan
Copy link

IndexError in AutoFileName.sublime-package, line 171, in on_selection_modified_async

Traceback (most recent call last):
  File "D:\User\Dropbox\Applications\SoftwareVersioning\SublimeText\sublime_plugin.py", line 513, in on_selection_modified_async
    callback.on_selection_modified_async(v)
  File "autofilename in D:\User\Dropbox\Applications\SoftwareVersioning\SublimeText\Data\Installed Packages\AutoFileName.sublime-package", line 171, in on_selection_modified_async
  File "D:\User\Dropbox\Applications\SoftwareVersioning\SublimeText\sublime.py", line 641, in __getitem__
    raise IndexError()
IndexError

Steps to reproduce the error

  1. Create the package:

test/test.py

import sublime
import sublime_plugin


class FixedClearSelectionsCommand(sublime_plugin.TextCommand):

    def run(self, edit):

        # print( 'Calling FixedClearSelections...' )
        self.view.sel().clear()

test/Commands.sublime-commands

[
  {
    "caption": "Fixed Selections Clear",
    "command": "fixed_clear_selections"
  },
]
  1. Select some text.
  2. Open the command palette and run the command Fixed Selections Clear.

Related threads:

  1. IndexError when a selection is modified #75 IndexError when a selection is modified
  2. IndexError when pressed alt+shift+right_mouse_click #97 IndexError when pressed alt+shift+right_mouse_click
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant