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

Basic features #1

Open
2 of 4 tasks
zjhmale opened this issue Oct 11, 2016 · 3 comments
Open
2 of 4 tasks

Basic features #1

zjhmale opened this issue Oct 11, 2016 · 3 comments

Comments

@zjhmale
Copy link
Member

zjhmale commented Oct 11, 2016

features

  • Find uses of an identifier in a module.
  • Find definition of an identifier in a module.
  • Show the type of an expression or identifier.
  • Completion of identifiers within a module's scope.

image

:uses and :complete-at will produce a list of results and it is impossible to collect them using current async communication strategy, a language-server is needed. https://github.com/commercialhaskell/intero/issues/274

@Maaarcocr
Copy link

@zjhmale Would you be able to expand on why it's impossible to use :complete_at with the strategy you are using? I am trying to port the auto-completion feature of Intero to VSCode and your experience would be really helpful!

@zjhmale
Copy link
Member Author

zjhmale commented Nov 14, 2016

Hi @Maaarcocr, because in NodeJS, you can only hold a asynchronous session with the running process, so we can not recognize specific series of message which the ghci process return to us.

e.g.

image

if I want to complete fre, it will produce a list of options which is [fresh, freshrec] here, but regarding the async interaction, there is no proper way to find the end flag of this message. IIRC intero itself uses sync interaction to avoid this issue Maybe I'm wrong, any further discussion are welcome :)

@zjhmale
Copy link
Member Author

zjhmale commented Nov 30, 2016

Hi @Maaarcocr, I'll take a Ph.D. position at UCL next year, if you need any help or contribution for your ongoing projects, I'd like to meet you face to face, especially for projects related to intero. I can not reach you out through email, so I leave a comment here, waiting for your reply :)

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