haskelly-dev / Haskelly

Haskelly is a VS Code extension that provides complete support for casual and expert Haskell development.
https://marketplace.visualstudio.com/items?itemName=UCL.haskelly
GNU General Public License v3.0
152 stars 17 forks source link

Can't see any annotations (Type hovers, Code completion, etc) #82

Open bratfizyk opened 6 years ago

bratfizyk commented 6 years ago

As presented in the picture - only a small, empty box appears with no content at all (see above "getArgs" function).

image

I use ghc 8.0.2, ghc-mod 5.8.0 and my OS is Linux Mint 19. I've just installed the dependencies (intero QuickCheck stack-run) as well. Am I missing anything ?

g-pechorin commented 5 years ago

I am seeing this same problem on Ubuntu Mate with stack-run, intero, and, quickcheck installed globally.

It looks like ...

/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:1411  INFO no standard startup: panel is active
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:276 [Extension Host] Trying new Intero for document /home/peter/Desktop/simple-yampa/app/Main.hs and workDir /home/peter/Desktop/simple-yampa/
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:1411   ERR read ECONNRESET: Error: read ECONNRESET
    at _errnoException (util.js:1024:11)
    at Pipe.onread (net.js:615:25)
log.ts:171   ERR Cannot read property 'slice' of null: TypeError: Cannot read property 'slice' of null
    at InteroLocationDecoder.extractRange (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/InteroLocationDecoder.js:24:13)
    at InteroLocationDecoder.buildLocation (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/InteroLocationDecoder.js:11:28)
    at InteroLocationDecoder.decode (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/InteroLocationDecoder.js:6:21)
    at HaskellDefinitionProvider.<anonymous> (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/Definition/index.js:24:47)
    at Generator.next (<anonymous>)
    at fulfilled (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/Definition/index.js:4:58)
    at <anonymous>
log.ts:171   ERR Cannot read property 'slice' of null: TypeError: Cannot read property 'slice' of null
    at InteroLocationDecoder.extractRange (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/InteroLocationDecoder.js:24:13)
    at InteroLocationDecoder.buildLocation (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/InteroLocationDecoder.js:11:28)
    at InteroLocationDecoder.decode (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/InteroLocationDecoder.js:6:21)
    at HaskellDefinitionProvider.<anonymous> (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/Definition/index.js:24:47)
    at Generator.next (<anonymous>)
    at fulfilled (/home/peter/.vscode/extensions/ucl.haskelly-0.5.4/out/src/Providers/Definition/index.js:4:58)
    at <anonymous>
mrkafk commented 5 years ago

Exact same problem here. Debian 9 x64, KDE. stack-run, intero and quickcheck installed locally.

% stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 7.10.2
nshcat commented 5 years ago

I do have the exact same problem. Here is the log that is created: https://pastebin.com/rKx4CNf5

DavidHulsman commented 5 years ago

Ditto, but sometimes it turns into a "Type not available."

Edit: Ah, it stays empty if the code is not fully correct. When it is, it'll show info on hover for local functions, but not for anything from (for example) Data.Text.