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

Eldoc does not show type #32

Open
kiana-S opened this issue Oct 25, 2022 · 1 comment
Open

Eldoc does not show type #32

kiana-S opened this issue Oct 25, 2022 · 1 comment

Comments

@kiana-S
Copy link

kiana-S commented Oct 25, 2022

When the point is over a name, the echo area shows the name, but not its type.
Instead of showing this:

const : a -> b -> a

it only shows this:

const : 

All other features of the mode are working, including the idris2-type-at-point command. It's only eldoc that's broken.

@keram
Copy link

keram commented Nov 6, 2022

Hello,
This is due to Idris2 itself not exposing the type to be consumed by eldoc.
Related source code is
https://github.com/idris-lang/Idris2/blob/main/src/Idris/IDEMode/SyntaxHighlight.idr#L61
I tried to uncomment code in TODO but id does not return what is expected (Example for Vect output is :type "{+({arg:813} : $resolved997) -> ({arg:816} : Type) -> Type+}")
and fix is beyond my understanding of Idris. Maybe someone else will be able to pick this :)

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

2 participants