Show symbol info gives invalid results and exception #37

nh2 opened this Issue Mar 18, 2013 · 3 comments


None yet

2 participants

nh2 commented Mar 18, 2013

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 "./", line 512, in on_candidate_selected
  File "./", line 527, in show_symbol_info
AttributeError: 'NoneType' object has no attribute 'name'
mvoidex commented Mar 28, 2013

Seems, that no info about symbols from Data.Attoparsec.ByteString loaded.
Can you open Sublime control (Ctrl+`) and type:
import autocomplete as a

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 commented Mar 29, 2013

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

nh2 commented Aug 24, 2013

Seems to work now.

@nh2 nh2 closed this Aug 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment