pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
237 stars 37 forks source link

Suggestions are often not shown. #38

Closed yay closed 7 years ago

yay commented 7 years ago

Some suggestions are shown, but many are missing.

For example:

import htmlparser
import xmltree

let html = loadHTML("input.html")
let hrefs = html.   # `findAll` method is not in the suggestions when one hits the dot key

I've tried with the latest tip of devel and also 0.16.0 tag, Nim plugin v0.5.18. VS Code 1.9.1.

RSDuck commented 7 years ago

This was a known issue(https://github.com/nim-lang/nimsuggest/issues/44), but it is fixed in latest devel(I just tried it out, it suggests the findAll method).

Are you sure you pulled the latest devel and compiled both the compiler and the tools?

yay commented 7 years ago

Well, let's find out, I did this:

git checkout devel
git pull
cd csources && sh build.sh
cd ..
bin/nim c koch
./koch boot -d:release
endragor commented 7 years ago

@yay you should also run ./koch tools -d:release to build nimsuggest. And building from csources is only needed for the first time. After pulling, if you already have koch and nim binaries, it's enough to just run:

./koch boot -d:release
./koch tools -d:release

@kosz78 I think we should mention how to build nimsuggest in the README.

yay commented 7 years ago

@endragor Thank you, that worked!