hsdev icon indicating copy to clipboard operation
hsdev copied to clipboard

No documentation for `Int`?

Open bscottm opened this issue 6 years ago • 5 comments

hsdev lookup -f insert_your_file.hs Int returns '[]'. Always. Need clue where the magic is supposed to happen so that I can diagnose.

Also, hsdev symbol Int seems to close more Sockets than it should. Will continue to investigate.

bscottm avatar May 11 '18 21:05 bscottm

Can't reproduce it on master with these commands:

> hsdev start
> hsdev scan --cabal --file Test.hs
> hsdev lookup Int -f Test.hs

mvoidex avatar May 14 '18 09:05 mvoidex

The update to lts-11.9 appears to have fixed this. Also, here's how I run the test:

Terminal 1:

stack exec -- hsdev run -l /tmp/hsdev.log

Terminal 2:

stack exec -- hsdev scan -p <path>
stack exec -- hsdev lookup Int -f <source_file>
stack exec -- hsdev stop

Should not make much of a difference, although it may mean that I'm working with slightly different versions of dependencies that you might.

bscottm avatar May 16 '18 17:05 bscottm

You have to scan --cabal or scan --sandbox... in order to get docs for installed libraries where Int come from. It doesn't automatically scan installed modules when you just scanning source files.

mvoidex avatar May 16 '18 17:05 mvoidex

Which SH option should scan --cabal/scan --sandbox correspond to? enable_hdocs?

bscottm avatar May 19 '18 00:05 bscottm

I think there's no such option. Without scanning installed modules you won't be able to get any info about installed symbols. When scanning installed modules, hsdev always get docs if hsdev built with hdocs support and if docs exists (building docs can be enabled in cabal config), because it's fast.

mvoidex avatar May 21 '18 17:05 mvoidex