Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation for Int? #88

Open
bscottm opened this issue May 11, 2018 · 5 comments
Open

No documentation for Int? #88

bscottm opened this issue May 11, 2018 · 5 comments

Comments

@bscottm
Copy link
Contributor

bscottm commented May 11, 2018

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.

@mvoidex
Copy link
Owner

mvoidex commented May 14, 2018

Can't reproduce it on master with these commands:

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

@bscottm
Copy link
Contributor Author

bscottm commented May 16, 2018

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.

@mvoidex
Copy link
Owner

mvoidex commented May 16, 2018

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.

@bscottm
Copy link
Contributor Author

bscottm commented May 19, 2018

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

@mvoidex
Copy link
Owner

mvoidex commented May 21, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants