Closed AlexWayfer closed 10 months ago
This is strange.
Can you try the following steps for me?
copy(JSON.stringify(atom.config.get('autocomplete-plus'), null, 2))
One thing I'm curious about is whether this behavior is different when you click on the choice you want instead of pressing Tab.
{
"confirmCompletion": "tab",
"defaultProvider": "Symbol",
"minimumWordLength": 2,
"enableAutoActivation": true,
"autoActivationDelay": 0,
"maxVisibleSuggestions": 10,
"useCoreMovementCommands": true,
"fileBlacklist": [
".*"
],
"scopeBlacklist": [],
"includeCompletionsFromAllBuffers": true,
"strictMatching": false,
"extraWordCharacters": "",
"enableBuiltinProvider": true,
"builtinProviderBlacklist": ".source.gfm",
"backspaceTriggersAutocomplete": false,
"enableAutoConfirmSingleSuggestion": true,
"suggestionListFollows": "Word",
"suppressActivationForEditorClasses": [
"vim-mode.command-mode",
"vim-mode.visual-mode",
"vim-mode.operator-pending-mode"
],
"consumeSuffix": true,
"useAlternateScoring": true,
"useLocalityBonus": true,
"enableExtendedUnicodeSupport": false,
"similarSuggestionRemoval": "none",
"moveToCancel": false
}
OK, two more things to try — let me know how each one works:
attr_reader
is visible, use your mouse/trackpad to click on it. See if that works.autocomplete-plus
settings) to either “enter” or “tab and enter.” Then try it again and use the Enter key to try to choose attr_reader
.These results will help us diagnose the problem. Right now I'm a bit perplexed how the presence or absence of a particular autocomplete provider could cause the symptoms you're describing, but I believe you that it's happening.
2. Change your “Keymap for Confirming a Suggestion” setting (in the autocomplete-plus settings) to either “enter” or “tab and enter.” Then try it again and use the Enter key to try to choose attr_reader.
I was trying this before posting, doesn't help.
- When the completions first appear, and attr_reader is visible, use your mouse/trackpad to click on it. See if that works.
Mouse always works.
I was facing this annoying issue again, even after autocomplete-path
disabling. It seemed more rarely, but finally I've got the reproducing actions:
attr
, gem autocompletion list.Home
key, for example, retry autocompletion — it'll work.Enter
(not when autocompletion list is showed) to go to a new line — you (or just I) will guaranteed get this bug, not-completing.So, it breaks after Enter
for a new line. Somehow. It doesn't depends on autocomplete-path
package. Thank you for your help in investigation. I should move somewhere this issue, but now I'm not sure where exactly: autocomplete-plus
package?
Is this feature Currently Implemented in any way with the upstream API Server
Is your feature request related to a problem? Please describe.
I was suffering from this problem for a long time. I thought it's a problem with some core autocomplete package, but safe mode and disabling packages one-by-one helped me to figure out the reason.
https://web.pulsar-edit.dev/packages/autocomplete-paths
Steps to reproduce:
attr
in a Ruby file.attr_reader
.Tab
to autocomplete.attr
.It works for the second time for some reason.
Screencast from 2023-08-17 15-54-02.webm
Describe the solution you'd like
Please, mark this package as an outdated, or broken, or dangerous — I'm not sure.
I haven't found any related issues in the original package repository, but also it seems outdated and I don't know how to fill it.I've created an issue for the package: https://github.com/atom-community/autocomplete-paths/issues/287