Skip to content

Not working (Mac, Sublime 3, Build 4126) #60

Description

@jfitzgerald

Open File works (alt+enter to open the file under the cursor).

The standard triggers are not working. I only get the standard Sublime auto-complete.

The shortcut command is not working (ctrl+alt+space).

I'm testing a basic scope for Markdown files:

{
    "scopes": [
        {
            "scope": "source",
            "auto": false,
            "extensions": ["md"],
            "relative": true
        }
    ]
}

Here's the backtrace from Sublime console:

FuzzyFilePath cached 1879 files in /Users/USERNAME/PATH_TO_PROJECT_FOLDER
command: insert_path {"type": "relative"}
command: auto_complete "insert"
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 1488, in run_
    return self.run(edit, **args)
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Packages/FuzzyFilePath/command_insert_path.py", line 20, in run
    self.view.run_command('auto_complete', "insert")
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime.py", line 1336, in run_command
    sublime_api.view_run_command(self.view_id, cmd, args)
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 1042, in on_query_completions
    norm_res(callback(v, prefix, locations))
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 152, in profiler
    return event_handler(*args)
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Installed Packages/FuzzyFilePath.sublime-package/QueryCompletionListener.py", line 30, in on_query_completions
    completions = controller.get_filepath_completions(view)
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Installed Packages/FuzzyFilePath.sublime-package/controller.py", line 38, in get_filepath_completions
    completions = Completion.get_filepaths(view, Query)
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Installed Packages/FuzzyFilePath.sublime-package/completion.py", line 66, in get_filepaths
    trigger = resolve_trigger(view, query)
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Installed Packages/FuzzyFilePath.sublime-package/completion.py", line 53, in resolve_trigger
    trigger = find_trigger(current_scope, start_expression, query.by_command())
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Installed Packages/FuzzyFilePath.sublime-package/completion.py", line 94, in find_trigger
    return Context.find_trigger(expression, current_scope, triggers)
  File "/Users/USERNAME/Library/Application Support/Sublime Text/Installed Packages/FuzzyFilePath.sublime-package/expression.py", line 140, in find_trigger
    if re.search(trigger["scope"], scope):
KeyError: 'scope'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions