hsdev
hsdev copied to clipboard
No documentation for `Int`?
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 Socket
s than it should. Will continue to investigate.
Can't reproduce it on master
with these commands:
> hsdev start
> hsdev scan --cabal --file Test.hs
> hsdev lookup Int -f Test.hs
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.
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.
Which SH option should scan --cabal
/scan --sandbox
correspond to? enable_hdocs
?
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.