jaredly / jaredly/reason-language-server

Inline Records show ...printing not supported...

Open
#451 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
OCaml
Stars
649
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Hi and thanks so much for your work!!!

When using inline records on a variant type I see "printing not supported"

![image](https://user-images.githubusercontent.com/2559136/81703833-611f2a80-946d-11ea-902e-ee0751a16e8f.png)

```ts
type variant =
| First(string, int)
| Second({str: string});

let parse = variant =>
switch (variant) {
| First(str, int) => print_endline("first")
| Second({str}) => print_endline("second")
};
```

Do you think it can be worked out, or there is some sort of limitation that makes it not possible?

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file, test, or entry point is named. Reproduce the reported inline-record variant example and trace which language-server component emits "printing not supported"; done means the example prints correctly or the limitation is clearly documented.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.