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

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

Open
bratfizyk opened this issue Sep 9, 2018 · 4 comments
Open

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

bratfizyk opened this issue Sep 9, 2018 · 4 comments

Comments

@bratfizyk
Copy link

bratfizyk commented Sep 9, 2018

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 ?

@bratfizyk bratfizyk changed the title Can't see any annotations Can't see any annotations (Type hovers, Code completion, etc) Sep 9, 2018
@g-pechorin
Copy link

g-pechorin commented Sep 14, 2018

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
Copy link

mrkafk commented Oct 4, 2018

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
Copy link

nshcat commented Oct 10, 2018

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

@DavidHulsman
Copy link

DavidHulsman commented Nov 13, 2018

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.

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

5 participants