nim-lang / vscode-nim

A VS Code plugin for the Nim language
Other
63 stars 5 forks source link

Autocomplete is wrong #62

Closed al6x closed 1 month ago

al6x commented 1 month ago

Autocomplete suggest bottom enum value, which is wrong, the function argument has different type.

Screen Shot 2024-05-24 at 8 34 51 pm

The code

type
  Align = enum top, right, bottom, left
  Direction = enum up, right, down, left

proc move(d: Direction) =
  echo d

move(b)
jmgomez commented 1 month ago

The abc marker is not coming from the extension.

al6x commented 4 weeks ago

@jmgomez can you please explain? what is the problem and how to fix it?

al6x commented 3 weeks ago

I figured it out, abc suggestion cames from "word suggest" option. I think nim extension should disable that option, as all other languages do. It's confusing.

@jmgomez I think the issue should be reopened, as while it's not directly related to Nim autocomplete, the end result is that it's still broken.

jmgomez commented 3 weeks ago

It is the case already, your problem is likely another: image

al6x commented 3 weeks ago

It's still broken. It suggest all sorts of nonsense, except of what's needed the up should be in the top of the list, but it's not even mentioned.

Screen Shot 2024-06-03 at 7 16 59 pm
jmgomez commented 3 weeks ago

It's still broken

I cant see the Word Suggest there. As for the ordering issue/items not appearing, the list is coming from nimsuggest not from the extension.