jaredly / jaredly/reason-language-server

Unexpected output from per_value_codelens

Open
#245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
OCaml
Stars
649
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Working through the Reason book by Amin and Ayeva, here is a screenshot showing the output from the codelens, note the book says the 3rd value should be `'a => {. x: 'a}`.

![screen shot 2019-02-08 at 12 59 21 pm](https://user-images.githubusercontent.com/766758/52503198-1051bf80-2ba2-11e9-90c3-3b8175e5e76f.png)

After every edit (I guess every parse of the AST?) causes some of the dynamic types to be iterated (2nd and 3rd values in these screenshots) resulting in a bit of mental overhead to read the codelens.

![screen shot 2019-02-08 at 12 59 49 pm](https://user-images.githubusercontent.com/766758/52503211-1a73be00-2ba2-11e9-886d-b262a654751a.png)

[debug.log](https://github.com/jaredly/reason-language-server/files/2846681/debug.log)

Also running action "Restart Reason Language Server" does cause the dynamic types to reset to the 1st state.

PS:
thanks for reason-vscode, this is one of the best vscode extensions I have encountered yet!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Reason book example in VS Code and review the per_value_codelens output alongside the linked debug.log. Compare the values after edits and after using "Restart Reason Language Server"; done means the codelens remains stable and matches the documented third value.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.