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

purs ide: no type information found for ... #147

Open
srghma opened this issue Jun 6, 2019 · 1 comment
Open

purs ide: no type information found for ... #147

srghma opened this issue Jun 6, 2019 · 1 comment

Comments

@srghma
Copy link

srghma commented Jun 6, 2019

Having

module Main where

import Prelude

import Effect (Effect)
import Effect.Console (log)

main :: Effect Unit
main = do
  let a = 1 -- can't get type of a
  log "hi" -- but can get type of log

Expected:

when my cursor at a variable and I do :Ptype - it should show type inferred of a

Actual:

I have NO way to see the inferred type of a

it shows purs ide: no type information found for a

logs show that it tries to find type definition of a in imported modules

purescript#ide#call: command: {"params": {"currentModule": "Main", "search": "a", "filters": [{"filter": "modules", "params": {"modules"
: ["Prelude", "Main"]}}]}, "command": "type"}

Proposal:

{
    start: { line: 5, character: 23 },
    end : { line 6, character : 0 }
}

N.B.

maybe someone knows other way to see derived type of a?

@srghma
Copy link
Author

srghma commented Jun 6, 2019

oops, I did a duplicate of my own issue #112

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

1 participant