Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Show symbol info gives invalid results and exception #37

Closed
nh2 opened this Issue · 3 comments

2 participants

@nh2
Owner

When I use attoparsecs skipMany somewhere and run Show symbol info on it, I get a list that looks like:

  • Data.Vector.Unboxed.skipMany
  • Data.List.skipMany
  • ...

Those are invalid, something seems to be mixed up there. And if I choose them, nothing happens.

If I choose the right one:

  • Data.Attoparsec.ByteString.skipMany

I get a

Traceback (most recent call last):
  File "./autocomplete.py", line 512, in on_candidate_selected
  File "./autocomplete.py", line 527, in show_symbol_info
AttributeError: 'NoneType' object has no attribute 'name'
@mvoidex
Owner

Seems, that no info about symbols from Data.Attoparsec.ByteString loaded.
Can you open Sublime control (Ctrl+`) and type:
import autocomplete as a
a.autocompletion.database.modules.object['Data.Attoparsec.ByteString']
a.autocompletion.database.symbols.object['skipMany']

If both results in empty list, then there are no info about skipMany and module Data.Attoparsec.ByteString.
Try to check if ghc-mod returns this module and symbol via 'ghc-mod list' and 'ghc-mod browse Data.Attoparsec.ByteString'

When there are no info, SublimeHaskell shows list with all imported modules. I'll fix it to be more clear for user, that there is nothing found, but it will still allow to select qualified module name to try 'hdevtools info' (and others) on it.
Anyway, it's an error, If there're nothing found.

@mvoidex
Owner

More clear message added in a31e3a4
@nh2 , is this fixed?

@nh2
Owner

Seems to work now.

@nh2 nh2 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.