Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Incorrect inserted suggestion #188

Closed

Description

@PavelVanecek

I found an issue: when I confirm the suggestion using keyboard shortcut, it inserts the word twice. Mouse-confirm is okay.

Correct behaviour (confirming with mouse):
ac-p1

The bug (confirming with enter):
ac-p2

This is not observable immediately, Atom relaunch fixes it. I'm not sure how to reproduce.
The issue only appears after several hours.

Update: it seems the extension adds that many letters, how many I did not type.
Example:
I type reques and confirm: it inserts RREQUESTS
I type r and confirm: it inserts REQUESTREQUESTS

Environment:

OSX 10.10
Atom 0.165.0
autocomplete-plus 1.1.0
// I have observed this issue on version 1.0.0 too

keymap.cson:

".autocomplete-plus":
  "enter": "autocomplete-plus:confirm"

Activity

  1. PavelVanecek commented on Jan 7, 2015

    @PavelVanecek
    Author

    Update: observed in Atom 0.166.0 too

  2. philidem commented on Jan 8, 2015

    @philidem

    I've also been experiencing this problem and restarting Atom seems to get it back to a working state (for a little while, at least). A more permanent solution would be much appreciated.

  3. erikLovesMetal commented on Jan 19, 2015

    @erikLovesMetal

    I too have been noticing this. It will append the confirmed autocomplete selection to the previously typed text that triggered the autocomplete suggestion. Other that that its killer

  4. joefitzgerald commented on Jan 19, 2015

    @joefitzgerald
    Contributor

    I can confirm that I have also observed this. We will create a test to reproduce and then fix in #186

  5. added this to the 2.0 milestone on Jan 19, 2015
  6. joefitzgerald commented on Jan 24, 2015

    @joefitzgerald
    Contributor

    I cannot reproduce this reliably with the exact same text:

    #!/bin/bash
    
    REQUESTS=$1
    if [ -z "$REQUESTS"]; then
    
    ab -n $1 -c 5 -p postfile 127.0.0.1:63333/
  7. PavelVanecek commented on Jan 25, 2015

    @PavelVanecek
    Author

    The text was selected as an example. I don't know the real cause, the best I can come with is "every couple hours."

  8. marvwhere commented on Feb 12, 2015

    @marvwhere

    i don't want to open another issue, i still have this bug.

    maybe i will try to fix this by my self later the day. but is it known that its still open?

    codepaste

  9. joefitzgerald commented on Feb 12, 2015

    @joefitzgerald
    Contributor

    What version of atom and autocomplete-plus are you running?

  10. marvwhere commented on Feb 12, 2015

    @marvwhere

    atom: 0.179.0
    autocomplete+: 2.1.6

    thats why i'm wondering

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions