Skip to content

Wrong completion-at-point in Haskell interpreter with helm #1113

Closed
@issue-dispenser

Description

@issue-dispenser

Suppose you have a folder structure like so:

  • ~
    • top
      • mid1
      • mid2
        • bot

and you start the interpreter inside ~.

With the prompt :cd top/_ and with _ as the cursor, doing haskell-interactive-mode-tab (or (completion-at-point) as that's what it actually uses) gives a selection for helm between top/mid1/ and top/mid2/.

Selecting the latter then yields:
:cd top/top/mid2/

It seems that the selection candidates shouldn't include what's already written, at least when working with helm. For reference, doing the same thing in eshell:

Starting at cd top/_ and doing (completion-at-point) shows mid1/ and mid2/ as selections and yields:
cd top/mid2/

Another thing that I found out while testing this was that sometimes (inconsistently) whatever haskell-interactive-mode-tab uses for its selection doesn't update by itself. For instance, starting in ~/:
:cd top/
:cd _

Pressing tab here behaves as if it was in the ~directory, not in top. If you instead have a valid starting letter (e.g:cd m_ in this case), then it seems to expand consistently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions