Hi there,
I have an intermittent issue (happens maybe 10% of the time) where type TAB will dismiss the autocomplete popup dialog, rather than inserting the selecting autocompletion text.
I’ve found one reproducible case, although I’m not sure if the issue is limited to this:
-
I use the GoSublime package, which uses some type-based code intelligence to help autofill method and member identifiers.
-
Sometimes, the autocompletion of a method identifier will include a default argument identifier, e.g. “goquery.NewDocument(url)”
-
After I’ve pressed TAB to autofill the method and default argument “NewDocument(url)”, the argument identifier “url” will be selected automatically.
-
I start typing text to replace the autofilled default argument, and an autocomplete popup appears.
-
I select the identifier I want and press TAB, but instead of autocompleting, it just advances the cursor past the selected text, leaving the argument as whatever I typed to initiate the autocompletion of the argument identifier.
Any ideas if this is a settings issue?
EDIT: For what it’s worth, I swear I’ve had this happen while editing Ruby code (not necessarily with method args), so I’m not sure if it’s an issue with the GoSublime package.
Here’s more info on my setup;
Sublime Text 2 with the following packages:
- Git
- GoSublime
- PackageControl
- Rust
- SML (Standard ML)
- TrailingSpaces
And my settings file:
{
"find_selected_text": true,
"ignored_packages":
"Vintage"
],
"tab_size": 2,
"trailing_spaces_include_current_line": false,
"trailing_spaces_modified_lines_only": true,
"trailing_spaces_trim_on_save": true
}
Thanks in advance!